P_PPH_MRP_MAT

DDL: P_PPH_MRP_MAT SQL: P_PPH_MRP_MAT_V Type: view BASIC

P_PPH_MRP_MAT is a Basic CDS View 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.

Data Sources (3)

SourceAliasJoin Type
pph_dbvm d from
pph_mrp_issues i left_outer
pphdbvmset s left_outer

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName P_PPH_MRP_MAT_V view
AbapCatalog.compiler.compareFilter true view
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)

KeyFieldSource TableSource FieldDescription
KEY matnr pph_dbvm matnr Vehicle Model
KEY werks pph_dbvm werks Receiving Plant
KEY berid pph_dbvm berid Single-Character Flag
log_uuid pph_mrp_issues log_uuid UUID
MRP_timestamp pph_dbvm dstmp MRP Timestamp
msgid
msgtyIasmsgty
msgv1 pph_mrp_issues msgv1 Message variable 1
msgv2 pph_mrp_issues msgv2 Message variable 2
msgv3 pph_mrp_issues msgv3 Message variable 3
msgv4 pph_mrp_issues msgv4 Message variable 4
plan_in_abap pphdbvmset plan_in_abap Plan in Classic MRP

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 P_PPH_MRP_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: P_PPH_MRP_MAT_V

CREATE VIEW P_PPH_MRP_MAT AS
SELECT
  d.matnr AS matnr,
  d.werks AS werks,
  d.berid AS berid,
  i.log_uuid AS log_uuid,
  d.dstmp AS MRP_timestamp,
  coalesce(i.msgid,'PPH_MRP') AS msgid,
  i.msgv1 AS msgv1,
  i.msgv2 AS msgv2,
  i.msgv3 AS msgv3,
  i.msgv4 AS msgv4,
  s.plan_in_abap AS plan_in_abap
FROM pph_dbvm AS d
LEFT OUTER JOIN pphdbvmset AS s ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN pph_mrp_issues AS i ON /* join condition not captured in parsed metadata */
;