Pph_MatlocForPlanFileEntry
ProductSettings for Plan File Entries
Pph_MatlocForPlanFileEntry is a CDS View that provides data about "ProductSettings for Plan File Entries" in SAP S/4HANA. It reads from 1 data source (pph_e_mat_ctrl) and exposes 32 fields with key fields matnr, berid. It has 3 associations to related views. Part of development package PPH_AMDP_READ.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pph_e_mat_ctrl | matloc | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | PPH_STATUS_PPDS | _APStatus | _APStatus.Product = $projection.matnr and _APStatus.Berid = $projection.berid and _APStatus.Werks = $projection.werks |
| [0..1] | PPH_DDL_MAT_CTRL_0 | _matloc_kmat | _matloc_kmat.matnr = $projection.satnr and _matloc_kmat.werks = $projection.werks and _matloc_kmat.berid = $projection.berid |
| [0..1] | mara | _mara_kmat | _mara_kmat.matnr = $projection.satnr |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | ProductSettings for Plan File Entries | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | matnr | matnr | Vehicle Model | |
| KEY | berid | berid | Single-Character Flag | |
| werks | werks | Receiving Plant | ||
| dispo | dispo | MRP Controller | ||
| kzkup | kzkup | Co-Product | ||
| dismm | dismm | MRP Type | ||
| disvf | disvf | MRP Procedure | ||
| sobsl | sobsl | SpecProcuremKey | ||
| sobes | sobes | Spec. procuremt | ||
| satnr | satnr | Cross-plant CM | ||
| kzkfg | kzkfg | Origin of config | ||
| picnum | picnum | GrpNo.for PIC | ||
| imatn | imatn | FFF class | ||
| pickey | pickey | PIC key | ||
| rhytd | rhytd | Planning date | ||
| mmsta | mmsta | Primary Status | ||
| mstae | mstae | X-Plant Status | ||
| mstde | mstde | Valid from | ||
| mmstd | mmstd | Valid From | ||
| lvorm | lvorm | Stock del. flag | ||
| num_mdps | num_mdps | No. of MDPS Elements | ||
| num_rto_item | num_rto_item | Number of BOM Items | ||
| casesobeswhen7thenFelsebeskzendasbeskz | ||||
| ProductInternalUUID | _APStatus | ProductInternalUUID | ||
| LocationUUID | _APStatus | LocationUUID | UUID | |
| LocationType | _APStatus | LocationType | Location Type | |
| NetChangeRrp | _APStatus | NetChangeRrp | ||
| LastChangeLc | _APStatus | LastChangeLc | ||
| AdvancePlanningScopeValue | ||||
| forsupportpurposes_APStatus | ||||
| _matloc_kmat | _matloc_kmat | |||
| _mara_kmat | _mara_kmat |
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_MatlocForPlanFileEntry.
-- 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 Pph_MatlocForPlanFileEntry AS
SELECT
matnr,
berid,
werks,
dispo,
kzkup,
dismm,
disvf,
sobsl,
sobes,
satnr,
kzkfg,
picnum,
imatn,
pickey,
rhytd,
mmsta,
mstae,
mstde,
mmstd,
lvorm,
num_mdps,
num_rto_item,
case sobes when '7' then 'F' else beskz end as beskz AS casesobeswhen7thenFelsebeskzendasbeskz,
_APStatus.ProductInternalUUID AS ProductInternalUUID,
_APStatus.LocationUUID AS LocationUUID,
_APStatus.LocationType AS LocationType,
_APStatus.NetChangeRrp AS NetChangeRrp,
_APStatus.LastChangeLc AS LastChangeLc
FROM pph_e_mat_ctrl AS matloc
LEFT OUTER JOIN PPH_STATUS_PPDS AS _APStatus ON _APStatus.Product = matnr AND _APStatus.Berid = berid AND _APStatus.Werks = werks -- association [0..1]
LEFT OUTER JOIN PPH_DDL_MAT_CTRL_0 AS _matloc_kmat ON _matloc_kmat.matnr = satnr AND _matloc_kmat.werks = werks AND _matloc_kmat.berid = berid -- association [0..1]
LEFT OUTER JOIN mara AS _mara_kmat ON _mara_kmat.matnr = satnr -- 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