PPH_DD_MAT
DD Materials
PPH_DD_MAT is a CDS View that provides data about "DD Materials" in SAP S/4HANA. It reads from 2 data sources (sdm_aor, PPH_DD_MAT_CTRL) and exposes 10 fields with key fields matnr, werks, berid. It has 1 association to related views. Part of development package PPH_AMDP_READ.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| sdm_aor | aor | inner |
| PPH_DD_MAT_CTRL | matloc | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| planning_date | datum |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | pph_dd_stk | _stk_today | $projection.matnr = _stk_today.matnr and aor.werks = _stk_today.werks and $projection.berid = _stk_today.berid and _stk_today.date_from <= $parameters.planning_date and _stk_today.date_to >= $parameters.planning_date |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | V_PPH_DD_MAT | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | DD Materials | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | matnr | PPH_DD_MAT_CTRL | matnr | Vehicle Model |
| KEY | werks | PPH_DD_MAT_CTRL | werks | Receiving Plant |
| KEY | berid | PPH_DD_MAT_CTRL | berid | Single-Character Flag |
| meins | PPH_DD_MAT_CTRL | meins | Valuation Unit | |
| dispo | PPH_DD_MAT_CTRL | dispo | MRP Controller | |
| disgr | PPH_DD_MAT_CTRL | disgr | MRP Group | |
| disvf | PPH_DD_MAT_CTRL | disvf | MRP Procedure | |
| dismm | PPH_DD_MAT_CTRL | dismm | MRP Type | |
| matkl | PPH_DD_MAT_CTRL | matkl | Product Sold Group | |
| attyp | PPH_DD_MAT_CTRL | attyp | Trdg Goods Cat. |
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 PPH_DD_MAT.
-- 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: V_PPH_DD_MAT
-- Parameters: planning_date : datum
CREATE VIEW PPH_DD_MAT AS
SELECT
matloc.matnr AS matnr,
matloc.werks AS werks,
matloc.berid AS berid,
matloc.meins AS meins,
matloc.dispo AS dispo,
matloc.disgr AS disgr,
matloc.disvf AS disvf,
matloc.dismm AS dismm,
matloc.matkl AS matkl,
matloc.attyp AS attyp
FROM PPH_DD_MAT_CTRL AS matloc
INNER JOIN sdm_aor AS aor ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN pph_dd_stk AS _stk_today ON matnr = _stk_today.matnr AND aor.werks = _stk_today.werks AND berid = _stk_today.berid AND _stk_today.date_from <= $parameters.planning_date AND _stk_today.date_to >= $parameters.planning_date -- association [0..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