Pph_MatlocForPlanFileEntry

DDL: PPH_MATLOCFORPLANFILEENTRY Type: view_entity Package: PPH_AMDP_READ

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)

SourceAliasJoin Type
pph_e_mat_ctrl matloc from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;