I_PurchaseOrderNetAmount

DDL: I_PURCHASEORDERNETAMOUNT SQL: IPURORDNETAMOUNT Type: view COMPOSITE

Calculation of net amount on purchase order header level

I_PurchaseOrderNetAmount is a Composite CDS View that provides data about "Calculation of net amount on purchase order header level" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderItem) and exposes 4 fields with key field PurchaseOrder. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrderItem I_PurchaseOrderItem from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Currency _Currency $projection.DocumentCurrency = _Currency.Currency
[1..1] I_PurchaseOrder _PurchaseOrder $projection.PurchaseOrder = _PurchaseOrder.PurchaseOrder

Annotations (12)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName IPURORDNETAMOUNT view
EndUserText.label Calculation of net amount on purchase order header level view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.semanticKey PurchaseOrder view
ObjectModel.representativeKey PurchaseOrder view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
DocumentCurrency DocumentCurrency Document Currency
_Currency _Currency
_PurchaseOrder _PurchaseOrder

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 I_PurchaseOrderNetAmount.
-- 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: IPURORDNETAMOUNT

CREATE VIEW I_PurchaseOrderNetAmount AS
SELECT
  PurchaseOrder,
  DocumentCurrency
FROM I_PurchaseOrderItem
LEFT OUTER JOIN I_Currency AS _Currency ON DocumentCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_PurchaseOrder AS _PurchaseOrder ON PurchaseOrder = _PurchaseOrder.PurchaseOrder  -- association [1..1]
;