P_PurchaseContrHistCnvrtdAmt
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. Part of development package ODATA_MM_PUR_CTRITEM_MNTR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_PurchaseContractHistCastAmt | P_PurchaseContractHistCastAmt | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | P_PurchaseOrderHistInvoiceAmt | _InvoicedAmount | $projection.ReleaseOrder = _InvoicedAmount.PurchaseOrder and $projection.ReleaseOrderItem = _InvoicedAmount.PurchaseOrderItem |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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