Deprecated
This CDS view is deprecated in S/4HANA. View all deprecated CDS views →

P_PurchaseContrHistCnvrtdAmt

DDL: P_PURCHASECONTRHISTCNVRTDAMT SQL: PPURCONCNVRTDAMT Type: view CONSUMPTION

Purchase Contract History Amount

P_PurchaseContrHistCnvrtdAmt is a Consumption CDS View that provides data about "Purchase Contract History Amount" in SAP S/4HANA. It reads from 1 data source (P_PurchaseContractHistCastAmt) and exposes 5 fields with key fields PurchaseContract, PurchaseContractItem, ReleaseOrder, ReleaseOrderItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
P_PurchaseContractHistCastAmt P_PurchaseContractHistCastAmt from

Parameters (1)

NameTypeDefault
P_DisplayCurrency displaycurrency

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_PurchaseOrderHistInvoiceAmt _InvoicedAmount $projection.ReleaseOrder = _InvoicedAmount.PurchaseOrder and $projection.ReleaseOrderItem = _InvoicedAmount.PurchaseOrderItem

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PPURCONCNVRTDAMT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.private true view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.status #DEPRECATED view
EndUserText.label Purchase Contract History Amount view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
KEY PurchaseContractItem PurchaseContractItem Item
KEY ReleaseOrder ReleaseOrder Purchasing Doc.
KEY ReleaseOrderItem ReleaseOrderItem Item
InvoicedAmountInDspCurrency

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_PurchaseContrHistCnvrtdAmt.
-- 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: PPURCONCNVRTDAMT
-- Parameters: P_DisplayCurrency : displaycurrency

CREATE VIEW P_PurchaseContrHistCnvrtdAmt AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  ReleaseOrder,
  ReleaseOrderItem,
  _InvoicedAmount( P_DisplayCurrency: $parameters.P_DisplayCurrency ).InvoicedAmountInDspCurrency AS InvoicedAmountInDspCurrency
FROM P_PurchaseContractHistCastAmt
LEFT OUTER JOIN P_PurchaseOrderHistInvoiceAmt AS _InvoicedAmount ON ReleaseOrder = _InvoicedAmount.PurchaseOrder AND ReleaseOrderItem = _InvoicedAmount.PurchaseOrderItem  -- association [1..1]
;