ARS_OBJECTS_LOCAL_SW_COMP_SCP is a CDS View that provides data about "SCP: Objects in LOCAL Software Component" in SAP S/4HANA. It reads from 1 data source (ARS_OBJECTS_ALL_SW_COMP_SCP) and exposes 3 fields. Part of development package S_ARS_ADT.
//*************************************************
// The view returns objects which are in the predefined software component
//
// In objects of ABAP language version "SAP Cloud Platform", references to other objects are allowed according to the following rules:
// (a) referenced object is released (to be retrieved using CDS view ARS_API_RELEASED_FOR_C1_SCP)
// (b) referenced object in the same software component as the given object (to be retrieved using CDS view ARS_OBJECTS_IN_SAME_SW_COMP or ARS_OBJECTS_IN_SW_COMP_SCP)
// (b for Software Component LOCAL) if the software component is configured as LOCAL in an "SAP Cloud Platform" system,
// referenced object to all configured software component with ABAP_LANGUAGE_VERSION = 5 are allowed. The objects can be retrieved with this view//
// Element Definition:
// - PROGRAM_ID: Program ID of object in software component ('R3TR' as given in field PGMID of table TADIR)
// - P_OBJECT_TYPE: Object directory type of object in software component (e.g. 'TABLE' as given in field OBJECT of table TADIR)
// - P_OBJECT_NAME: Object directory name of object in software component (as given in field OBJ_NAME of table TADIR)
//*************************************************
@AbapCatalog.sqlViewName: 'ARS_OBJ_LOC_SWC'
@AbapCatalog.compiler.compareFilter: true@AccessControl.authorizationCheck: #NOT_REQUIRED@EndUserText.label: 'SCP: Objects in LOCAL Software Component'
defineview ARS_OBJECTS_LOCAL_SW_COMP_SCP
asselectfrom ARS_OBJECTS_ALL_SW_COMP_SCP as all_sw_comp
// currently LOCAL can see all Objects in configured Software Components
{
all_sw_comp.program_id as program_id,
all_sw_comp.object_type as object_type,
all_sw_comp.object_name as object_name
}