P_RawMatlChmlCmplncSts

DDL: P_RAWMATLCHMLCMPLNCSTS Type: view CONSUMPTION

Compliance Status of Raw Material for a Supplier Material

P_RawMatlChmlCmplncSts is a Consumption CDS View that provides data about "Compliance Status of Raw Material for a Supplier Material" in SAP S/4HANA. It reads from 2 data sources (I_CmplRqRslt, I_ChmlCmplncSuplrMatlAssgmt) and exposes 7 fields. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_CmplRqRslt _RawMaterialRequirementResult left_outer
I_ChmlCmplncSuplrMatlAssgmt SuplrMatlAssignment from

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_CmplRqRslt _ReldRawMaterialCmplRqRslt SuplrMatlAssignment.ChmlCmplncInfoUUID = _ReldRawMaterialCmplRqRslt.ChmlCmplncInfoUUID and _ReldRawMaterialCmplRqRslt.CmplRqVersUUID = _RawMaterialRequirementResult.CmplRqVersUUID and _ReldRawMaterialCmplRqRslt.CmplRqRsltProcessingStatus = 'RE'
[0..1] I_CmplncRqmtRsltCmplncStsVH _ReleasedStatusVH $projection.cmplrqrsltreldcmplncsts = _ReleasedStatusVH.CmplRqRsltCmplncSts --Requirement Origin Text
[0..1] I_ChmlSuplrMatlStatusOriginT _RequirementOriginText $projection.ChmlCmplncRqmtRsltOrigin = _RequirementOriginText.ChmlCmplncRqmtRsltOrigin and _RequirementOriginText.Language = $session.system_language
[1..1] P_CChmlCmplConstants _Constants _Constants.Constant1 = 1

Annotations (8)

NameValueLevelField
EndUserText.label Compliance Status of Raw Material for a Supplier Material view
AbapCatalog.sqlViewName PCSMRMCSTS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
ChmlSuplrMatlUUID
ChmlCmplncInfoUUID
CmplRqVersUUIDasCmplRqVersUUID
CmplRqRsltReldCmplncSts _ReldRawMaterialCmplRqRslt CmplRqRsltReldCmplncSts Released Compliance Status
_ReleasedStatusVH _ReleasedStatusVH
_RequirementOriginText _RequirementOriginText
_ReldRawMaterialCmplRqRslt _ReldRawMaterialCmplRqRslt

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_RawMatlChmlCmplncSts.
-- 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_RawMatlChmlCmplncSts AS
SELECT
  _ReldRawMaterialCmplRqRslt.CmplRqRsltReldCmplncSts AS CmplRqRsltReldCmplncSts
FROM I_ChmlCmplncSuplrMatlAssgmt AS SuplrMatlAssignment
LEFT OUTER JOIN I_CmplRqRslt AS _RawMaterialRequirementResult ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CmplRqRslt AS _ReldRawMaterialCmplRqRslt ON SuplrMatlAssignment.ChmlCmplncInfoUUID = _ReldRawMaterialCmplRqRslt.ChmlCmplncInfoUUID AND _ReldRawMaterialCmplRqRslt.CmplRqVersUUID = _RawMaterialRequirementResult.CmplRqVersUUID AND _ReldRawMaterialCmplRqRslt.CmplRqRsltProcessingStatus = 'RE'  -- association [0..*]
LEFT OUTER JOIN I_CmplncRqmtRsltCmplncStsVH AS _ReleasedStatusVH ON cmplrqrsltreldcmplncsts = _ReleasedStatusVH.CmplRqRsltCmplncSts  -- association [0..1]
LEFT OUTER JOIN I_ChmlSuplrMatlStatusOriginT AS _RequirementOriginText ON ChmlCmplncRqmtRsltOrigin = _RequirementOriginText.ChmlCmplncRqmtRsltOrigin AND _RequirementOriginText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN P_CChmlCmplConstants AS _Constants ON _Constants.Constant1 = 1  -- association [1..1]
;