P_POItemEnhanced
Purchase Order Items Enhanced
P_POItemEnhanced is a Consumption CDS View that provides data about "Purchase Order Items Enhanced" in SAP S/4HANA. It reads from 1 data source (P_POItemEnhancedFetch) and exposes 54 fields with key fields PurchaseOrder, PurchaseOrderItem. Part of development package ODATA_MM_PUR_POITEMS_MONI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_POItemEnhancedFetch | P_POItemEnhancedFetch | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPOITEMENH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Purchase Order Items Enhanced | view |
Fields (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | PurchaseOrder | Purchasing Document | |
| KEY | PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | |
| PurchaseOrderType | PurchaseOrderType | PO Type | ||
| Supplier | Supplier | Supplier | ||
| SupplyingPlant | SupplyingPlant | Supplying Plant | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| PurchaseOrderDate | PurchaseOrderDate | PO Date | ||
| CreationDate | CreationDate | Time Stamp | ||
| CreatedByUser | CreatedByUser | User Name | ||
| SupplierQuotation | SupplierQuotation | RFQ | ||
| SupplierQuotationItem | SupplierQuotationItem | Supplier Quotation Item | ||
| PurchaseOrderItemText | PurchaseOrderItemText | Short Text | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| Plant | Plant | Valuation Area | ||
| ProductType | ProductType | Product Type Group | ||
| PurchaseOrderItemCategory | PurchaseOrderItemCategory | Item Category | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| ServicePerformer | ServicePerformer | Service Performer | ||
| IsReturnsItem | IsReturnsItem | Returns Item | ||
| GoodsReceiptIsExpected | GoodsReceiptIsExpected | Goods Receipt | ||
| GoodsReceiptIsNonValuated | GoodsReceiptIsNonValuated | GR Non-Valuated | ||
| IsCompletelyDelivered | IsCompletelyDelivered | Is completely delivered | ||
| InvoiceIsExpected | InvoiceIsExpected | Invoice Receipt | ||
| InvoiceIsGoodsReceiptBased | InvoiceIsGoodsReceiptBased | GR-Based IV | ||
| IsFinallyInvoiced | IsFinallyInvoiced | Final Invoice | ||
| IsCompleted | IsCompleted | |||
| StorageLocation | StorageLocation | StorageLocation | ||
| PurchasingInfoRecord | PurchasingInfoRecord | Info Record | ||
| IsInfoRecordUpdated | IsInfoRecordUpdated | InfoUpdate | ||
| PurchaseContract | PurchaseContract | Purchasing Doc. | ||
| PurchaseContractItem | PurchaseContractItem | Item | ||
| PurchaseRequisition | PurchaseRequisition | Requisition | ||
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | ||
| RequestForQuotation | RequestForQuotation | RFQ | ||
| RequestForQuotationItem | RequestForQuotationItem | RFQ Item | ||
| RequirementTracking | RequirementTracking | Tracking Number | ||
| RequisitionerName | RequisitionerName | Requisitioner | ||
| ScheduleLine | ScheduleLine | Schedule Line | ||
| ExpectedOverallLimitAmount | ExpectedOverallLimitAmount | Expected Value | ||
| OverallLimitAmount | OverallLimitAmount | Overall Limit | ||
| NetPriceInReportingCurrency | NetPriceInReportingCurrency | |||
| NetPriceInReportingCurrency2 | NetPriceInReportingCurrency2 | |||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| AnalyticalReportingCurrency | AnalyticalReportingCurrency | |||
| AnalyticalReportingCurrency2 | AnalyticalReportingCurrency2 | |||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| curr215asGoodReceiptAmount | ||||
| PurchaseOrderQuantityUnit | PurchaseOrderQuantityUnit | Order Unit | ||
| OrderPriceUnit | OrderPriceUnit | Order Price Un. | ||
| today |
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 P_POItemEnhanced.
-- 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: PPOITEMENH
CREATE VIEW P_POItemEnhanced AS
SELECT
PurchaseOrder,
PurchaseOrderItem,
PurchaseOrderType,
Supplier,
SupplyingPlant,
PurchasingOrganization,
PurchasingGroup,
CompanyCode,
DocumentCurrency,
PurchaseOrderDate,
CreationDate,
CreatedByUser,
SupplierQuotation,
SupplierQuotationItem,
PurchaseOrderItemText,
Material,
MaterialGroup,
Plant,
ProductType,
PurchaseOrderItemCategory,
AccountAssignmentCategory,
ServicePerformer,
IsReturnsItem,
GoodsReceiptIsExpected,
GoodsReceiptIsNonValuated,
IsCompletelyDelivered,
InvoiceIsExpected,
InvoiceIsGoodsReceiptBased,
IsFinallyInvoiced,
IsCompleted,
StorageLocation,
PurchasingInfoRecord,
IsInfoRecordUpdated,
PurchaseContract,
PurchaseContractItem,
PurchaseRequisition,
PurchaseRequisitionItem,
RequestForQuotation,
RequestForQuotationItem,
RequirementTracking,
RequisitionerName,
ScheduleLine,
ExpectedOverallLimitAmount,
OverallLimitAmount,
NetPriceInReportingCurrency,
NetPriceInReportingCurrency2,
NetPriceAmount,
AnalyticalReportingCurrency,
AnalyticalReportingCurrency2,
NetPriceQuantity,
cast( case when (PurchaseOrderItemCategory = 'A' and ProductType = '1') then cast (0 as abap.curr(21, 5)) when (PurchaseOrderItemCategory = 'A' and ProductType = '2') then GoodsReceiptAmount when (GoodsReceiptQty is null or OrderQuantity is null or OrderQuantity = 0) then cast (0 as abap.curr(21, 5)) when IsReturnsItem = 'X' then -abs(GoodsReceiptAmount) else GoodsReceiptAmount end as abap.curr(21,5)) as GoodReceiptAmount AS curr215asGoodReceiptAmount,
PurchaseOrderQuantityUnit,
OrderPriceUnit,
$session.system_date AS today
FROM P_POItemEnhancedFetch
;
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