I_MRPPurchaseOrder
MRP Purchase Order
I_MRPPurchaseOrder is a Composite CDS View that provides data about "MRP Purchase Order" in SAP S/4HANA. It reads from 8 data sources and exposes 88 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine. It has 2 associations to related views.
Data Sources (8)
| Source | Alias | Join Type |
|---|---|---|
| I_PurgDocAccountAssignment | Acct | left_outer |
| I_PurchasingDocument | Head | from |
| I_PurchasingDocumentItem | Item | inner |
| I_PurgDocScheduleLine | Line | left_outer |
| I_PurgInfoRecdOrgPlantData | PIR | left_outer |
| I_PurgInfoRecdOrgPlantData | PIR2 | left_outer |
| I_ProductSupplyPlanning | Prod | left_outer |
| I_WBSElement | WBSElement | left_outer |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_MRPElementCategory | mrpelementcategory |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurgDocumentItemCategory | _PurgDocumentItemCategory | $projection.MaterialProcurementCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.PurchaseOrderItemQuantityUnit = _BaseUnit.UnitOfMeasure |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMRPPURCHORDER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | MRP Purchase Order | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (88)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | I_PurchasingDocumentItem | PurchasingDocument | Purchasing Document |
| KEY | PurchaseOrderItem | I_PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item |
| KEY | ScheduleLine | I_PurgDocScheduleLine | ScheduleLine | Schedule Line |
| MRPElementItem | ||||
| Material | I_PurchasingDocumentItem | Material | Vehicle Model | |
| MaterialName | ||||
| PurchasingDocumentCategory | I_PurchasingDocument | PurchasingDocumentCategory | Doc. Category | |
| PurchasingDocumentType | I_PurchasingDocument | PurchasingDocumentType | RFQ Type | |
| MaterialProcurementCategory | I_PurchasingDocumentItem | PurchasingDocumentItemCategory | Item Category | |
| MaterialProcurementCatName | ||||
| PlantelseendasMRPPlant | ||||
| SupplyingPlantelseendasSupplyingPlant | ||||
| MRPController | I_ProductSupplyPlanning | MRPResponsible | MRP Controller | |
| Supplier | I_PurchasingDocument | Supplier | Supplier | |
| SupplierMaterialNumber | I_PurchasingDocumentItem | SupplierMaterialNumber | Supp. Mat. No. | |
| InventorySpecialStockType | I_PurchasingDocumentItem | InventorySpecialStockType | Special Stock Type | |
| LastChangeDateTime | I_PurchasingDocument | LastChangeDateTime | Timestamp | |
| SalesDocument | I_PurgDocAccountAssignment | SalesOrder | SD Document | |
| SalesDocumentItem | I_PurgDocAccountAssignment | SalesOrderItem | Sales Order Item | |
| SalesDocumentType | ||||
| SalesOrderItemMaterial | ||||
| SalesOrderItemMaterialName | ||||
| Customer | ||||
| CustomerName | ||||
| CustomerFullName | ||||
| PhoneNumber | ||||
| WBSElementInternalID | I_PurgDocAccountAssignment | WBSElementInternalID | WBS Internal ID | |
| WBSElement | I_WBSElement | WBSElement | WBS Internal ID | |
| WBSDescription | I_WBSElement | WBSDescription | WBS Element Name | |
| WBSElementDescription | ||||
| WBSElementObject | I_WBSElement | WBSElementObject | Object number | |
| ResponsiblePerson | I_WBSElement | ResponsiblePerson | Processor | |
| ResponsiblePersonName | I_WBSElement | ResponsiblePersonName | User | |
| ProjectInternalID | I_WBSElement | ProjectInternalID | Project Def. | |
| Project | ||||
| ProjectDescription | ||||
| ProjectResponsiblePerson | ||||
| ProjectResponsiblePersonName | ||||
| PurchasingInfoRecord | I_PurchasingDocumentItem | PurchasingInfoRecord | Info Record | |
| PurchasingOrganization | I_PurchasingDocument | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_PurchasingDocument | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | ||||
| PurchasingGroupEmailAddress | ||||
| MaterialPlannedDeliveryDurn | I_PurchasingDocumentItem | PlannedDeliveryDurationInDays | Plnd dely time | |
| MaterialGoodsReceiptDuration | I_PurchasingDocumentItem | GoodsReceiptDurationInDays | GR proc. time | |
| ScheduleLineOrderDate | I_PurgDocScheduleLine | ScheduleLineOrderDate | PurchOrderDate | |
| DeliveryDate | I_PurgDocScheduleLine | ScheduleLineDeliveryDate | Delivery Date | |
| ProductAvailabilityDate | I_PurgDocScheduleLine | ProductAvailabilityDate | Mat.Avail.Date | |
| PartialDeliveryIsAllowed | I_PurchasingDocumentItem | PartialDeliveryIsAllowed | Partial Deliv. | |
| IsOrderAcknRqd | I_PurchasingDocumentItem | IsOrderAcknRqd | Acknowl. Reqd. | |
| PurchaseOutlineAgreement | I_PurchasingDocumentItem | PurchaseContract | Purchasing Doc. | |
| PurchaseOutlineAgreementItem | I_PurchasingDocumentItem | PurchaseContractItem | Item | |
| OrderItemQtyToBaseQtyDnmntr | I_PurchasingDocumentItem | OrderItemQtyToBaseQtyDnmntr | Denominator | |
| OrderItemQtyToBaseQtyNmrtr | I_PurchasingDocumentItem | OrderItemQtyToBaseQtyNmrtr | Equal To | |
| MaterialFixedLotSizeQuantity | I_ProductSupplyPlanning | FixedLotSizeQuantity | Fixed lot size | |
| MaterialMinLotSizeQuantity | I_ProductSupplyPlanning | MinimumLotSizeQuantity | Min. Lot Size | |
| MaterialMaxLotSizeQuantity | I_ProductSupplyPlanning | MaximumLotSizeQuantity | Max. Lot Size | |
| LotSizeRoundingQuantity | I_ProductSupplyPlanning | LotSizeRoundingQuantity | Rounding value | |
| MaterialRoundingProfile | I_ProductSupplyPlanning | RoundingProfile | Rnding Profile | |
| BaseUnit | I_PurchasingDocumentItem | BaseUnit | Unit of Measure | |
| UnitOfMeasure | _BaseUnit | UnitOfMeasure | Unit Protected Qty | |
| UnitOfMeasureNumberOfDecimals | _BaseUnit | UnitOfMeasureNumberOfDecimals | ||
| UnitOfMeasureDspNmbrOfDcmls | _BaseUnit | UnitOfMeasureDspNmbrOfDcmls | ||
| UnitOfMeasureCommercialName | ||||
| PurchaseOrderItemQuantityUnit | I_PurchasingDocumentItem | OrderQuantityUnit | Sales Unit | |
| PurchaseOrderItemQuantity | I_PurchasingDocumentItem | OrderQuantity | Quantity | |
| ScheduleLineOrderQuantity | I_PurgDocScheduleLine | ScheduleLineOrderQuantity | Scheduled Qty | |
| GoodsReceiptQuantity | I_PurgDocScheduleLine | GoodsReceiptQuantity | Delivered | |
| ScheduleLineOpenQuantity | I_PurgDocScheduleLine | ScheduleLineOpenQuantity | SchLineOpenQuan | |
| QuickViewCategory | ||||
| MRPElementCategory | ||||
| _BaseUnit | _BaseUnit | |||
| _Supplier | I_PurchasingDocument | _Supplier | ||
| _PurchasingGroup | I_PurchasingDocument | _PurchasingGroup | ||
| _SalesOrder | I_PurgDocAccountAssignment | _SalesOrder | ||
| _SalesOrderItem | I_PurgDocAccountAssignment | _SalesOrderItem | ||
| _Material | I_PurchasingDocumentItem | _Material | ||
| _PurchaseContract | I_PurchasingDocumentItem | _PurchaseContract | ||
| _PurchaseContractItem | I_PurchasingDocumentItem | _PurchaseContractItem | ||
| _PurchasingDocument | I_PurchasingDocumentItem | _PurchasingDocument | ||
| _PurchasingDocumentType | I_PurchasingDocument | _PurchasingDocumentType | ||
| _PurchasingInfoRecord | I_PurchasingDocumentItem | _PurchasingInfoRecord | ||
| _PurchasingOrganization | I_PurchasingDocument | _PurchasingOrganization | ||
| _SalesOrderType | ||||
| _SoldToParty | ||||
| _WBSElementByInternalKey | I_PurgDocAccountAssignment | _WBSElementByInternalKey | ||
| _PurchasingDocumentCategory | I_PurchasingDocument | _PurchasingDocumentCategory | ||
| _PurgDocumentItemCategory | _PurgDocumentItemCategory |
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 I_MRPPurchaseOrder.
-- 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: IMRPPURCHORDER
-- Parameters: P_MRPElementCategory : mrpelementcategory
CREATE VIEW I_MRPPurchaseOrder AS
SELECT
Item.PurchasingDocument AS PurchaseOrder,
Item.PurchasingDocumentItem AS PurchaseOrderItem,
Line.ScheduleLine AS ScheduleLine,
cast( Item.PurchasingDocumentItem as abap.int4 ) AS MRPElementItem,
Item.Material AS Material,
Item._Material._Text[1: Language = $session.system_language].MaterialName AS MaterialName,
Head.PurchasingDocumentCategory AS PurchasingDocumentCategory,
Head.PurchasingDocumentType AS PurchasingDocumentType,
Item.PurchasingDocumentItemCategory AS MaterialProcurementCategory,
_PurgDocumentItemCategory._Text[1: Language = $session.system_language].PurgDocItemCategoryName AS MaterialProcurementCatName,
case $parameters.P_MRPElementCategory when 'BE' then Item.Plant when 'U1' then Head.SupplyingPlant when 'LE' then Item.Plant else '' end as MRPPlant AS PlantelseendasMRPPlant,
case $parameters.P_MRPElementCategory when 'BE' then Head.SupplyingPlant when 'U1' then Item.Plant when 'LE' then Head.SupplyingPlant else '' end as SupplyingPlant AS SupplyingPlantelseendasSupplyingPlant,
Prod.MRPResponsible AS MRPController,
Head.Supplier AS Supplier,
Item.SupplierMaterialNumber AS SupplierMaterialNumber,
Item.InventorySpecialStockType AS InventorySpecialStockType,
Head.LastChangeDateTime AS LastChangeDateTime,
Acct.SalesOrder AS SalesDocument,
Acct.SalesOrderItem AS SalesDocumentItem,
Acct._SalesOrder.SalesOrderType AS SalesDocumentType,
Acct._SalesOrderItem.Material AS SalesOrderItemMaterial,
Acct._SalesOrderItem._Material._Text[1: Language = $session.system_language ].MaterialName AS SalesOrderItemMaterialName,
Acct._SalesOrder.SoldToParty AS Customer,
Acct._SalesOrder._SoldToParty.BPCustomerName AS CustomerName,
Acct._SalesOrder._SoldToParty.BPCustomerFullName AS CustomerFullName,
Acct._SalesOrder._SoldToParty._StandardAddress.PhoneNumber AS PhoneNumber,
Acct.WBSElementInternalID AS WBSElementInternalID,
WBSElement.WBSElement AS WBSElement,
WBSElement.WBSDescription AS WBSDescription,
WBSElement._WBSElementLangBsdDesc[1: Language = $session.system_language ].WBSElementLangBsdDescription AS WBSElementDescription,
WBSElement.WBSElementObject AS WBSElementObject,
WBSElement.ResponsiblePerson AS ResponsiblePerson,
WBSElement.ResponsiblePersonName AS ResponsiblePersonName,
WBSElement.ProjectInternalID AS ProjectInternalID,
WBSElement._Project.ProjectWithCodingMask AS Project,
WBSElement._Project.ProjectDescription AS ProjectDescription,
WBSElement._Project.ResponsiblePerson AS ProjectResponsiblePerson,
WBSElement._Project.ResponsiblePersonName AS ProjectResponsiblePersonName,
Item.PurchasingInfoRecord AS PurchasingInfoRecord,
Head.PurchasingOrganization AS PurchasingOrganization,
Head.PurchasingGroup AS PurchasingGroup,
Head._PurchasingGroup.PurchasingGroupName AS PurchasingGroupName,
Head._PurchasingGroup.EmailAddress AS PurchasingGroupEmailAddress,
Item.PlannedDeliveryDurationInDays AS MaterialPlannedDeliveryDurn,
Item.GoodsReceiptDurationInDays AS MaterialGoodsReceiptDuration,
Line.ScheduleLineOrderDate AS ScheduleLineOrderDate,
Line.ScheduleLineDeliveryDate AS DeliveryDate,
Line.ProductAvailabilityDate AS ProductAvailabilityDate,
Item.PartialDeliveryIsAllowed AS PartialDeliveryIsAllowed,
Item.IsOrderAcknRqd AS IsOrderAcknRqd,
Item.PurchaseContract AS PurchaseOutlineAgreement,
Item.PurchaseContractItem AS PurchaseOutlineAgreementItem,
Item.OrderItemQtyToBaseQtyDnmntr AS OrderItemQtyToBaseQtyDnmntr,
Item.OrderItemQtyToBaseQtyNmrtr AS OrderItemQtyToBaseQtyNmrtr,
Prod.FixedLotSizeQuantity AS MaterialFixedLotSizeQuantity,
Prod.MinimumLotSizeQuantity AS MaterialMinLotSizeQuantity,
Prod.MaximumLotSizeQuantity AS MaterialMaxLotSizeQuantity,
Prod.LotSizeRoundingQuantity AS LotSizeRoundingQuantity,
Prod.RoundingProfile AS MaterialRoundingProfile,
Item.BaseUnit AS BaseUnit,
_BaseUnit.UnitOfMeasure AS UnitOfMeasure,
_BaseUnit.UnitOfMeasureNumberOfDecimals AS UnitOfMeasureNumberOfDecimals,
_BaseUnit.UnitOfMeasureDspNmbrOfDcmls AS UnitOfMeasureDspNmbrOfDcmls,
_BaseUnit._Text[1: Language = $session.system_language ].UnitOfMeasureCommercialName AS UnitOfMeasureCommercialName,
Item.OrderQuantityUnit AS PurchaseOrderItemQuantityUnit,
Item.OrderQuantity AS PurchaseOrderItemQuantity,
Line.ScheduleLineOrderQuantity AS ScheduleLineOrderQuantity,
Line.GoodsReceiptQuantity AS GoodsReceiptQuantity,
Line.ScheduleLineOpenQuantity AS ScheduleLineOpenQuantity,
'000' AS QuickViewCategory,
$parameters.P_MRPElementCategory AS MRPElementCategory,
Head._Supplier AS _Supplier,
Head._PurchasingGroup AS _PurchasingGroup,
Acct._SalesOrder AS _SalesOrder,
Acct._SalesOrderItem AS _SalesOrderItem,
Item._Material AS _Material,
Item._PurchaseContract AS _PurchaseContract,
Item._PurchaseContractItem AS _PurchaseContractItem,
Item._PurchasingDocument AS _PurchasingDocument,
Head._PurchasingDocumentType AS _PurchasingDocumentType,
Item._PurchasingInfoRecord AS _PurchasingInfoRecord,
Head._PurchasingOrganization AS _PurchasingOrganization,
Acct._SalesOrder._SalesOrderType AS _SalesOrderType,
Acct._SalesOrder._SoldToParty AS _SoldToParty,
Acct._WBSElementByInternalKey AS _WBSElementByInternalKey,
Head._PurchasingDocumentCategory AS _PurchasingDocumentCategory
FROM I_PurchasingDocument AS Head
INNER JOIN I_PurchasingDocumentItem AS Item ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgDocScheduleLine AS Line ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgDocAccountAssignment AS Acct ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgInfoRecdOrgPlantData AS PIR ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgInfoRecdOrgPlantData AS PIR2 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductSupplyPlanning AS Prod ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WBSElement AS WBSElement ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurgDocumentItemCategory AS _PurgDocumentItemCategory ON MaterialProcurementCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON PurchaseOrderItemQuantityUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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