C_PurOrdItemEnh
Purchase Order Item
C_PurOrdItemEnh is a Consumption CDS View that provides data about "Purchase Order Item" in SAP S/4HANA. It reads from 1 data source (I_PurchaseorderItemEnhanced) and exposes 73 fields with key fields PurchaseOrder, PurchaseOrderItem. It has 15 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseorderItemEnhanced | I_PurchaseorderItemEnhanced | from |
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_MaterialGroupText | _MaterialGroupText | $projection.MaterialGroup = _MaterialGroupText.MaterialGroup and _MaterialGroupText.Language = $session.system_language |
| [0..1] | I_MaterialText | _MaterialText | $projection.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language |
| [0..1] | I_ProductTypeCodeText | _ProductTypeCodeText | _ProductTypeCodeText.ProductTypeCode = $projection.ProductType and _ProductTypeCodeText.Language = $session.system_language |
| [0..1] | E_PurchasingDocumentItem | _ItemExtension | _ItemExtension.PurchasingDocument = $projection.PurchaseOrder and _ItemExtension.PurchasingDocumentItem = $projection.PurchaseOrderItem |
| [1..1] | I_PurgDocumentItemCategoryText | _PurchaseOrderItemCategoryText | _PurchaseOrderItemCategoryText.Language = $session.system_language and _PurchaseOrderItemCategoryText.PurchasingDocumentItemCategory = PurchaseOrderItemCategory |
| [0..1] | I_AcctAssignmentCategoryText | _AcctAssignmentCategoryText | _AcctAssignmentCategoryText.AccountAssignmentCategory = $projection.AccountAssignmentCategory and _AcctAssignmentCategoryText.Language = $session.system_language |
| [0..1] | C_MM_PlantValueHelp | _PlantValHelp | _PlantValHelp.Plant = $projection.Plant and _PlantValHelp.PurchasingOrganization = $projection.PurchasingOrganization |
| [1..*] | I_PurchaseOrderScheduleLine | _PurOrdScheduleLine | _PurOrdScheduleLine.PurchaseOrder = $projection.PurchaseOrder and _PurOrdScheduleLine.PurchaseOrderItem = $projection.PurchaseOrderItem |
| [1..*] | C_POScheduleLineFactSheet | _POScheduleLineFactSheet | _POScheduleLineFactSheet.PurchaseOrder = $projection.PurchaseOrder and _POScheduleLineFactSheet.PurchaseOrderItem = $projection.PurchaseOrderItem |
| [1..*] | C_POAccountAssignmentFactSheet | _POAccountAssignmentFactSheet | _POAccountAssignmentFactSheet.PurchaseOrder = $projection.PurchaseOrder and _POAccountAssignmentFactSheet.PurchaseOrderItem = $projection.PurchaseOrderItem ----Extension |
| [1..1] | E_PurchasingDocumentItem | _PurchaseOrderItemExtension | $projection.PurchaseOrder = _PurchaseOrderItemExtension.PurchasingDocument and $projection.PurchaseOrderItem = _PurchaseOrderItemExtension.PurchasingDocumentItem |
| [1..1] | C_PODeliveryAddressFactSheet | _PODeliveryAddressFactSheet | $projection.PurchaseOrder = _PODeliveryAddressFactSheet.PurchaseOrder and $projection.PurchaseOrderItem = _PODeliveryAddressFactSheet.PurchaseOrderItem |
| [0..1] | C_MM_TaxCodeValueHelp | _TaxCodeVH | _TaxCodeVH.TaxCode = $projection.TaxCode and _TaxCodeVH.TaxCalculationProcedure = $projection.TaxCalculationProcedure |
| [1..1] | C_PurOrdItemCO2eqFootprint | _PurOrdItemCO2eqFootprint | _PurOrdItemCO2eqFootprint.PurchaseOrder = $projection.PurchaseOrder and _PurOrdItemCO2eqFootprint.PurchaseOrderItem = $projection.PurchaseOrderItem |
| [1..1] | I_FinancialChainText | _FinancialChainText | _FinancialChainText.FinancialChain = $projection.FinancialChain and _FinancialChainText.Language = $session.system_language |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.sqlViewName | CPURORDITEMENH | view | |
| EndUserText.label | Purchase Order Item | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| UI.headerInfo.typeName | Purchase Order Item | view | |
| UI.headerInfo.typeNamePlural | Purchase Order Items | view | |
| UI.headerInfo.title.value | PurchaseOrderItem | view | |
| ObjectModel.representativeKey | PurchaseOrderItem | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.text.control | #ASSOCIATED_TEXT_UI_HIDDEN | view | |
| Metadata.allowExtensions | true | view |
Fields (73)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | Purchasing Document Item | ||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| Material | Material | Vehicle Model | ||
| ManufacturerMaterial | ManufacturerMaterial | MPN: Material | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| PlantName | _Plant | PlantName | Plant Name | |
| AccountAssignmentCategory | ||||
| PurchaseOrderItemText | PurchaseOrderItemText | Short Text | ||
| PurchaseRequisition | PurchaseRequisition | Requisition | ||
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | ||
| ProductType | ProductType | Product Type Group | ||
| FirstDeliveryDate | FirstDeliveryDate | |||
| OrderQuantity | OrderQuantity | Quantity | ||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| PurchaseOrderPriceUnit | PurchaseOrderPriceUnit | Order Price Un. | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| PurchaseOrderNetPriceQuantity | PurchaseOrderNetPriceQuantity | Price Unit | ||
| NetAmount | NetAmount | Stated Amount | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| ServicePerformer | ServicePerformer | Service Performer | ||
| PerformancePeriodStartDate | PerformancePeriodStartDate | Start of Performance Period | ||
| PerformancePeriodEndDate | PerformancePeriodEndDate | End of Performance Period | ||
| PurchaseOrderItemStatus | Status | |||
| PFMTransDataFootprintUUID | PFMTransDataFootprintUUID | Transaction Data Footprint | ||
| PFMFootprintQuantity | _PurOrdItemCO2eqFootprint | PFMFootprintQuantity | CO2e Footprint | |
| PFMFootprintUnit | _PurOrdItemCO2eqFootprint | PFMFootprintUnit | Unit | |
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| UnderdelivTolrtdLmtRatioInPct | ||||
| UnlimitedOverdeliveryIsAllowed | Unlimited Overdelivery Allowed | |||
| IsToBeAcceptedAtOrigin | I_PurchaseorderItemEnhanced | IsToBeAcceptedAtOrigin | Acceptance at Origin | |
| StorageLocation | I_PurchaseorderItemEnhanced | StorageLocation | StorageLocation | |
| IntrastatServiceCode | ||||
| CommodityCode | I_PurchaseorderItemEnhanced | CommodityCode | Commodity Code | |
| ShippingInstruction | ShippingInstruction | Shipping Instr. | ||
| FinancialChain | I_PurchaseorderItemEnhanced | FinancialChain | ||
| IncotermsVersion | ||||
| IncotermsClassification | I_PurchaseorderItemEnhanced | IncotermsClassification | Incoterms | |
| IncotermsLocation1 | I_PurchaseorderItemEnhanced | IncotermsLocation1 | Inco. Location1 | |
| IncotermsLocation2 | I_PurchaseorderItemEnhanced | IncotermsLocation2 | Inco. Location2 | |
| PurchasingInfoRecord | ||||
| PurchaseContract | ||||
| PurContractForOverallLimit | I_PurchaseorderItemEnhanced | PurContractForOverallLimit | Contract For Limit | |
| PurchaseContractItem | ||||
| InfoRecordIsToBeUpdated | I_PurchaseorderItemEnhanced | InfoRecordIsToBeUpdated | ||
| TaxCode | TaxCode | Tax Code | ||
| TaxJurisdiction | I_PurchaseorderItemEnhanced | TaxJurisdiction | Tax Jurisdiction | |
| TaxCalculationProcedure | ||||
| SupplierConfirmationControlKey | SupplierConfirmationControlKey | Conf. Control | ||
| PurgDocOrderAcknNumber | PurgDocOrderAcknNumber | Order Acknowl. | ||
| IsOrderAcknRqd | IsOrderAcknRqd | Acknowl. Reqd. | ||
| ItemIsRejectedBySupplier | ItemIsRejectedBySupplier | Rejection Ind. | ||
| RequisitionerName | RequisitionerName | Requisitioner | ||
| _PurchaseOrderEnhanced | _PurchaseOrderEnhanced | |||
| _PurchaseOrderItemCategoryText | _PurchaseOrderItemCategoryText | |||
| _MaterialGroupText | _MaterialGroupText | |||
| _MaterialText | _MaterialText | |||
| _Plant | _Plant | |||
| _ProductTypeCodeText | _ProductTypeCodeText | |||
| _ServicePerformer | _ServicePerformer | |||
| _AcctAssignmentCategoryText | _AcctAssignmentCategoryText | |||
| _PlantValHelp | _PlantValHelp | |||
| _PurOrdScheduleLine | _PurOrdScheduleLine | |||
| _POScheduleLineFactSheet | _POScheduleLineFactSheet | |||
| _POAccountAssignmentFactSheet | _POAccountAssignmentFactSheet | |||
| _PODeliveryAddressFactSheet | _PODeliveryAddressFactSheet | |||
| _TaxCodeVH | _TaxCodeVH | |||
| _FinancialChainText | _FinancialChainText |
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_PurOrdItemEnh.
-- 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: CPURORDITEMENH
CREATE VIEW C_PurOrdItemEnh AS
SELECT
PurchaseOrder,
cast (PurchaseOrderItem as ebelp preserving type) AS PurchaseOrderItem,
PurchaseOrderItemCategory,
Material,
ManufacturerMaterial,
MaterialGroup,
Plant,
_Plant.PlantName AS PlantName,
cast (I_PurchaseorderItemEnhanced.AccountAssignmentCategory as knttp_ll preserving type) AS AccountAssignmentCategory,
PurchaseOrderItemText,
PurchaseRequisition,
PurchaseRequisitionItem,
ProductType,
FirstDeliveryDate,
OrderQuantity,
PurchaseOrderQuantityUnit,
DocumentCurrency,
PurchaseOrderPriceUnit,
NetPriceAmount,
OrderPriceUnit,
PurchaseOrderNetPriceQuantity,
NetAmount,
PurchasingDocumentDeletionCode,
ServicePerformer,
PerformancePeriodStartDate,
PerformancePeriodEndDate,
_PurchaseOrderItemCalcFields._PurchaseOrderItemStatus._PurchasingDocumentStatus._Text[1: Language = $session.system_language].PurchasingDocumentStatusName AS PurchaseOrderItemStatus,
PFMTransDataFootprintUUID,
_PurOrdItemCO2eqFootprint.PFMFootprintQuantity AS PFMFootprintQuantity,
_PurOrdItemCO2eqFootprint.PFMFootprintUnit AS PFMFootprintUnit,
PurchaseOrderType,
PurchasingOrganization,
PurchasingGroup,
cast (I_PurchaseorderItemEnhanced.UnderdelivTolrtdLmtRatioInPct as untto_ll preserving type) AS UnderdelivTolrtdLmtRatioInPct,
cast (I_PurchaseorderItemEnhanced.UnlimitedOverdeliveryIsAllowed as uebtk preserving type) AS UnlimitedOverdeliveryIsAllowed,
I_PurchaseorderItemEnhanced.IsToBeAcceptedAtOrigin AS IsToBeAcceptedAtOrigin,
I_PurchaseorderItemEnhanced.StorageLocation AS StorageLocation,
cast (I_PurchaseorderItemEnhanced.IntrastatServiceCode as mm_isvco_ll preserving type) AS IntrastatServiceCode,
I_PurchaseorderItemEnhanced.CommodityCode AS CommodityCode,
ShippingInstruction,
I_PurchaseorderItemEnhanced.FinancialChain AS FinancialChain,
I_PurchaseorderItemEnhanced.IncotermsClassification AS IncotermsClassification,
I_PurchaseorderItemEnhanced.IncotermsLocation1 AS IncotermsLocation1,
I_PurchaseorderItemEnhanced.IncotermsLocation2 AS IncotermsLocation2,
cast (I_PurchaseorderItemEnhanced.PurchasingInfoRecord as infnr_ll preserving type) AS PurchasingInfoRecord,
cast (I_PurchaseorderItemEnhanced._PurchaseContract.PurchaseContract as konnr_ll preserving type) AS PurchaseContract,
I_PurchaseorderItemEnhanced.PurContractForOverallLimit AS PurContractForOverallLimit,
cast (I_PurchaseorderItemEnhanced._PurchaseContractItem.PurchaseContractItem as ktpnr_ll preserving type) AS PurchaseContractItem,
I_PurchaseorderItemEnhanced.InfoRecordIsToBeUpdated AS InfoRecordIsToBeUpdated,
TaxCode,
I_PurchaseorderItemEnhanced.TaxJurisdiction AS TaxJurisdiction,
_Plant._OrganizationAddress[1: AddressRepresentationCode = '']._Country.TaxCalculationProcedure AS TaxCalculationProcedure,
SupplierConfirmationControlKey,
PurgDocOrderAcknNumber,
IsOrderAcknRqd,
ItemIsRejectedBySupplier,
RequisitionerName
FROM I_PurchaseorderItemEnhanced
LEFT OUTER JOIN I_MaterialGroupText AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.MaterialGroup AND _MaterialGroupText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material AND _MaterialText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ProductTypeCodeText AS _ProductTypeCodeText ON _ProductTypeCodeText.ProductTypeCode = ProductType AND _ProductTypeCodeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _ItemExtension ON _ItemExtension.PurchasingDocument = PurchaseOrder AND _ItemExtension.PurchasingDocumentItem = PurchaseOrderItem -- association [0..1]
LEFT OUTER JOIN I_PurgDocumentItemCategoryText AS _PurchaseOrderItemCategoryText ON _PurchaseOrderItemCategoryText.Language = $session.system_language AND _PurchaseOrderItemCategoryText.PurchasingDocumentItemCategory = PurchaseOrderItemCategory -- association [1..1]
LEFT OUTER JOIN I_AcctAssignmentCategoryText AS _AcctAssignmentCategoryText ON _AcctAssignmentCategoryText.AccountAssignmentCategory = AccountAssignmentCategory AND _AcctAssignmentCategoryText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN C_MM_PlantValueHelp AS _PlantValHelp ON _PlantValHelp.Plant = Plant AND _PlantValHelp.PurchasingOrganization = PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrderScheduleLine AS _PurOrdScheduleLine ON _PurOrdScheduleLine.PurchaseOrder = PurchaseOrder AND _PurOrdScheduleLine.PurchaseOrderItem = PurchaseOrderItem -- association [1..*]
LEFT OUTER JOIN C_POScheduleLineFactSheet AS _POScheduleLineFactSheet ON _POScheduleLineFactSheet.PurchaseOrder = PurchaseOrder AND _POScheduleLineFactSheet.PurchaseOrderItem = PurchaseOrderItem -- association [1..*]
LEFT OUTER JOIN C_POAccountAssignmentFactSheet AS _POAccountAssignmentFactSheet ON _POAccountAssignmentFactSheet.PurchaseOrder = PurchaseOrder AND _POAccountAssignmentFactSheet.PurchaseOrderItem = PurchaseOrderItem -- association [1..*]
LEFT OUTER JOIN E_PurchasingDocumentItem AS _PurchaseOrderItemExtension ON PurchaseOrder = _PurchaseOrderItemExtension.PurchasingDocument AND PurchaseOrderItem = _PurchaseOrderItemExtension.PurchasingDocumentItem -- association [1..1]
LEFT OUTER JOIN C_PODeliveryAddressFactSheet AS _PODeliveryAddressFactSheet ON PurchaseOrder = _PODeliveryAddressFactSheet.PurchaseOrder AND PurchaseOrderItem = _PODeliveryAddressFactSheet.PurchaseOrderItem -- association [1..1]
LEFT OUTER JOIN C_MM_TaxCodeValueHelp AS _TaxCodeVH ON _TaxCodeVH.TaxCode = TaxCode AND _TaxCodeVH.TaxCalculationProcedure = TaxCalculationProcedure -- association [0..1]
LEFT OUTER JOIN C_PurOrdItemCO2eqFootprint AS _PurOrdItemCO2eqFootprint ON _PurOrdItemCO2eqFootprint.PurchaseOrder = PurchaseOrder AND _PurOrdItemCO2eqFootprint.PurchaseOrderItem = PurchaseOrderItem -- association [1..1]
LEFT OUTER JOIN I_FinancialChainText AS _FinancialChainText ON _FinancialChainText.FinancialChain = FinancialChain AND _FinancialChainText.Language = $session.system_language -- association [1..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