I_PurchaseOrderQuickView
Purchase Order Data
I_PurchaseOrderQuickView is a Composite CDS View that provides data about "Purchase Order Data" in SAP S/4HANA. It reads from 5 data sources (I_PurgDocAccountAssignment, P_DDPurchaseOrder, I_PurgInfoRecdOrgPlantData, I_ProductSupplyPlanning, I_WBSElementByInternalKey) and exposes 77 fields with key fields PurchasingDocument, PurchasingDocumentItem, ScheduleLine. It has 7 associations to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_PurgDocAccountAssignment | Acct | left_outer |
| P_DDPurchaseOrder | P_DDPurchaseOrder | from |
| I_PurgInfoRecdOrgPlantData | PIR | left_outer |
| I_ProductSupplyPlanning | Prod | left_outer |
| I_WBSElementByInternalKey | WBSElement | left_outer |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_MRPElementCategory | delkz |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurgDocumentItemCategory | _PurgDocumentItemCategory | $projection.MaterialProcurementCategory = _PurgDocumentItemCategory.PurchasingDocumentItemCategory |
| [0..1] | I_WBSElement | _WBSElement | $projection.WBSElement = _WBSElement.WBSElement |
| [0..1] | I_UnitOfMeasure | _BaseUnit | $projection.PurchaseOrderItemQuantityUnit = _BaseUnit.UnitOfMeasure |
| [0..1] | I_RoundingPrfText | _RoundingProfile | $projection.MaterialRoundingProfile = _RoundingProfile.MaterialRoundingProfile and $projection.MRPPlant = _RoundingProfile.Plant |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | P_DDMRPController | _MRPController | $projection.SupplyingPlant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController |
| [0..1] | I_Plant | _SupplyingPlant | $projection.SupplyingPlant = _SupplyingPlant.Plant |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPOQV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Purchase Order Data | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view |
Fields (77)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | Item | PurchasingDocument | Purchasing Document |
| KEY | PurchasingDocumentItem | Item | PurchasingDocumentItem | Purchasing Doc. Item |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| Material | Material | Vehicle Model | ||
| MaterialName | MaterialName | Material Description | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingDocumentTypeName | PurchasingDocumentTypeName | Description | ||
| MaterialProcurementCategory | PurchasingDocumentItemCategory | Item Category | ||
| SupplierMaterialNumber | SupplierMaterialNumber | Supp. Mat. No. | ||
| InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | ||
| MRPPlant | MRPPlant | Plant | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| SupplyingPlantName | _SupplyingPlant | PlantName | Plant Name | |
| PurchasingInfoRecord | Item | PurchasingInfoRecord | Info Record | |
| PurchasingOrganization | Item | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | Item | PurchasingGroup | Purchasing Group | |
| PurchasingGroupName | PurchasingGroupName | Purchasing Grp. Name | ||
| PurchasingGroupPhoneNumber | PurchasingGroupPhoneNumber | Tel.No.Purch.Gp | ||
| PurchasingGroupEmailAddress | PurchasingGroupEmailAddress | E-Mail Address | ||
| PlannedDeliveryDurationInDays | Item | PlannedDeliveryDurationInDays | Plnd dely time | |
| GoodsReceiptDurationInDays | GoodsReceiptDurationInDays | GR proc. time | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| ProductAvailabilityDate | ProductAvailabilityDate | Mat.Avail.Date | ||
| ScheduleLineOrderDate | ScheduleLineOrderDate | PurchOrderDate | ||
| PartialDeliveryIsAllowed | PartialDeliveryIsAllowed | Partial Deliv. | ||
| PurchaseContract | PurchaseContract | Purchasing Doc. | ||
| PurchaseContractItem | PurchaseContractItem | Item | ||
| PurchaseOrderItemQuantityUnit | Item | OrderQuantityUnit | Sales Unit | |
| OrderQuantity | OrderQuantity | Quantity | ||
| ScheduleLineOrderQuantity | ScheduleLineOrderQuantity | Scheduled Qty | ||
| RoughGoodsReceiptQty | RoughGoodsReceiptQty | Delivered | ||
| ScheduleLineOpenQuantity | ScheduleLineOpenQuantity | SchLineOpenQuan | ||
| MRPRelevantQuantity | ||||
| StockInTransitQuantity | ||||
| MRPElementOpenQuantity | ||||
| OrderPriceUnitToOrderUnitNmrtr | Item | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | |
| OrdPriceUnitToOrderUnitDnmntr | Item | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | |
| MRPController | I_ProductSupplyPlanning | MRPResponsible | MRP Controller | |
| MRPControllerName | _MRPController | MRPControllerName | Controller name | |
| InternalContactPersonName | _MRPController | InternalContactName | ||
| MRPControllerPhoneNumber | _MRPController | PhoneNumber | Telephone no. | |
| ContactPersonEmailAddress | _MRPController | EmailAddress | E-Mail Address | |
| Supplier | Item | Supplier | Supplier | |
| BPSupplierName | _Supplier | BPSupplierName | Supplier Name | |
| BPSupplierFullName | _Supplier | BPSupplierFullName | ||
| SupplierPhoneNumber | _Supplier | PhoneNumber1 | Telephone 1 | |
| InternalContactEmailAddress | ||||
| SalesDocument | I_PurgDocAccountAssignment | SalesOrder | SD Document | |
| SalesDocumentItem | I_PurgDocAccountAssignment | SalesOrderItem | Sales Order Item | |
| SalesDocumentType | ||||
| SalesOrderItemMaterial | ||||
| SalesOrderItemMaterialName | ||||
| Customer | ||||
| BPCustomerName | ||||
| BPCustomerFullName | ||||
| PhoneNumber | ||||
| EmailAddress | ||||
| WBSElementInternalID | I_PurgDocAccountAssignment | WBSElementInternalID | WBS Internal ID | |
| WBSElement | I_WBSElementByInternalKey | WBSElement | WBS Internal ID | |
| WBSDescription | I_WBSElementByInternalKey | WBSDescription | WBS Element Name | |
| WBSElementDescription | ||||
| ProjectInternalID | I_WBSElementByInternalKey | ProjectInternalID | Project Def. | |
| WBSElementObject | I_WBSElementByInternalKey | WBSElementObject | Object number | |
| Project | ||||
| ProjectDescription | ||||
| StandardPurchaseOrderQuantity | I_PurgInfoRecdOrgPlantData | StandardPurchaseOrderQuantity | Standard Qty | |
| MaximumOrderQuantity | I_PurgInfoRecdOrgPlantData | MaximumOrderQuantity | Max. Quantity | |
| MinimumPurchaseOrderQuantity | I_PurgInfoRecdOrgPlantData | MinimumPurchaseOrderQuantity | Minimum Qty | |
| MaterialStagingTime | I_PurgInfoRecdOrgPlantData | MaterialStagingTime | Staging Time | |
| 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 | |
| MaterialRoundingProfileName | ||||
| MRPElementCategory |
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_PurchaseOrderQuickView.
-- 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: IPOQV
-- Parameters: P_MRPElementCategory : delkz
CREATE VIEW I_PurchaseOrderQuickView AS
SELECT
Item.PurchasingDocument AS PurchasingDocument,
Item.PurchasingDocumentItem AS PurchasingDocumentItem,
ScheduleLine,
Material,
MaterialName,
PurchasingDocumentCategory,
PurchasingDocumentType,
PurchasingDocumentTypeName,
PurchasingDocumentItemCategory AS MaterialProcurementCategory,
SupplierMaterialNumber,
InventorySpecialStockType,
MRPPlant,
SupplyingPlant,
_SupplyingPlant.PlantName AS SupplyingPlantName,
Item.PurchasingInfoRecord AS PurchasingInfoRecord,
Item.PurchasingOrganization AS PurchasingOrganization,
Item.PurchasingGroup AS PurchasingGroup,
PurchasingGroupName,
PurchasingGroupPhoneNumber,
PurchasingGroupEmailAddress,
Item.PlannedDeliveryDurationInDays AS PlannedDeliveryDurationInDays,
GoodsReceiptDurationInDays,
DeliveryDate,
ProductAvailabilityDate,
ScheduleLineOrderDate,
PartialDeliveryIsAllowed,
PurchaseContract,
PurchaseContractItem,
Item.OrderQuantityUnit AS PurchaseOrderItemQuantityUnit,
OrderQuantity,
ScheduleLineOrderQuantity,
RoughGoodsReceiptQty,
ScheduleLineOpenQuantity,
cast(0 as dabmg) AS MRPRelevantQuantity,
cast(0 as mng01) AS StockInTransitQuantity,
cast(0 as mng01) AS MRPElementOpenQuantity,
Item.OrderPriceUnitToOrderUnitNmrtr AS OrderPriceUnitToOrderUnitNmrtr,
Item.OrdPriceUnitToOrderUnitDnmntr AS OrdPriceUnitToOrderUnitDnmntr,
Prod.MRPResponsible AS MRPController,
_MRPController.MRPControllerName AS MRPControllerName,
_MRPController.InternalContactName AS InternalContactPersonName,
_MRPController.PhoneNumber AS MRPControllerPhoneNumber,
_MRPController.EmailAddress AS ContactPersonEmailAddress,
Item.Supplier AS Supplier,
_Supplier.BPSupplierName AS BPSupplierName,
_Supplier.BPSupplierFullName AS BPSupplierFullName,
_Supplier.PhoneNumber1 AS SupplierPhoneNumber,
_Supplier._StandardAddress._DefaultEmailAddress.EmailAddress AS InternalContactEmailAddress,
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 BPCustomerName,
Acct._SalesOrder._SoldToParty.BPCustomerFullName AS BPCustomerFullName,
Acct._SalesOrder._SoldToParty._StandardAddress.PhoneNumber AS PhoneNumber,
Acct._SalesOrder._SoldToParty._StandardAddress._DefaultEmailAddress.EmailAddress AS EmailAddress,
Acct.WBSElementInternalID AS WBSElementInternalID,
WBSElement.WBSElement AS WBSElement,
WBSElement.WBSDescription AS WBSDescription,
_WBSElement._WBSElementLangBsdDesc[1: Language = $session.system_language ].WBSElementLangBsdDescription AS WBSElementDescription,
WBSElement.ProjectInternalID AS ProjectInternalID,
WBSElement.WBSElementObject AS WBSElementObject,
WBSElement._Project.Project AS Project,
WBSElement._Project.ProjectDescription AS ProjectDescription,
PIR.StandardPurchaseOrderQuantity AS StandardPurchaseOrderQuantity,
PIR.MaximumOrderQuantity AS MaximumOrderQuantity,
PIR.MinimumPurchaseOrderQuantity AS MinimumPurchaseOrderQuantity,
PIR.MaterialStagingTime AS MaterialStagingTime,
Prod.FixedLotSizeQuantity AS MaterialFixedLotSizeQuantity,
Prod.MinimumLotSizeQuantity AS MaterialMinLotSizeQuantity,
Prod.MaximumLotSizeQuantity AS MaterialMaxLotSizeQuantity,
Prod.LotSizeRoundingQuantity AS LotSizeRoundingQuantity,
Prod.RoundingProfile AS MaterialRoundingProfile,
_RoundingProfile[1: Language = $session.system_language].MaterialRoundingProfileName AS MaterialRoundingProfileName,
$parameters.P_MRPElementCategory AS MRPElementCategory
FROM P_DDPurchaseOrder
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_ProductSupplyPlanning AS Prod ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_WBSElementByInternalKey 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_WBSElement AS _WBSElement ON WBSElement = _WBSElement.WBSElement -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON PurchaseOrderItemQuantityUnit = _BaseUnit.UnitOfMeasure -- association [0..1]
LEFT OUTER JOIN I_RoundingPrfText AS _RoundingProfile ON MaterialRoundingProfile = _RoundingProfile.MaterialRoundingProfile AND MRPPlant = _RoundingProfile.Plant -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN P_DDMRPController AS _MRPController ON SupplyingPlant = _MRPController.Plant AND MRPController = _MRPController.MRPController -- association [0..1]
LEFT OUTER JOIN I_Plant AS _SupplyingPlant ON SupplyingPlant = _SupplyingPlant.Plant -- 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