DDCDS_BOE_OBJINFO_PROCESSING_2 is a CDS View that provides data about "Compilation of all object info" in SAP S/4HANA. It reads from 5 data sources (ddddlsrc, dd02bnd, DDCDS_BOE_OBJINFO_PROCESSING_1, ddddlsrc, dd02bnd) and exposes 13 fields with key fields dep_name, baseobj_name. It has 1 association to related views.
@AbapCatalog.sqlViewName: 'DDCDSBOEOBJINFO2'
@AbapCatalog.compiler.compareFilter: true@AbapCatalog.preserveKey: true@AccessControl.authorizationCheck: #CHECK@EndUserText.label: 'Compilation of all object info'
defineview DDCDS_BOE_OBJINFO_PROCESSING_2
asselectfrom DDCDS_BOE_OBJINFO_PROCESSING_1
leftouterjoin dd02bnd as dep_info on dep_info.strucobjn = dep_name
leftouterjoin dd02bnd as baseobj_info on baseobj_info.strucobjn = baseobj_name
leftouterjoin ddddlsrc as dep_act on dep_act.ddlname = DDCDS_BOE_OBJINFO_PROCESSING_1.dep_ddl
leftouterjoin ddddlsrc as baseobj_act on baseobj_act.ddlname = DDCDS_BOE_OBJINFO_PROCESSING_1.baseobj_ddl
association [*] to DDCDS_BOE_OBJINFO_PROCESSING_2 as _Parent on $projection.dep_name = _Parent.baseobj_name
{
key dep_name,
key baseobj_name,
keycase dep_objtype
when 'H' then 'Hierarchy'
when 'P' then 'Projection'
when 'E' then 'Extend'
when 'V' then 'View (V1)'
when 'W' then 'View (V2)'
when 'View' then 'SQL View'
when 'Synonym' then 'Synonym'
when 'A' then 'AbstractEntity'
when 'F' then 'Table Function'
when 'TABLE' then 'Table'
when 'Q' then 'Custom Query'
endas dep_objtype,
keycase baseobj_objtype
when 'H' then 'Hierarchy'
when 'P' then 'Projection'
when 'E' then 'Extend'
when 'V' then 'View (V1)'
when 'W' then 'View (V2)'
when 'View' then 'SQL View'
when 'Synonym' then 'Synonym'
when 'A' then 'AbstractEntity'
when 'F' then 'Table Function'
when 'TABLE' then 'Table'
when 'Q' then 'Custom Query'
endas baseobj_objtype,
casewhen dep_is_valid = 'TRUE' then 'Valid'
when dep_is_valid = 'FALSE' then 'Invalid'
when dep_is_valid isnulland dep_objtype <> 'TABLE' and dep_objtype <> 'A' then 'Does not exist'
endas dep_is_valid,
dep_info.used_session_vars as dep_session_vars,
casewhen syn_is_valid isnotnulland syn_is_valid = 'TRUE' then 'Valid'
when syn_is_valid isnotnulland syn_is_valid = 'FALSE' then 'Invalid'
when syn_is_valid isnulland baseobj_is_valid = 'TRUE' then 'Valid'
when syn_is_valid isnulland baseobj_is_valid = 'FALSE' then 'Invalid'
when baseobj_is_valid isnulland baseobj_objtype <> 'TABLE' and baseobj_objtype <> 'A' then 'Does not exist'
endas baseobj_is_valid,
baseobj_info.used_session_vars as baseobj_session_vars,
baseobj_info.hdb_only_entity_included as baseobj_hdb_only_entity_incl,
baseobj_ddl,
synonym_name,
syn_is_valid,
object_name,
casewhen obj_is_valid = 'TRUE' then 'Valid'
when obj_is_valid = 'FALSE' then 'Invalid'
when obj_is_valid isnulland object_name isnotnullthen 'Does not exist'
endas obj_is_valid,
//dep_act
dep_act.as4local as dep_act_state,
dep_act.as4user as dep_user,
dep_act.as4date as dep_date,
dep_act.as4time as dep_time,
//baseobj_act
baseobj_act.as4local as baseobj_act_state,
baseobj_act.as4user as baseobj_user,
baseobj_act.as4date as baseobj_date,
baseobj_act.as4time as baseobj_time,
_Parent
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DDCDS_BOE_OBJINFO_PROCESSING_1",
"DD02BND",
"DDDDLSRC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/