P_CmplncRqmtRsltRefcdObject

DDL: P_CMPLNCRQMTRSLTREFCDOBJECT Type: view_entity CONSUMPTION

P_CmplncRqmtRsltRefcdObject is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_CmplRqRslt, I_CmplRqRslt, I_DngrsGdsLogsPackgInstrn) and exposes 36 fields with key field CmplRqRsltUUID. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
I_CmplRqRslt I_CmplRqRslt from
I_CmplRqRslt I_CmplRqRslt union_all
I_DngrsGdsLogsPackgInstrn I_DngrsGdsLogsPackgInstrn inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_OTRText _OnlineTextRep _OnlineTextRep.OnlnTxtRpstryConceptID = '005056AB02261ED28EC06CFA8B8A15FF' and _OnlineTextRep.Language = $session.system_language -- needed for the smart link navigation

Annotations (7)

NameValueLevelField
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 (36)

KeyFieldSource TableSource FieldDescription
KEY CmplRqRsltUUID I_CmplRqRslt CmplRqRsltUUID SDS Assessment
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
_AnlytlCmpstn _AnlytlCmpstn
_MatlBsdCmpstn _MatlBsdCmpstn
CmplRqRsltUUIDasCmplRqRsltUUID
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
_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.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,
  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
;