P_ProdAllocCtlgCharcValueUsage is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (paobj_charcd, I_ProdAllocCharcMetaDataTP, I_ProdAllocObjCharcValCombn, I_ProdAllocObjCharcValCombn, paobj_cvcd) and exposes 6 fields.
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_ProdAllocCtlgCharcValueUsage.-- Reconstructed from parsed metadata (data sources, associations, fields).-- SAP annotations are omitted and the structure is reformulated as SQL;-- this is a functional approximation, not the verbatim SAP source. Some join-- conditions may be unavailable and a few CDS constructs are kept as-is.-- SQL view name: PCTLGCHARCUSCREATE VIEW P_ProdAllocCtlgCharcValueUsage ASSELECTcast( '01' as characcatalogpathobjecttype ) AS CharcCatalogPathObjectType,
_ProdAllocCharcMetaDataTP.ProductAllocationObject AS ProductAllocationObject,
_ProdAllocCharcMetaDataTP.ProdAllocCharcCtlgPathUUID AS ProdAllocCharcCtlgPathUUID,
casewhen _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC01' then _ProdAllocObjCharcValCombnD.prodalloccharc01 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC02' then _ProdAllocObjCharcValCombnD.prodalloccharc02 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC03' then _ProdAllocObjCharcValCombnD.prodalloccharc03 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC04' then _ProdAllocObjCharcValCombnD.prodalloccharc04 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC05' then _ProdAllocObjCharcValCombnD.prodalloccharc05 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC06' then _ProdAllocObjCharcValCombnD.prodalloccharc06 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC07' then _ProdAllocObjCharcValCombnD.prodalloccharc07 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC08' then _ProdAllocObjCharcValCombnD.prodalloccharc08 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC09' then _ProdAllocObjCharcValCombnD.prodalloccharc09 when _ProdAllocCharcMetaDataDraft.prodalloccharctablecolumnname = 'PRODALLOCCHARC10' then _ProdAllocObjCharcValCombnD.prodalloccharc10 endas ProdAllocCharc AS prodalloccharc10endasProdAllocCharc
FROM I_ProdAllocObjCharcValCombn AS _ProdAllocObjCharcValCombn
LEFTOUTERJOIN I_ProdAllocCharcMetaDataTP AS _ProdAllocCharcMetaDataTP ON /* join condition not captured in parsed metadata */
LEFTOUTERJOIN paobj_charcd AS _ProdAllocCharcMetaDataDraft ON /* join condition not captured in parsed metadata */
LEFTOUTERJOIN I_ProdAllocObjCharcValCombn AS _ProdAllocObjCharcValCombn ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): paobj_cvcd
;