DDL_PMRP_Prod_Rel
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)
| Source | Alias | Join Type |
|---|---|---|
| pmrp_sos_input | in | left_outer |
| pmrp_sos_input | in | inner |
| is | is | inner |
| pmrp_product | out_product | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA