C_PurOrdMaintainItem
PO Maintenance: Purchase Order Items (Active + Draft)
C_PurOrdMaintainItem is a Consumption CDS View that provides data about "PO Maintenance: Purchase Order Items (Active + Draft)" in SAP S/4HANA. It reads from 1 data source (P_PurOrdMaintainItemAll) and exposes 114 fields with key fields ID, PurchaseOrderItemDraftUUID, PurchaseOrderHeaderDraftUUID, PurchaseOrder, PurchaseOrderItem. It has 21 associations to related views. Part of development package ODATA_MM_PUR_PO_MAINTAIN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PurOrdMaintainItemAll | PurchaseOrderItems | from |
Associations (21)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_PurchasingDocumentItem | _PurDocItemExtension | $projection.PurchaseOrder = _PurDocItemExtension.PurchasingDocument and $projection.PurchaseOrderItem = _PurDocItemExtension.PurchasingDocumentItem |
| [0..1] | E_PurchasingDocumentItemDraft | _PurDocItemDraftExtension | $projection.PurchaseOrderItemDraftUUID = _PurDocItemDraftExtension.PurchaseOrderItemDraftUUID |
| [0..*] | I_IncotermsClassificationText | _IncotermsClassificationText | $projection.IncotermsClassification = _IncotermsClassificationText.IncotermsClassification |
| [0..*] | I_IncotermsVersionText | _IncotermsVersionText | $projection.IncotermsVersion = _IncotermsVersionText.IncotermsVersion |
| [0..*] | I_CountryText | _CountryText | $projection.DeliveryAddressCountry = _CountryText.Country |
| [0..*] | I_AcctAssignmentCategoryText | _AcctAssignmentCategoryText | $projection.AcctAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory |
| [0..*] | I_PurgDocumentItemCategoryText | _ItemCategoryText | $projection.PurchaseOrderItemCategory = _ItemCategoryText.PurchasingDocumentItemCategory |
| [0..*] | I_RegionText | _RegionText | $projection.DeliveryAddressRegion = _RegionText.Region and $projection.DeliveryAddressCountry = _RegionText.Country |
| [0..*] | I_UnitOfMeasureText | _QuantityUnit | $projection.PurchaseOrderQuantityUnit = _QuantityUnit.UnitOfMeasure |
| [0..*] | I_UnitOfMeasureText | _OrderPriceUnit | $projection.PurchaseOrderPriceUnit = _OrderPriceUnit.UnitOfMeasure |
| [0..*] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material |
| [0..*] | I_MaterialGroupText | _MaterialGroupText | $projection.MaterialGroup = _MaterialGroupText.MaterialGroup |
| [0..*] | I_FunctionalAreaText | _FunctionalAreaText | $projection.FunctionalArea = _FunctionalAreaText.FunctionalArea |
| [0..*] | I_ProductTypeCodeText | _ProductTypeText | $projection.ProductType = _ProductTypeText.ProductTypeCode |
| [0..1] | I_Customer | _CustomerName | $projection.Customer = _CustomerName.Customer |
| [0..1] | P_Purordmaintaincustproj | _Purordmaintaincustproj | $projection.WBSElementInternalID = _Purordmaintaincustproj.WBSElementInternalID |
| [0..*] | I_CostCenterText | _CostCenterText | $projection.ControllingArea = _CostCenterText.ControllingArea and $projection.CostCenter = _CostCenterText.CostCenter |
| [0..*] | I_ProfitCenterText | _ProfitCenterText | $projection.ControllingArea = _ProfitCenterText.ControllingArea and $projection.ProfitCenter = _ProfitCenterText.ProfitCenter |
| [0..*] | I_TaxCodeText | _TaxCodeText | $projection.TaxCalculationProcedure = _TaxCodeText.TaxCalculationProcedure and $projection.TaxCode = _TaxCodeText.TaxCode |
| [0..*] | I_TaxJurisdictionText | _TaxJurisdictionText | $projection.TaxJurisdictionCalcProcedure = _TaxJurisdictionText.TaxJurisdictionCalcProcedure and $projection.TaxJurisdiction = _TaxJurisdictionText.TaxJurisdiction |
| [0..*] | C_PurOrdMaintainItem | _PurOrdMaintainItem | $projection.PurchaseOrder = _PurOrdMaintainItem.PurchaseOrder and $projection.PurchaseOrderItem = _PurOrdMaintainItem.PurchaseOrderItem and $projection.PurchaseOrderHeaderDraftUUID = _PurOrdMaintainItem.PurchaseOrderHeaderDraftUUID and $projection.PurchaseOrderItemDraftUUID = _PurOrdMaintainItem.PurchaseOrderItemDraftUUID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | CPOMAINTITM | view | |
| EndUserText.label | PO Maintenance: Purchase Order Items (Active + Draft) | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.lifecycle.status | #DEPRECATED | view |
Fields (114)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ID | ID | WorklistID | |
| KEY | PurchaseOrderItemDraftUUID | PurchaseOrderItemDraftUUID | ||
| KEY | PurchaseOrderHeaderDraftUUID | PurchaseOrderHeaderDraftUUID | ||
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| ParentId | ParentId | UUID | ||
| PurchasingDocumentItemText | PurchasingDocumentItemText | Short Text | ||
| Material | Material | Vehicle Model | ||
| MaterialType | MaterialType | Material Type | ||
| ProductType | ProductType | Product Type Group | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| PlantName | PlantName | Plant Name | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | StorageLocationName | Storage Loc. Name | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| PurchaseOrderQty | PurchaseOrderQty | Purchase Order Quantity | ||
| PurchaseOrderNetPriceAmount | PurchaseOrderNetPriceAmount | |||
| PurchaseOrderNetAmount | PurchaseOrderNetAmount | Net Value | ||
| Currency | Currency | Valuation Crcy | ||
| NetPriceIsDerived | NetPriceIsDerived | |||
| PurOrderEffectiveItemAmount | PurOrderEffectiveItemAmount | |||
| PurchaseOrderNetPriceQuantity | PurchaseOrderNetPriceQuantity | |||
| PurchaseOrderPriceUnit | PurchaseOrderPriceUnit | Order Price Un. | ||
| Customer | Customer | Sold-to Party | ||
| CustomerName | _CustomerName | CustomerName | Name of Customer | |
| ServicePerformer | ServicePerformer | Service Performer | ||
| ServicePerformerName | ServicePerformerName | Extracted Customer Name | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxJurisdiction | TaxJurisdiction | Tax Jurisdiction | ||
| GoodsReceiptIsExpected | GoodsReceiptIsExpected | Goods Receipt | ||
| GoodsReceiptIsNonValuated | GoodsReceiptIsNonValuated | GR Non-Valuated | ||
| InvoiceIsExpected | InvoiceIsExpected | Invoice Receipt | ||
| InvoiceIsGoodsReceiptBased | InvoiceIsGoodsReceiptBased | GR-Based IV | ||
| OverdelivTolrtdLmtRatioInPct | OverdelivTolrtdLmtRatioInPct | Overdeliv. Tol. | ||
| UnlimitedOverdeliveryIsAllowed | UnlimitedOverdeliveryIsAllowed | Unlimited Tol. | ||
| UnderdelivTolrtdLmtRatioInPct | UnderdelivTolrtdLmtRatioInPct | Underdel. Tol. | ||
| OrderItemQtyToBaseQtyNmrtr | OrderItemQtyToBaseQtyNmrtr | Equal To | ||
| OrderItemQtyToBaseQtyDnmntr | OrderItemQtyToBaseQtyDnmntr | Denominator | ||
| RefPurOrderInfoRecord | RefPurOrderInfoRecord | |||
| RefPurchaseOutlineAgreement | RefPurchaseOutlineAgreement | |||
| RefPurchOutlineAgrmtItem | RefPurchOutlineAgrmtItem | |||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| PurgDocExternalItemCategory | PurgDocExternalItemCategory | Item Category | ||
| AcctAssignmentCategory | AcctAssignmentCategory | Acct Assgmt Cat | ||
| IsDeleted | IsDeleted | TRUE | ||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| ProfitCenter | ProfitCenter | Profit Center | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| CustomerProjectName | _Purordmaintaincustproj | CustomerProjectName | ||
| CustProjWorkPackageName | _Purordmaintaincustproj | CustProjWorkPackageName | ||
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| GLAccount | GLAccount | General Ledger | ||
| FreeTextInput | FreeTextInput | Char | ||
| DeliveryDate | DeliveryDate | Delivery Date | ||
| PerformancePeriodStartDate | PerformancePeriodStartDate | Start of Performance Period | ||
| PerformancePeriodEndDate | PerformancePeriodEndDate | End of Performance Period | ||
| ManualDeliveryAddressID | ManualDeliveryAddressID | Address Number | ||
| DeliveryAddressName | DeliveryAddressName | |||
| DeliveryAddressStreetName | DeliveryAddressStreetName | |||
| DeliveryAddressHouseNumber | DeliveryAddressHouseNumber | |||
| DeliveryAddressPostalCode | DeliveryAddressPostalCode | |||
| DeliveryAddressCityName | DeliveryAddressCityName | |||
| DeliveryAddressRegion | DeliveryAddressRegion | |||
| DeliveryAddressCountry | DeliveryAddressCountry | |||
| SupplierMaterialNumber | SupplierMaterialNumber | Supp. Mat. No. | ||
| IncotermsClassification | IncotermsClassification | Incoterms | ||
| IncotermsTransferLocation | IncotermsTransferLocation | Incoterms 2 | ||
| IncotermsVersion | IncotermsVersion | Inco. Version | ||
| IncotermsLocation1 | IncotermsLocation1 | Inco. Location1 | ||
| IncotermsLocation2 | IncotermsLocation2 | Inco. Location2 | ||
| OrderPriceUnitToOrderUnitNmrtr | OrderPriceUnitToOrderUnitNmrtr | Quantity Conversion Numerator | ||
| OrdPriceUnitToOrderUnitDnmntr | OrdPriceUnitToOrderUnitDnmntr | Quantity Conversion Denominator | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| IsFinallyInvoiced | IsFinallyInvoiced | Final Invoice | ||
| TaxCalculationProcedure | TaxCalculationProcedure | Tax Procedure | ||
| TaxJurisdictionCalcProcedure | TaxJurisdictionCalcProcedure | |||
| PricingProcedure | PricingProcedure | Procedure | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| Supplier | Supplier | Supplier | ||
| EditState | EditState | |||
| IsDraft | IsDraft | |||
| IsActiveEntity | IsActiveEntity | Is active | ||
| HasTwin | HasTwin | |||
| CreatedByUser | CreatedByUser | User Name | ||
| LastChangeUser | LastChangeUser | User Name | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| TwinPurchaseOrderItemDraftUUID | TwinPurchaseOrderItemDraftUUID | |||
| ServicePackage | ServicePackage | Package number | ||
| OverallLimitAmount | OverallLimitAmount | Overall Limit | ||
| OverallLimitAmountIsUnlimited | OverallLimitAmountIsUnlimited | |||
| ExpectedOverallLimitAmount | ExpectedOverallLimitAmount | Expected Value | ||
| _IncotermsClassificationText | _IncotermsClassificationText | |||
| _IncotermsVersionText | _IncotermsVersionText | |||
| _CountryText | _CountryText | |||
| _RegionText | _RegionText | |||
| _QuantityUnit | _QuantityUnit | |||
| _OrderPriceUnit | _OrderPriceUnit | |||
| _MaterialText | _MaterialText | |||
| _MaterialGroupText | _MaterialGroupText | |||
| _FunctionalAreaText | _FunctionalAreaText | |||
| _ProductTypeText | _ProductTypeText | |||
| _CostCenterText | _CostCenterText | |||
| _ProfitCenterText | _ProfitCenterText | |||
| _TaxCodeText | _TaxCodeText | |||
| _TaxJurisdictionText | _TaxJurisdictionText | |||
| _PurOrdMaintainItem | _PurOrdMaintainItem | |||
| _AcctAssignmentCategoryText | _AcctAssignmentCategoryText | |||
| _ItemCategoryText | _ItemCategoryText |
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_PurOrdMaintainItem.
-- 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: CPOMAINTITM
CREATE VIEW C_PurOrdMaintainItem AS
SELECT
ID,
PurchaseOrderItemDraftUUID,
PurchaseOrderHeaderDraftUUID,
PurchaseOrder,
PurchaseOrderItem,
ParentId,
PurchasingDocumentItemText,
Material,
MaterialType,
ProductType,
MaterialGroup,
Plant,
PlantName,
StorageLocation,
StorageLocationName,
PurchaseOrderQuantityUnit,
PurchaseOrderQty,
PurchaseOrderNetPriceAmount,
PurchaseOrderNetAmount,
Currency,
NetPriceIsDerived,
PurOrderEffectiveItemAmount,
PurchaseOrderNetPriceQuantity,
PurchaseOrderPriceUnit,
Customer,
_CustomerName.CustomerName AS CustomerName,
ServicePerformer,
ServicePerformerName,
TaxCode,
TaxJurisdiction,
GoodsReceiptIsExpected,
GoodsReceiptIsNonValuated,
InvoiceIsExpected,
InvoiceIsGoodsReceiptBased,
OverdelivTolrtdLmtRatioInPct,
UnlimitedOverdeliveryIsAllowed,
UnderdelivTolrtdLmtRatioInPct,
OrderItemQtyToBaseQtyNmrtr,
OrderItemQtyToBaseQtyDnmntr,
RefPurOrderInfoRecord,
RefPurchaseOutlineAgreement,
RefPurchOutlineAgrmtItem,
PurchaseOrderItemCategory,
PurgDocExternalItemCategory,
AcctAssignmentCategory,
IsDeleted,
ControllingArea,
CostCenter,
ProfitCenter,
WBSElementInternalID,
_Purordmaintaincustproj.CustomerProjectName AS CustomerProjectName,
_Purordmaintaincustproj.CustProjWorkPackageName AS CustProjWorkPackageName,
FunctionalArea,
SalesOrder,
SalesOrderItem,
GLAccount,
FreeTextInput,
DeliveryDate,
PerformancePeriodStartDate,
PerformancePeriodEndDate,
ManualDeliveryAddressID,
DeliveryAddressName,
DeliveryAddressStreetName,
DeliveryAddressHouseNumber,
DeliveryAddressPostalCode,
DeliveryAddressCityName,
DeliveryAddressRegion,
DeliveryAddressCountry,
SupplierMaterialNumber,
IncotermsClassification,
IncotermsTransferLocation,
IncotermsVersion,
IncotermsLocation1,
IncotermsLocation2,
OrderPriceUnitToOrderUnitNmrtr,
OrdPriceUnitToOrderUnitDnmntr,
IsCompletelyDelivered,
IsFinallyInvoiced,
TaxCalculationProcedure,
TaxJurisdictionCalcProcedure,
PricingProcedure,
PurchasingDocumentType,
PurchasingOrganization,
PurchasingGroup,
Supplier,
EditState,
IsDraft,
IsActiveEntity,
HasTwin,
CreatedByUser,
LastChangeUser,
LastChangeDateTime,
TwinPurchaseOrderItemDraftUUID,
ServicePackage,
OverallLimitAmount,
OverallLimitAmountIsUnlimited,
ExpectedOverallLimitAmount
FROM P_PurOrdMaintainItemAll AS PurchaseOrderItems
LEFT OUTER JOIN E_PurchasingDocumentItem AS _PurDocItemExtension ON PurchaseOrder = _PurDocItemExtension.PurchasingDocument AND PurchaseOrderItem = _PurDocItemExtension.PurchasingDocumentItem -- association [0..1]
LEFT OUTER JOIN E_PurchasingDocumentItemDraft AS _PurDocItemDraftExtension ON PurchaseOrderItemDraftUUID = _PurDocItemDraftExtension.PurchaseOrderItemDraftUUID -- association [0..1]
LEFT OUTER JOIN I_IncotermsClassificationText AS _IncotermsClassificationText ON IncotermsClassification = _IncotermsClassificationText.IncotermsClassification -- association [0..*]
LEFT OUTER JOIN I_IncotermsVersionText AS _IncotermsVersionText ON IncotermsVersion = _IncotermsVersionText.IncotermsVersion -- association [0..*]
LEFT OUTER JOIN I_CountryText AS _CountryText ON DeliveryAddressCountry = _CountryText.Country -- association [0..*]
LEFT OUTER JOIN I_AcctAssignmentCategoryText AS _AcctAssignmentCategoryText ON AcctAssignmentCategory = _AcctAssignmentCategoryText.AccountAssignmentCategory -- association [0..*]
LEFT OUTER JOIN I_PurgDocumentItemCategoryText AS _ItemCategoryText ON PurchaseOrderItemCategory = _ItemCategoryText.PurchasingDocumentItemCategory -- association [0..*]
LEFT OUTER JOIN I_RegionText AS _RegionText ON DeliveryAddressRegion = _RegionText.Region AND DeliveryAddressCountry = _RegionText.Country -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _QuantityUnit ON PurchaseOrderQuantityUnit = _QuantityUnit.UnitOfMeasure -- association [0..*]
LEFT OUTER JOIN I_UnitOfMeasureText AS _OrderPriceUnit ON PurchaseOrderPriceUnit = _OrderPriceUnit.UnitOfMeasure -- association [0..*]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material -- association [0..*]
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup -- association [0..*]
LEFT OUTER JOIN I_FunctionalAreaText AS _FunctionalAreaText ON FunctionalArea = _FunctionalAreaText.FunctionalArea -- association [0..*]
LEFT OUTER JOIN I_ProductTypeCodeText AS _ProductTypeText ON ProductType = _ProductTypeText.ProductTypeCode -- association [0..*]
LEFT OUTER JOIN I_Customer AS _CustomerName ON Customer = _CustomerName.Customer -- association [0..1]
LEFT OUTER JOIN P_Purordmaintaincustproj AS _Purordmaintaincustproj ON WBSElementInternalID = _Purordmaintaincustproj.WBSElementInternalID -- association [0..1]
LEFT OUTER JOIN I_CostCenterText AS _CostCenterText ON ControllingArea = _CostCenterText.ControllingArea AND CostCenter = _CostCenterText.CostCenter -- association [0..*]
LEFT OUTER JOIN I_ProfitCenterText AS _ProfitCenterText ON ControllingArea = _ProfitCenterText.ControllingArea AND ProfitCenter = _ProfitCenterText.ProfitCenter -- association [0..*]
LEFT OUTER JOIN I_TaxCodeText AS _TaxCodeText ON TaxCalculationProcedure = _TaxCodeText.TaxCalculationProcedure AND TaxCode = _TaxCodeText.TaxCode -- association [0..*]
LEFT OUTER JOIN I_TaxJurisdictionText AS _TaxJurisdictionText ON TaxJurisdictionCalcProcedure = _TaxJurisdictionText.TaxJurisdictionCalcProcedure AND TaxJurisdiction = _TaxJurisdictionText.TaxJurisdiction -- association [0..*]
LEFT OUTER JOIN C_PurOrdMaintainItem AS _PurOrdMaintainItem ON PurchaseOrder = _PurOrdMaintainItem.PurchaseOrder AND PurchaseOrderItem = _PurOrdMaintainItem.PurchaseOrderItem AND PurchaseOrderHeaderDraftUUID = _PurOrdMaintainItem.PurchaseOrderHeaderDraftUUID AND PurchaseOrderItemDraftUUID = _PurOrdMaintainItem.PurchaseOrderItemDraftUUID -- association [0..*]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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