pp_mrp_read_purchase_req

DDL: PP_MRP_READ_PURCHASE_REQ SQL: V_MRP_PUR_REQ Type: view

Deprecated: Replaced by I_MRPPurchaseRequisition

pp_mrp_read_purchase_req is a CDS View that provides data about "Deprecated: Replaced by I_MRPPurchaseRequisition" in SAP S/4HANA. It reads from 7 data sources and exposes 47 fields. It has 1 association to related views.

Data Sources (7)

SourceAliasJoin Type
eina eina left_outer
eine eine left_outer
marc marc left_outer
mdtb mdt left_outer
proj pro inner
e_mrp_purchase_docs pur from
vbap vbp inner

Parameters (1)

NameTypeDefault
P_MRPElementCategory delkz

Associations (1)

CardinalityTargetAliasCondition
[0..1] E_Purchaserequisitionitem MM_PURREQN_ITEM_EXT $projection.PurchaseRequisition = MM_PURREQN_ITEM_EXT.PurchaseRequisition and $projection.PurchaseRequisitionItem = MM_PURREQN_ITEM_EXT.PurchaseRequisitionItem

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName V_MRP_PUR_REQ view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Deprecated: Replaced by I_MRPPurchaseRequisition view

Fields (47)

KeyFieldSource TableSource FieldDescription
PurchaseRequisition e_mrp_purchase_docs purchasingdoc Purchasing Doc.
PurchaseRequisitionItem e_mrp_purchase_docs purchasingdocitem5 Item
Material e_mrp_purchase_docs material Vehicle Model
MaterialProcurementCategory e_mrp_purchase_docs purchasingdocitemcategory Item Category
supplyingplantelseendasMRPPlant
plantelseendasSupplyingPlant
MRPController marc dispo MRP Controller
fixedvendorendasVendor
PurchaseRequisitionIsFixed mdtb fix01 Fixed Lot Size
PurchasingInfoRecord e_mrp_purchase_docs purchasinginforecord Info Record
PurchasingOrganization e_mrp_purchase_docs purchasingorganization Purchasing Organization
PurchasingGroup e_mrp_purchase_docs purchasinggroup Purchasing Group
TotalQuantity e_mrp_purchase_docs purchasingdocumentorderqty PO Quantity
OrderedQuantity e_mrp_purchase_docs orderedquantity Quantity
OpenQuantity
PurchaseRequisitionUnit e_mrp_purchase_docs purchasingdocorderqtyunit Order Unit
materialidbyvendorendasVendorMaterial
InventorySpecialStock e_mrp_purchase_docs inventoryspecialstock Special Stock
SalesDocument e_mrp_purchase_docs salesdocument SD Document
SalesDocumentItem e_mrp_purchase_docs salesdocumentitem Sales Document Item
SalesDocumentType vbk auart Sales Doc. Type
SalesDocumentItemMaterial vbap matnr Vehicle Model
Customer vbk kunnr Stock customer
WBSElementInternalID e_mrp_purchase_docs wbselementinternalid WBS Internal ID
WBSElement psp posid WBS Element
WBSDescription psp post1 Update
WBSResponsiblePerson psp vernr Pers.Resp.No.
WBSResponsiblePersonName psp verna Pers.Resp.Name
ProjectInternalID psp psphi Current proj.no
Project proj pspid Std. proj. def.
ProjectDescription proj post1 Update
MaterialPlannedDeliveryDurn e_mrp_purchase_docs materialplanneddeliverydurn Pl. Deliv. Time
MaterialGoodsReceiptDuration e_mrp_purchase_docs materialgoodsreceiptduration GR proc. time
ReleaseDate
DeliveryDate e_mrp_purchase_docs deliverydate Delivery Date
PurchaseOutlineAgreement e_mrp_purchase_docs purchaseoutlineagreement Agreement
PurchaseOutlineAgreementItem e_mrp_purchase_docs purchaseoutlineagreementitem Item
StandardPurchaseOrderQuantity eine norbm Standard Qty
MaximumPurchaseOrderQuantity eine bstma To Lot Size
MinimumPurchaseOrderQuantity eine minbm Minimum Qty
MaterialStagingDuration eine staging_time Staging Time
PurchaseOrderRoundingProfile eine rdprf Rounding Prfl.
MaterialFixedLotSizeQuantity marc bstfe Fixed lot size
MaterialMinLotSizeQuantity marc bstmi Min. Lot Size
MaterialMaxLotSizeQuantity marc bstma To Lot Size
MaterialRoundingQuantity marc bstrf Rounding value
MaterialRoundingProfile marc rdprf Rounding Prfl.

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 pp_mrp_read_purchase_req.
-- 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_MRP_PUR_REQ
-- Parameters: P_MRPElementCategory : delkz

