P_ProdCmplncStorLoc

DDL: P_PRODCMPLNCSTORLOC Type: view_entity COMPOSITE

P_ProdCmplncStorLoc is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_Plant, I_StorageLocation) and exposes 7 fields with key fields Plant, StorageLocation, StorageLocation. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_Plant _StorageLocationPlant union
I_StorageLocation I_StorageLocation from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[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 StorageLocation view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Plant Plant Valuation Area
KEY StorageLocation StorageLocation Single-Character Flag
StorageLocationName StorageLocationName Storage Loc. Name
Plant Valuation Area
KEY StorageLocation _Constants ConstantEmpty Single-Character Flag
StorageLocationName Storage Loc. Name
_Plant _Plant

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_ProdCmplncStorLoc.
-- 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_ProdCmplncStorLoc AS
SELECT
  Plant,
  StorageLocation,
  StorageLocationName
FROM I_StorageLocation
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN P_ChmlCmplConstants AS _Constants ON _Constants.Constant1 = _Constants.Constant1  -- association [1..1]
-- UNION with additional select branch(es): I_Plant
;