P_PPH_MRP_MAT
Material List for MRP Live
P_PPH_MRP_MAT is a Basic CDS View that provides data about "Material List for MRP Live" in SAP S/4HANA. It reads from 3 data sources (pph_dbvm, pph_mrp_issues, pphdbvmset) and exposes 12 fields with key fields matnr, werks, berid. Part of development package PPH_MRP.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| pph_dbvm | d | from |
| pph_mrp_issues | i | left_outer |
| pphdbvmset | s | left_outer |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | matnr | pph_dbvm | matnr | |
| KEY | werks | pph_dbvm | werks | |
| KEY | berid | pph_dbvm | berid | |
| log_uuid | pph_mrp_issues | log_uuid | ||
| MRP_timestamp | pph_dbvm | dstmp | ||
| msgid | ||||
| msgtyIasmsgty | ||||
| msgv1 | pph_mrp_issues | msgv1 | ||
| msgv2 | pph_mrp_issues | msgv2 | ||
| msgv3 | pph_mrp_issues | msgv3 | ||
| msgv4 | pph_mrp_issues | msgv4 | ||
| plan_in_abap | pphdbvmset | plan_in_abap |
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #BASIC
@VDM.private: true
define view entity P_PPH_MRP_MAT
as select from pph_dbvm as d
left outer join pphdbvmset as s on s.matnr = d.matnr
and s.werks = d.werks
left outer join pph_mrp_issues as i on i.matnr = d.matnr
and i.werks = d.werks
and i.berid = d.berid
left outer to one join I_MRPMasterDataIssueCatAssgmt as cat on cat.SystemMessageIdentification = i.msgid
and cat.SystemMessageNumber = i.msgno
{
key d.matnr,
key d.werks,
key d.berid,
key coalesce( i.source_of_issue, 'H') as source_of_issue, -- Hana MRP doees not write success message
key coalesce( i.counter, 0 ) as counter,
coalesce(cat.MRPMasterDataIssueCategory,'I') as issue_category,
i.log_uuid,
coalesce(i.timestamp,d.dstmp) as message_timestamp,
d.dstmp as MRP_timestamp,
coalesce(i.msgid,'PPH_MRP') as msgid, -- nothing found --> last time planned successfully
coalesce(i.msgty,'I') as msgty,
case when d.dstmp > 0 then coalesce(i.msgno,'130')
else coalesce(i.msgno,'131')
end as msgno,
i.msgv1,
i.msgv2,
i.msgv3,
i.msgv4,
s.plan_in_abap,
s.planned_in_hana,
s.planned_in_abap,
s.planned_in_ppds
}
where
d.plscn = '000'
and d.sc_empty = ''
and d.nodisp = ''
Learn More
- 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 Annotations — A Complete Guide
- 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