P_CmplncRqmtRsltRefcdObject
CR Info for CCI or Referenced LPI
P_CmplncRqmtRsltRefcdObject is a Consumption CDS View that provides data about "CR Info for CCI or Referenced LPI" in SAP S/4HANA. It reads from 3 data sources (I_CmplRqRslt, I_CmplRqRslt, I_DngrsGdsLogsPackgInstrn) and exposes 40 fields with key field CmplRqRsltUUID. It has 1 association to related views. Part of development package EHDGM_CNS_CBR_PP.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CmplRqRslt | I_CmplRqRslt | from |
| I_CmplRqRslt | I_CmplRqRslt | union_all |
| I_DngrsGdsLogsPackgInstrn | I_DngrsGdsLogsPackgInstrn | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_OTRText | _OnlineTextRep | _OnlineTextRep.OnlnTxtRpstryConceptID = '005056AB02261ED28EC06CFA8B8A15FF' and _OnlineTextRep.Language = $session.system_language -- needed for the smart link navigation |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (40)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CmplRqRsltUUID | I_CmplRqRslt | CmplRqRsltUUID | SDS Assessment |
| CmplRqRsltReferencedObjectUUID | I_CmplRqRslt | CmplRqRsltReferencedObjectUUID | UUID of Ref. Object | |
| CmplRqRsltReferencedObjectType | I_CmplRqRslt | CmplRqRsltReferencedObjectType | Reference Type | |
| ComplianceRequirement | I_CmplRqRslt | ComplianceRequirement | Compliance Requirement | |
| ChmlCmplncInfoUUID | I_CmplRqRslt | ChmlCmplncInfoUUID | Chemical Compliance Information PP | |
| ReldCmplRqRsltUUID | CRR_Released | CmplRqRsltUUID | SDS Assessment | |
| PackingInstructionNumber | ||||
| DngrsGdsLogsPackgInstrnText | ||||
| LoadCarrier | ||||
| LoadCarrierName | ||||
| ChmlCmplncInfoIsReferenced | ||||
| LogsPackgInstrnIsReferenced | ||||
| Product | ||||
| ProductName | ||||
| DngrsGoodIsPartiallyPackaged | _PckgdDngrsGoodEnclrDetails | DngrsGoodIsPartiallyPackaged | ||
| SpecificationendasCmplRqRsltCombinedName | ID and Text of Compl. Requirement Result | |||
| _ChmlCmplncInfo | _ChmlCmplncInfo | |||
| _LogsPackgInstrn | I_CmplRqRslt | _LogsPackgInstrn | ||
| _AnlytlCmpstn | _AnlytlCmpstn | |||
| _MatlBsdCmpstn | _MatlBsdCmpstn | |||
| CmplRqRsltUUIDasCmplRqRsltUUID | ||||
| CmplRqRsltReferencedObjectUUID | I_CmplRqRslt | CmplRqRsltReferencedObjectUUID | UUID of Ref. Object | |
| CmplRqRsltReferencedObjectType | I_CmplRqRslt | CmplRqRsltReferencedObjectType | Reference Type | |
| ComplianceRequirement | I_CmplRqRslt | ComplianceRequirement | Compliance Requirement | |
| ChmlCmplncInfoUUID | I_DngrsGdsLogsPackgInstrn | ChmlCmplncInfoUUID | Chemical Compliance Information PP | |
| ReldCmplRqRsltUUID | CRR_Released | CmplRqRsltUUID | SDS Assessment | |
| PackingInstructionNumber | ||||
| LoadCarrier | I_DngrsGdsLogsPackgInstrn | LoadCarrier | ||
| LoadCarrierName | ||||
| ChmlCmplncInfoIsReferenced | ||||
| LogsPackgInstrnIsReferenced | ||||
| Product | ||||
| ProductName | ||||
| DngrsGoodIsPartiallyPackaged | _PckgdDngrsGoodEnclrDetails | DngrsGoodIsPartiallyPackaged | ||
| CmplRqRsltCombinedName | ||||
| _ChmlCmplncInfo | I_DngrsGdsLogsPackgInstrn | _ChmlCmplncInfo | ||
| _LogsPackgInstrn | I_CmplRqRslt | _LogsPackgInstrn | ||
| _AnlytlCmpstn | _AnlytlCmpstn | |||
| _MatlBsdCmpstn | _MatlBsdCmpstn | |||
| _PCPhysProperty | _PCPhysProperty |
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_CmplncRqmtRsltRefcdObject.
-- 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.
CREATE VIEW P_CmplncRqmtRsltRefcdObject AS
SELECT
I_CmplRqRslt.CmplRqRsltUUID AS CmplRqRsltUUID,
I_CmplRqRslt.CmplRqRsltReferencedObjectUUID AS CmplRqRsltReferencedObjectUUID,
I_CmplRqRslt.CmplRqRsltReferencedObjectType AS CmplRqRsltReferencedObjectType,
I_CmplRqRslt.ComplianceRequirement AS ComplianceRequirement,
I_CmplRqRslt.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
CRR_Released.CmplRqRsltUUID AS ReldCmplRqRsltUUID,
cast( '' as ehdgm_lpi_number ) AS PackingInstructionNumber,
cast( '' as ehdgm_lpi_text ) AS DngrsGdsLogsPackgInstrnText,
cast( '' as ehdgm_logs_load_carrier ) AS LoadCarrier,
cast( '' as maktx ) AS LoadCarrierName,
cast( 'X' as ehfnd_boolean preserving type ) AS ChmlCmplncInfoIsReferenced,
cast( ' ' as ehfnd_boolean preserving type ) AS LogsPackgInstrnIsReferenced,
cast ( _MaterialDataPrimary.Material as productnumber preserving type ) AS Product,
_MaterialDataPrimary._MaterialData._Text[1: Language = $session.system_language].ProductName AS ProductName,
_PckgdDngrsGoodEnclrDetails.DngrsGoodIsPartiallyPackaged AS DngrsGoodIsPartiallyPackaged,
case when _MaterialDataPrimary.Material is not initial then concat ( ProductName, concat ( ' (', concat ( ltrim( Product, '0' ), ')' ) ) ) else concat( _ChmlCmplncInfo.ChmlCmplncInternalName , concat ( ' (', concat ( _ChmlCmplncInfo.Specification , ')' ) ) ) end as CmplRqRsltCombinedName AS SpecificationendasCmplRqRsltCombinedName,
I_CmplRqRslt._LogsPackgInstrn AS _LogsPackgInstrn,
concat( DngrsGdsLogsPackgInstrnText, concat( ' (', concat( I_DngrsGdsLogsPackgInstrn._PackingInstructionHeader.PackingInstructionNumber, ')' ) ) ) AS CmplRqRsltCombinedName,
I_DngrsGdsLogsPackgInstrn._ChmlCmplncInfo AS _ChmlCmplncInfo
FROM I_CmplRqRslt
INNER JOIN I_DngrsGdsLogsPackgInstrn ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OTRText AS _OnlineTextRep ON _OnlineTextRep.OnlnTxtRpstryConceptID = '005056AB02261ED28EC06CFA8B8A15FF' AND _OnlineTextRep.Language = $session.system_language -- association [0..1]
-- UNION ALL with additional select branch(es): I_CmplRqRslt
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA