P_POItemCastedAmounts

DDL: P_POITEMCASTEDAMOUNTS SQL: PPOICASTAMTS Type: view CONSUMPTION Package: ODATA_MM_PUR_POITEMS_MONI

PO Item Casted Amounts

P_POItemCastedAmounts is a Consumption CDS View that provides data about "PO Item Casted Amounts" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentItem) and exposes 8 fields with key fields PurchaseOrder, PurchaseOrderItem. Part of development package ODATA_MM_PUR_POITEMS_MONI.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentItem I_PurchasingDocumentItem from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPOICASTAMTS view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label PO Item Casted Amounts view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchasingDocument Purchasing Document
KEY PurchaseOrderItem PurchasingDocumentItem Purchasing Doc. Item
OrderQuantity OrderQuantity Quantity
NetAmount Stated Amount
NetPriceAmount Net Price
DownPaymentAmount Downpayment
DocumentCurrency DocumentCurrency Document Currency
PurchaseOrderDate _PurchasingDocument PurchasingDocumentOrderDate PO Date

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_POItemCastedAmounts.
-- 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: PPOICASTAMTS

CREATE VIEW P_POItemCastedAmounts AS
SELECT
  PurchasingDocument AS PurchaseOrder,
  PurchasingDocumentItem AS PurchaseOrderItem,
  OrderQuantity,
  cast(NetAmount as abap.curr(15,2)) AS NetAmount,
  cast(NetPriceAmount as abap.curr(15,2)) AS NetPriceAmount,
  cast(DownPaymentAmount as abap.curr(15,2)) AS DownPaymentAmount,
  DocumentCurrency,
  _PurchasingDocument.PurchasingDocumentOrderDate AS PurchaseOrderDate
FROM I_PurchasingDocumentItem
;