P_POItemEnhanced

DDL: P_POITEMENHANCED SQL: PPOITEMENH Type: view CONSUMPTION Package: ODATA_MM_PUR_POITEMS_MONI

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)

SourceAliasJoin Type
P_POItemEnhancedFetch P_POItemEnhancedFetch from

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;