P_ChmlCmplncUse

DDL: P_CHMLCMPLNCUSE Type: view CONSUMPTION

P_ChmlCmplncUse is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_ChmlCmplncInfoTP, I_ProdCmplncLegalArea) and exposes 5 fields with key fields ChmlCmplncInfoUUID, ProdCmplncLegalArea. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ChmlCmplncInfoTP ChemicalComplianceInfo from
I_ProdCmplncLegalArea ProdCmplncLegalArea cross

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_PCPrptyProcgSts _ProcessingStatus $projection.ProdCmplncUseProcgSts = _ProcessingStatus.PCPrptyProcgSts --Dummy constant selection to solve issues with case-statements with constants (not null-preserving)
[1..1] P_CChmlCmplConstants _Constants _Constants.Constant1 = _Constants.Constant1
[0..1] I_ProdCmplncLegalArea _ProdCmplncLegalArea $projection.ProdCmplncLegalArea = _ProdCmplncLegalArea.ProdCmplncLegalArea

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCCUSE 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 (5)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID I_ChmlCmplncInfoTP ChmlCmplncInfoUUID Chemical Compliance Information PP
KEY ProdCmplncLegalArea
ProdCmplncUseUUIDendasProdCmplncUseUUID
_ProcessingStatus _ProcessingStatus
_ProdCmplncLegalArea _ProdCmplncLegalArea

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_ChmlCmplncUse.
-- 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_ChmlCmplncUse AS
SELECT
  ChemicalComplianceInfo.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
  cast( coalesce( _ProdCmplncUseInProgress.ProdCmplncLegalArea, _ProdCmplncUseReleased.ProdCmplncLegalArea) as ehfnd_legal_area preserving type ) AS ProdCmplncLegalArea
FROM I_ChmlCmplncInfoTP AS ChemicalComplianceInfo
CROSS JOIN I_ProdCmplncLegalArea AS ProdCmplncLegalArea
LEFT OUTER JOIN I_PCPrptyProcgSts AS _ProcessingStatus ON ProdCmplncUseProcgSts = _ProcessingStatus.PCPrptyProcgSts  -- association [0..1]
LEFT OUTER JOIN P_CChmlCmplConstants AS _Constants ON _Constants.Constant1 = _Constants.Constant1  -- association [1..1]
LEFT OUTER JOIN I_ProdCmplncLegalArea AS _ProdCmplncLegalArea ON ProdCmplncLegalArea = _ProdCmplncLegalArea.ProdCmplncLegalArea  -- association [0..1]
;