P_CmbndChmlAssocdWasteCode

DDL: P_CMBNDCHMLASSOCDWASTECODE SQL: PCCASSWSTCD Type: view COMPOSITE Package: EHFND_CNS_CCI

Waste code object associated with CCI

P_CmbndChmlAssocdWasteCode is a Composite CDS View that provides data about "Waste code object associated with CCI" in SAP S/4HANA. It has 1 association to related views. Part of development package EHFND_CNS_CCI.

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_ChmlCmplncWasteCodeSts _WasteCodeStatus $projection.ChmlCmplncWasteCodeStatus = _WasteCodeStatus.ChmlCmplncWasteCodeStatus

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCCASSWSTCD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID _ChmlCmplncInfo ChmlCmplncInfoUUID Chemical Compliance Information PP
ChmlCmplncWasteCodeUUID _WasteCode ChmlCmplncWasteCodeUUID Chml Cmplnc Wst Code
char1endasChmlCmplncWasteCodeIsHidden
_WasteCodeStatus _WasteCodeStatus

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_CmbndChmlAssocdWasteCode.
-- 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: PCCASSWSTCD

CREATE VIEW P_CmbndChmlAssocdWasteCode AS
SELECT
  _ChmlCmplncInfo.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
  _WasteCode.ChmlCmplncWasteCodeUUID AS ChmlCmplncWasteCodeUUID,
  case _ChmlCmplncInfo.MaterialIsEmissionRelevant when 'X' then cast( ' ' as abap.char(1) ) when ' ' then cast( 'X' as abap.char(1) ) end as ChmlCmplncWasteCodeIsHidden AS char1endasChmlCmplncWasteCodeIsHidden
LEFT OUTER JOIN I_ChmlCmplncWasteCodeSts AS _WasteCodeStatus ON ChmlCmplncWasteCodeStatus = _WasteCodeStatus.ChmlCmplncWasteCodeStatus  -- association [1..1]
;