C_PurOrdItm
My Purchasing Document Items
C_PurOrdItm is a Consumption CDS View that provides data about "My Purchasing Document Items" in SAP S/4HANA. It reads from 1 data source (P_PurOrdItm) and exposes 81 fields with key fields PurchaseOrder, PurchaseOrderItem, AccountAssignmentNumber, PurgDocMigrtnIsCmpltdForAnlyts. It has 9 associations to related views. It is exposed through 1 OData service (ASQL_F0547B). Part of development package ODATA_MM_PUR_MYPURGDOCITEMS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PurOrdItm | P_PurOrdItm | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PurchasingCategoryMatlGroup | _PurchasingCategoryMatlGroup | $projection.MaterialGroup = _PurchasingCategoryMatlGroup.MaterialGroup |
| [1..1] | I_UserContactCard | _UserContactCard | $projection.CreatedByUser = _UserContactCard.ContactCardID |
| [0..1] | I_CustomerProjectWorkPackage | _CustProjectWorkPackage | $projection.WBSElementObject = _CustProjectWorkPackage.WBSElementObject |
| [0..1] | C_MM_MaterialValueHelp | _MaterialVH | _MaterialVH.Material = $projection.Material and _MaterialVH.Plant = $projection.Plant |
| [0..1] | C_MM_AccountAssignCatValueHelp | _AccAssignCatVH | $projection.AccountAssignmentCategory = _AccAssignCatVH.AccountAssignmentCategory |
| [0..1] | C_MassUpdtPurOrdVH | _PurchaseOrderVH | $projection.PurchaseOrder = _PurchaseOrderVH.PurchaseOrder and $projection.PurchaseOrderItem = _PurchaseOrderVH.PurchaseOrderItem |
| [0..1] | C_MM_MaterialGroupValueHelp | _MaterialGroupVH | $projection.MaterialGroup = _MaterialGroupVH.MaterialGroup |
| [0..1] | C_PurchasingOrgValueHelp | _PurchasingOrganizationVH | $projection.PurchasingOrganization = _PurchasingOrganizationVH.PurchasingOrganization |
| [0..1] | C_MM_ServicePerformerValueHelp | _ServicePerformerVH | $projection.ServicePerformer = _ServicePerformerVH.ServicePerformer and $projection.Supplier = _ServicePerformerVH.Supplier |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURGDOCITEMSPO | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | My Purchasing Document Items | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| UI.headerInfo.typeName | Purchase Order Item | view | |
| UI.headerInfo.typeNamePlural | Purchase Order Items | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F0547B | ASQL_F0547B | C2 | NOT_RELEASED |
Fields (81)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchase Order | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Item | |
| KEY | AccountAssignmentNumber | AccountAssignmentNumber | Account Assignment Number | |
| KEY | PurgDocMigrtnIsCmpltdForAnlyts | PurgDocMigrtnIsCmpltdForAnlyts | ||
| FormattedPurchaseOrderItem | FormattedPurchaseOrderItem | Purchase Order Item | ||
| MaterialDocumentItemText | PurchaseOrderItemText | Item Description | ||
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Account Assignment Category | ||
| AcctAssignmentCategoryName | _AccAssignCatVH | AcctAssignmentCategoryName | Description | |
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| SupplyingPlantName | SupplyingPlantName | Plant Name | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| PurchasingDocumentType | PurchasingDocumentType | Order Type | ||
| PurchasingDocumentTypeName | PurchasingDocumentTypeName | Description | ||
| PurchasingDocumentItemCategory | PurgDocExternalItemCategory | Item Category | ||
| PurgDocItemCategoryName | PurgDocItemCategoryName | Text for ItCat. | ||
| PurchasingDocument | PurchaseOrder | Document Number | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| MaterialGroupName | _MaterialGroupVH | MaterialGroupName | prod Grp Desc. | |
| Material | Material | Vehicle Model | ||
| MaterialName | _MaterialVH | MaterialName | Material Description | |
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingOrganizationName | _PurchasingOrganizationVH | PurchasingOrganizationName | Purch. Org. Name | |
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| PurchasingGroupName | PurchasingGroupName | Purchasing Grp. Name | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| CompanyCodeName | CompanyCodeName | Company Name | ||
| Plant | Plant | Valuation Area | ||
| PlantName | PlantName | Plant Name | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | StorageLocationName | Storage Loc. Name | ||
| Supplier | Supplier | Supplier | ||
| SupplierName | SupplierName | Supplier Name | ||
| PurchasingCategory | ||||
| PurgCatName | ||||
| ServicePerformer | ServicePerformer | Service Performer | ||
| ServicePerformerName | _ServicePerformerVH | ServicePerformerName | ||
| ProductType | ProductType | Product Type Group | ||
| ProductTypeName | ||||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| CreatedByUser | CreatedByUser | User Name | ||
| FullName | _UserContactCard | FullName | Created By | |
| _UserContactCard | _UserContactCard | |||
| CreationDate | CreationDate | Time Stamp | ||
| Status | Status | Status | ||
| PurchasingDocumentStatusName | PurchasingDocumentStatusName | |||
| ObjectType | ObjectType | Type | ||
| CostCenter | CostCenter | Cost Center | ||
| CostCenterName | CostCenterName | Name | ||
| SalesOrder | SalesOrder | Sales Order | ||
| ScheduleLineDeliveryDate | DeliveryDate | Next Delivery Date | ||
| ScheduleLineOpenQty | ScheduleLineOpenQty | |||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| NetAmount | NetAmount | Stated Amount | ||
| GoodsReceiptQuantity | GoodsReceiptQuantity | Delivered Quantity | ||
| GoodsReceiptAmount | GoodsReceiptAmount | Delivered Amount | ||
| InvoiceReceiptQty | InvoiceReceiptQty | Invoice Quantity | ||
| InvoiceRcptAmtInCoCodeCrcy | InvoiceRcptAmtInCoCodeCrcy | Invoice Value | ||
| StillToBeDeliveredQuantity | StillToBeDeliveredQuantity | |||
| StillToBeDeliveredValue | StillToBeDeliveredValue | |||
| StillToInvoiceQuantity | StillToInvoiceQuantity | |||
| StillToInvoiceValue | StillToInvoiceValue | |||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Supplier Purchasing Status | ||
| WorkItem | WorkItem | Work Item | ||
| WBSElementExternalID | WBSElementExternalID | Work Package | ||
| WBSElementObject | WBSElementObject | Object number | ||
| CustProjWorkPackageFullName | _CustProjectWorkPackage | CustProjWorkPackageFullName | ||
| _PurchaseOrder | _PurchaseOrder | |||
| _MaterialVH | _MaterialVH | |||
| _AccAssignCatVH | _AccAssignCatVH | |||
| _PurchaseOrderVH | _PurchaseOrderVH | |||
| _MaterialGroupVH | _MaterialGroupVH | |||
| _PurchasingOrganizationVH | _PurchasingOrganizationVH | |||
| _ServicePerformerVH | _ServicePerformerVH | |||
| _ProductType | _ProductType |
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 C_PurOrdItm.
-- 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: CPURGDOCITEMSPO
CREATE VIEW C_PurOrdItm AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
AccountAssignmentNumber,
PurgDocMigrtnIsCmpltdForAnlyts,
FormattedPurchaseOrderItem,
PurchaseOrderItemText AS MaterialDocumentItemText,
PurchaseOrderType,
AccountAssignmentCategory,
_AccAssignCatVH.AcctAssignmentCategoryName AS AcctAssignmentCategoryName,
SupplyingPlant,
SupplyingPlantName,
DeliveryDate,
PurchasingDocumentType,
PurchasingDocumentTypeName,
PurgDocExternalItemCategory AS PurchasingDocumentItemCategory,
PurgDocItemCategoryName,
PurchaseOrder AS PurchasingDocument,
MaterialGroup,
_MaterialGroupVH.MaterialGroupName AS MaterialGroupName,
Material,
_MaterialVH.MaterialName AS MaterialName,
PurchasingOrganization,
_PurchasingOrganizationVH.PurchasingOrganizationName AS PurchasingOrganizationName,
PurchasingGroup,
PurchasingGroupName,
CompanyCode,
CompanyCodeName,
Plant,
PlantName,
StorageLocation,
StorageLocationName,
Supplier,
SupplierName,
_PurchasingCategoryMatlGroup._PurchasingCategory.PurchasingCategory AS PurchasingCategory,
_PurchasingCategoryMatlGroup._PurchasingCategory.PurgCatName AS PurgCatName,
ServicePerformer,
_ServicePerformerVH.ServicePerformerName AS ServicePerformerName,
ProductType,
_ProductType._Text[1: Language = $session.system_language ].Name AS ProductTypeName,
IsReturnsItem,
PurchaseOrderDate,
CreatedByUser,
_UserContactCard.FullName AS FullName,
CreationDate,
Status,
PurchasingDocumentStatusName,
ObjectType,
CostCenter,
CostCenterName,
SalesOrder,
DeliveryDate AS ScheduleLineDeliveryDate,
ScheduleLineOpenQty,
NetPriceAmount,
NetPriceQuantity,
NetAmount,
GoodsReceiptQuantity,
GoodsReceiptAmount,
InvoiceReceiptQty,
InvoiceRcptAmtInCoCodeCrcy,
StillToBeDeliveredQuantity,
StillToBeDeliveredValue,
StillToInvoiceQuantity,
StillToInvoiceValue,
OrderPriceUnit,
PurchaseOrderQuantityUnit,
DocumentCurrency,
CompanyCodeCurrency,
IsBusinessPurposeCompleted,
WorkItem,
WBSElementExternalID,
WBSElementObject,
_CustProjectWorkPackage.CustProjWorkPackageFullName AS CustProjWorkPackageFullName
FROM P_PurOrdItm
LEFT OUTER JOIN I_PurchasingCategoryMatlGroup AS _PurchasingCategoryMatlGroup ON MaterialGroup = _PurchasingCategoryMatlGroup.MaterialGroup -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON CreatedByUser = _UserContactCard.ContactCardID -- association [1..1]
LEFT OUTER JOIN I_CustomerProjectWorkPackage AS _CustProjectWorkPackage ON WBSElementObject = _CustProjectWorkPackage.WBSElementObject -- association [0..1]
LEFT OUTER JOIN C_MM_MaterialValueHelp AS _MaterialVH ON _MaterialVH.Material = Material AND _MaterialVH.Plant = Plant -- association [0..1]
LEFT OUTER JOIN C_MM_AccountAssignCatValueHelp AS _AccAssignCatVH ON AccountAssignmentCategory = _AccAssignCatVH.AccountAssignmentCategory -- association [0..1]
LEFT OUTER JOIN C_MassUpdtPurOrdVH AS _PurchaseOrderVH ON PurchaseOrder = _PurchaseOrderVH.PurchaseOrder AND PurchaseOrderItem = _PurchaseOrderVH.PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN C_MM_MaterialGroupValueHelp AS _MaterialGroupVH ON MaterialGroup = _MaterialGroupVH.MaterialGroup -- association [0..1]
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrganizationVH ON PurchasingOrganization = _PurchasingOrganizationVH.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_MM_ServicePerformerValueHelp AS _ServicePerformerVH ON ServicePerformer = _ServicePerformerVH.ServicePerformer AND Supplier = _ServicePerformerVH.Supplier -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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