CREATE VIEW pp_mrp_read_purchase_req AS
SELECT
  pur.purchasingdoc AS PurchaseRequisition,
  pur.purchasingdocitem5 AS PurchaseRequisitionItem,
  pur.material AS Material,
  pur.purchasingdocitemcategory AS MaterialProcurementCategory,
  case $parameters.P_MRPElementCategory when 'BA' then pur.plant when 'U2' then pur.supplyingplant else '' end as MRPPlant AS supplyingplantelseendasMRPPlant,
  case $parameters.P_MRPElementCategory when 'BA' then pur.supplyingplant when 'U2' then pur.plant else '' end as SupplyingPlant AS plantelseendasSupplyingPlant,
  marc.dispo AS MRPController,
  case pur.fixedvendor when '' then pur.vendor else pur.fixedvendor end as Vendor AS fixedvendorendasVendor,
  mdt.fix01 AS PurchaseRequisitionIsFixed,
  pur.purchasinginforecord AS PurchasingInfoRecord,
  pur.purchasingorganization AS PurchasingOrganization,
  pur.purchasinggroup AS PurchasingGroup,
  pur.purchasingdocumentorderqty AS TotalQuantity,
  pur.orderedquantity AS OrderedQuantity,
  (pur.purchasingdocumentorderqty - pur.orderedquantity) AS OpenQuantity,
  pur.purchasingdocorderqtyunit AS PurchaseRequisitionUnit,
  case pur.materialidbyvendor when '' then eina.idnlf else pur.materialidbyvendor end as VendorMaterial AS materialidbyvendorendasVendorMaterial,
  pur.inventoryspecialstock AS InventorySpecialStock,
  pur.salesdocument AS SalesDocument,
  pur.salesdocumentitem AS SalesDocumentItem,
  vbk.auart AS SalesDocumentType,
  vbp.matnr AS SalesDocumentItemMaterial,
  vbk.kunnr AS Customer,
  pur.wbselementinternalid AS WBSElementInternalID,
  psp.posid AS WBSElement,
  psp.post1 AS WBSDescription,
  psp.vernr AS WBSResponsiblePerson,
  psp.verna AS WBSResponsiblePersonName,
  psp.psphi AS ProjectInternalID,
  pro.pspid AS Project,
  pro.post1 AS ProjectDescription,
  pur.materialplanneddeliverydurn AS MaterialPlannedDeliveryDurn,
  pur.materialgoodsreceiptduration AS MaterialGoodsReceiptDuration,
  cast(pur.purchasingdocreleasedate as abap.dats) AS ReleaseDate,
  pur.deliverydate AS DeliveryDate,
  pur.purchaseoutlineagreement AS PurchaseOutlineAgreement,
  pur.purchaseoutlineagreementitem AS PurchaseOutlineAgreementItem,
  eine.norbm AS StandardPurchaseOrderQuantity,
  eine.bstma AS MaximumPurchaseOrderQuantity,
  eine.minbm AS MinimumPurchaseOrderQuantity,
  eine.staging_time AS MaterialStagingDuration,
  eine.rdprf AS PurchaseOrderRoundingProfile,
  marc.bstfe AS MaterialFixedLotSizeQuantity,
  marc.bstmi AS MaterialMinLotSizeQuantity,
  marc.bstma AS MaterialMaxLotSizeQuantity,
  marc.bstrf AS MaterialRoundingQuantity,
  marc.rdprf AS MaterialRoundingProfile
FROM e_mrp_purchase_docs AS pur
LEFT OUTER JOIN eina ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN eine ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN marc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN mdtb AS mdt ON /* join condition not captured in parsed metadata */
INNER JOIN proj AS pro ON /* join condition not captured in parsed metadata */
INNER JOIN vbap AS vbp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN E_Purchaserequisitionitem AS MM_PURREQN_ITEM_EXT ON PurchaseRequisition = MM_PURREQN_ITEM_EXT.PurchaseRequisition AND PurchaseRequisitionItem = MM_PURREQN_ITEM_EXT.PurchaseRequisitionItem  -- association [0..1]
;