ARS_APIS_RELEASED_C1_OR_GROUPS

CDS View

APIs Released for C1 Contract or Groups

ARS_APIS_RELEASED_C1_OR_GROUPS is a CDS View in S/4HANA. APIs Released for C1 Contract or Groups. It contains 7 fields. 31 CDS views read from this table.

CDS Views using this table (31)

ViewTypeJoinVDMDescription
/SSB/CORE_ANALYTICAL_QRYS view left_outer Fetches list of all analytical queries
/ssb/designtime_Evaluations view left_outer SSB: Designtime Evaluations
/ssb/designtime_Indicators view left_outer SSB: All Indicators
/SSB/VIEW_RECO_RELEASED view inner Released view recommendation
APS_V_GKE_VIEW_LIST_RELEASED view inner List of released CDS views)
C_ABI_Analytical_Query view_entity left_outer CONSUMPTION Analytical Query List
CDR_I_SCOPE_CDS_VH view_entity inner Scope CDS Views Value Help
Cds_View_All view left_outer All CDS Views with Analytic/Non-Analytic categorization
DHAMB_BASE_DP_CDS_NODES view_entity left_outer DI meta data browser: list of CDS views
DHBAS_CDS_Filter view left_outer Enabled views for CDS Analyzer
DHCDC_AUTH_CdsExtrctnEnabled view left_outer CDS Views enabled for extraction
I_CCV_DATASOURCE_HELPER view_entity inner Custom CDS View Datasource Helper
I_CCV_DataSource_VH_1 view_entity inner CCV Datasource VH primary || associated
I_CCV_DataSource_VH_2 view_entity inner CCV Datasource VH primary || associated
I_CCV_NOT_MIGRATED view_entity inner View for not migrated Custom CDS Views
I_CustomCDSViewDatasource_VH view_entity inner BASIC List of released CDS views
P_Cfd_Associable_Cds_View view_entity left_outer Associable CDS Views
P_ISLM2_RELEASED_CDS view_entity inner List of released CDS views
P_RespyRuleCDSFldContr1VH view from COMPOSITE Contract1
QB_RELEASED_QUERIES view inner Released Analytical Queries
R_Sitn2ObjStructureCDSVH view_entity union COMPOSITE Situation Object Structure
RS_P_ANA_UMM2_RELEASED_CDS view inner List of released CDS views
RSODP_ABAP_CDS_EXTR_BASE view left_outer CDS entities available for extraction
RSODP_ABAP_CDS_f4_all_p3 view left_outer ABAP CDS value help 3
Rsrts_Cds_Query_List view inner Released CDS based BW Queries: view/ddlsource of query/cube
Rsrts_Cds_Query_List_Cube view inner Release CDS-Cube based Queries: View/ddlsource of query/cube
Rsrts_Cds_Query_List_Sources view inner Released CDS based Query Sources
RSRTS_QF4_QueryProvider_All view_entity left_outer Release CDS-Cube based Queries: View/ddlsource of query/cube
SFDT_CP_CDS_RELEASED view from Released CDS objects for BTP Rules usage
Vb_Core_Cdsviews view left_outer View Browser Core CDS Views
Vb_Core_Cdsviews_Extn view left_outer View Browser Core CDS Views With Extn

Fields (7)

KeyField CDS FieldsUsed in Views
object_key object_key 2
object_type object_type 2
state c1_state,queryState,QueryStatus,releaseState,state 8
successor_classification successor_classification 1
successor_object_key successor_ddl_name 1
tadir_obj_name tadir_obj_name 2
tadir_object tadir_object 2
//*************************************************

// The view returns objects that have been released for the C1 contract or are in an available release group.

//

// Element Definition:

//   - TADIR_OBJECT: Object directory type of the released object as defined in table TADIR (example: DDLS for a Data Definition)

//   - TADIR_OBJ_NAME: Object directory name of the released object as defined in table TADIR (example: I_CURRENCY)

//   - OBJECT_TYPE: Sub-object type of the released object (example: CDS_STOB for a CDS Entity)

//     These sub-object types are defined in object type group RELEASABLE_OBJECT_TYPES (transaction SOTG)

//   - OBJECT_KEY: Sub-object name of the releasd object (example: I_Currency)

//   - STATE: Release state, with the values

//       'RELEASED'   Released   (available as IF_ARS_API_CONSTANTS=>CS_STATE-RELEASED)

//       'DEPRECATED' Deprecated (available as IF_ARS_API_CONSTANTS=>CS_STATE-DEPRECATED)

//     If the state is RELEASED, then

//       - consumption of the object is allowed

//     If the state is DEPRECATED, then

//       - new consumptions of the object are forbidden

//       - existing consumptions are syntactically still correct

//       - and the object behaves as before

//   - STATE_DESCRIPTION: State description

//   - SUCCESSOR_CLASSIFICATION: Successor classification for deprecated objects, with the values

//       '0'  None     (available as IF_ARS_API_CONSTANTS=>CS_SUCCESSOR_CLASSIFICATION-NONE)

//       '1'  One      (available as IF_ARS_API_CONSTANTS=>CS_SUCCESSOR_CLASSIFICATION-ONE)

//       'N'  Multiple (available as IF_ARS_API_CONSTANTS=>CS_SUCCESSOR_CLASSIFICATION-MULTIPLE)

//   The following fields are filled only if a deprecated object has exactly one successor (i.e. SUCCESSOR_CLASSIFICATION = '1'):

//   - SUCCESSOR_TADIR_OBJECT: type of main object of the successor object as defined in the TADIR table,

//   - SUCCESSOR_TADIR_OBJECT_NAME: key of the successor object. Together with SUCCESSOR_TADIR_OBJECT, identifies a successor object uniquely,

//   - SUCCESSOR_OBJECT_TYPE: type of the subobject of the successor object,

//   - SUCCESSOR_OBJECT_KEY: key of the subobject of the successor object. Together with SUCCESSOR_OBJECT_TYPE, identifies a successor subobject uniquely.

//   If there are multiple successors, they need to be retrieved using CDS view ARS_API_SUCCESSORS_FOR_C1

//*************************************************

@AbapCatalog.sqlViewName: 'ARS_API_C1_GRPS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_ALLOWED
@EndUserText.label: 'APIs Released for C1 Contract or Groups'
define view ARS_APIS_RELEASED_C1_OR_GROUPS
  as select from ARS_APIS_RELEASED_FOR_C1 as api
{
  api.tadir_object,
  api.tadir_obj_name,
  api.object_type,
  api.object_key,
  cast(api.state as abap.char(184)) as state,
  api.state_description,
  api.successor_classification,
  api.successor_tadir_object,
  api.successor_tadir_obj_name,
  api.successor_object_type,
  api.successor_object_key,
  api.decommissioning_date
}

union select distinct from ARS_APIS as api
association [0..1] to ARS_RELEASE_STATE_DESCRIPTIONS as _text on _text.state = 'RELEASED'
{
  api.tadir_object,
  api.tadir_obj_name,
  api.object_type,
  api.object_key,
  'RELEASED'        as state,
  _text.description as state_description,
  ''                as successor_classification,
  ''                as successor_tadir_object,
  ''                as successor_tadir_obj_name,
  ''                as successor_object_type,
  ''                as successor_object_key,
  ''                as decommissioning_date
}
where
       api.attribute = 'RELEASE_GROUP'
  and(
       api.value     = 'YY1_'
    or api.value     = 'YY2_'
    or api.value     = 'YY3_'
    or api.value     = 'ZZ1_'
    or api.value     = 'DEFAULT'
  )