P_ProdCmplncPlant

DDL: P_PRODCMPLNCPLANT Type: view_entity COMPOSITE Package: EHFND_PRODUCT_MASTER_COMN

Substance Volume Tracking Plants

P_ProdCmplncPlant is a Composite CDS View that provides data about "Substance Volume Tracking Plants" in SAP S/4HANA. It reads from 4 data sources (I_CompanyCode, I_CompanyCode, I_Plant, I_ValuationArea) and exposes 7 fields with key fields Plant, CompanyCode, CompanyCode. It has 1 association to related views. Part of development package EHFND_PRODUCT_MASTER_COMN.

Data Sources (4)

SourceAliasJoin Type
I_CompanyCode _CompanyCode inner
I_CompanyCode _CompanyCode union
I_Plant _Plant from
I_ValuationArea _ValuationArea inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_ChmlCmplConstants _Constants _Constants.Constant1 = _Constants.Constant1

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.representativeKey Plant view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Plant I_Plant Plant Valuation Area
KEY CompanyCode I_ValuationArea CompanyCode Receiver Company Code
PlantName I_Plant PlantName Plant Name
ConstantEmptyasPlant
KEY CompanyCode I_CompanyCode CompanyCode Receiver Company Code
PlantName Plant Name
CompanyCodeName I_CompanyCode CompanyCodeName Company Name

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_ProdCmplncPlant.
-- 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_ProdCmplncPlant AS
SELECT
  _Plant.Plant AS Plant,
  _ValuationArea.CompanyCode AS CompanyCode,
  _Plant.PlantName AS PlantName,
  _CompanyCode.CompanyCodeName AS ConstantEmptyasPlant,
  _CompanyCode.CompanyCodeName AS CompanyCodeName
FROM I_Plant AS _Plant
INNER JOIN I_ValuationArea AS _ValuationArea ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode AS _CompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_ChmlCmplConstants AS _Constants ON _Constants.Constant1 = _Constants.Constant1  -- association [1..1]
-- UNION with additional select branch(es): I_CompanyCode
;