P_Purchasecontractleakage2

DDL: P_PURCHASECONTRACTLEAKAGE2 SQL: PMMCONTRLEAKAGE2 Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Purchase Contract Leakage 2

P_Purchasecontractleakage2 is a Consumption CDS View that provides data about "Purchase Contract Leakage 2" in SAP S/4HANA. It reads from 1 data source (P_Purchasecontractleakage3) and exposes 12 fields with key fields PurchaseOrder, PurchaseOrderItem. Part of development package ODATA_MM_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
P_Purchasecontractleakage3 P_Purchasecontractleakage3 from

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate bedat
P_EndDate bedat

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PMMCONTRLEAKAGE2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
Material Material Vehicle Model
Plant Plant Valuation Area
PurchaseOrderDate PurchaseOrderDate PO Date
MaterialGroup MaterialGroup Product Group
Supplier Supplier Supplier
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
CompanyCode CompanyCode Receiver Company Code
IsReturnsItem IsReturnsItem Returns Item
MaxContractAmount MaxContractAmount

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_Purchasecontractleakage2.
-- 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: PMMCONTRLEAKAGE2
-- Parameters: P_DisplayCurrency : displaycurrency, P_StartDate : bedat, P_EndDate : bedat

CREATE VIEW P_Purchasecontractleakage2 AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  Material,
  Plant,
  PurchaseOrderDate,
  MaterialGroup,
  Supplier,
  PurchasingOrganization,
  PurchasingGroup,
  CompanyCode,
  IsReturnsItem,
  MaxContractAmount
FROM P_Purchasecontractleakage3
;