DDL_PMRP_Prod_Rel

DDL: DDL_PMRP_PROD_REL SQL: PMRPPRODREL Type: view

DDL_PMRP_Prod_Rel is a CDS View in SAP S/4HANA. It reads from 4 data sources (pmrp_sos_input, pmrp_sos_input, is, pmrp_product) and exposes 6 fields with key fields reference_id, output_plant, input_plant. It has 2 associations to related views.

Data Sources (4)

SourceAliasJoin Type
pmrp_sos_input in left_outer
pmrp_sos_input in inner
is is inner
pmrp_product out_product inner

Associations (2)

CardinalityTargetAliasCondition
[1..*] DDL_PMRP_Prod_Rel _parent _parent.reference_id = $projection.reference_id and _parent.input_mrparea = $projection.output_mrparea and _parent.input_plant = $projection.output_plant and _parent.input_product = $projection.output_product -- this helps to reduce the size by filtering
[1..1] I_PMRPReferencePlan _reference _reference.PMRPReferencePlan = $projection.reference_id

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PMRPPRODREL view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY reference_id hd reference_id Reference No.
KEY output_plant hd output_plant Plant
KEY input_plant pmrp_sos_input input_plant Plant
input_uom pmrp_sos_input input_uom Component UoM
_parent _parent
_reference _reference

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 DDL_PMRP_Prod_Rel.
-- 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: PMRPPRODREL

CREATE VIEW DDL_PMRP_Prod_Rel AS
SELECT
  hd.reference_id AS reference_id,
  hd.output_plant AS output_plant,
  in.input_plant AS input_plant,
  in.input_uom AS input_uom
INNER JOIN pmrp_product AS out_product ON /* join condition not captured in parsed metadata */
INNER JOIN is ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN pmrp_sos_input AS in ON /* join condition not captured in parsed metadata */
INNER JOIN pmrp_sos_input AS in ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN DDL_PMRP_Prod_Rel AS _parent ON _parent.reference_id = reference_id AND _parent.input_mrparea = output_mrparea AND _parent.input_plant = output_plant AND _parent.input_product = output_product  -- association [1..*]
LEFT OUTER JOIN I_PMRPReferencePlan AS _reference ON _reference.PMRPReferencePlan = reference_id  -- association [1..1]
;