P_PurchaseContractleakage1
Purchase Contract Leakage 1
P_PurchaseContractleakage1 is a Consumption CDS View that provides data about "Purchase Contract Leakage 1" in SAP S/4HANA. It reads from 3 data sources (P_RelevantDates, I_PurchaseOrder, I_PurchaseOrderItem) and exposes 21 fields with key fields PurchaseOrder, PurchaseOrderItem.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| P_RelevantDates | P_RelevantDates | inner |
| I_PurchaseOrder | PurchaseOrder | inner |
| I_PurchaseOrderItem | PurchaseOrderItem | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency | |
| P_Date | sydate | |
| P_EvaluationTimeFrameInDays | mm_a_evaluation_period |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMMCONTRLEAKAGE1 | view | |
| EndUserText.label | Purchase Contract Leakage 1 | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseOrder | I_PurchaseOrderItem | PurchaseOrder | Purchasing Document |
| KEY | PurchaseOrderItem | I_PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item |
| Material | I_PurchaseOrderItem | Material | Vehicle Model | |
| CompanyCode | I_PurchaseOrderItem | CompanyCode | Receiver Company Code | |
| Plant | I_PurchaseOrderItem | Plant | Valuation Area | |
| MaterialGroup | I_PurchaseOrderItem | MaterialGroup | Product Group | |
| Supplier | I_PurchaseOrder | Supplier | Supplier | |
| PurchasingOrganization | I_PurchaseOrder | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_PurchaseOrder | PurchasingGroup | Purchasing Group | |
| PurchaseOrderDate | I_PurchaseOrder | PurchaseOrderDate | PO Date | |
| PurchaseOrderType | I_PurchaseOrder | PurchaseOrderType | PO Type | |
| OrderQuantity | I_PurchaseOrderItem | OrderQuantity | Quantity | |
| PurchaseOutlineAgreement | I_PurchaseOrderItem | PurchaseContract | Purchasing Doc. | |
| ProfitCenter | I_PurchaseOrderItem | ProfitCenter | Profit Center | |
| OrderPriceUnit | I_PurchaseOrderItem | OrderPriceUnit | Order Price Un. | |
| AccountAssignmentCategory | I_PurchaseOrderItem | AccountAssignmentCategory | Acct Assgmt Cat | |
| CalendarYear | _Calendar | CalendarYear | Year | |
| YearQuarter | _Calendar | YearQuarter | Year Quarter | |
| YearMonth | _Calendar | YearMonth | Year Month | |
| YearWeek | _Calendar | YearWeek | Year and Calendar Week | |
| dec175asPurchaseOrderNetAmount |
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_PurchaseContractleakage1.
-- 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: PMMCONTRLEAKAGE1
-- Parameters: P_DisplayCurrency : displaycurrency, P_Date : sydate, P_EvaluationTimeFrameInDays : mm_a_evaluation_period
CREATE VIEW P_PurchaseContractleakage1 AS
SELECT
PurchaseOrderItem.PurchaseOrder AS PurchaseOrder,
PurchaseOrderItem.PurchaseOrderItem AS PurchaseOrderItem,
PurchaseOrderItem.Material AS Material,
PurchaseOrderItem.CompanyCode AS CompanyCode,
PurchaseOrderItem.Plant AS Plant,
PurchaseOrderItem.MaterialGroup AS MaterialGroup,
PurchaseOrder.Supplier AS Supplier,
PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
PurchaseOrder.PurchasingGroup AS PurchasingGroup,
PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
PurchaseOrder.PurchaseOrderType AS PurchaseOrderType,
PurchaseOrderItem.OrderQuantity AS OrderQuantity,
PurchaseOrderItem.PurchaseContract AS PurchaseOutlineAgreement,
PurchaseOrderItem.ProfitCenter AS ProfitCenter,
PurchaseOrderItem.OrderPriceUnit AS OrderPriceUnit,
PurchaseOrderItem.AccountAssignmentCategory AS AccountAssignmentCategory,
_Calendar.CalendarYear AS CalendarYear,
_Calendar.YearQuarter AS YearQuarter,
_Calendar.YearMonth AS YearMonth,
_Calendar.YearWeek AS YearWeek,
cast(currency_conversion( amount => PurchaseOrderItem.NetAmount, source_currency => PurchaseOrderItem.DocumentCurrency, target_currency => :P_DisplayCurrency, exchange_rate_date => PurchaseOrderItem._PurchaseOrder.PurchaseOrderDate, exchange_rate_type => 'M', error_handling => 'FAIL_ON_ERROR' )as abap.dec( 17, 5 )) as PurchaseOrderNetAmount AS dec175asPurchaseOrderNetAmount
FROM I_PurchaseOrderItem AS PurchaseOrderItem
INNER JOIN I_PurchaseOrder AS PurchaseOrder ON /* join condition not captured in parsed metadata */
INNER JOIN P_RelevantDates ON /* join condition not captured in parsed metadata */
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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