P_PurcContractLeakagePC1

DDL: P_PURCCONTRACTLEAKAGEPC1 SQL: PMMCONTRLEAKGPC1 Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

P_PurcContractLeakagePC1

P_PurcContractLeakagePC1 is a Consumption CDS View that provides data about "P_PurcContractLeakagePC1" in SAP S/4HANA. It reads from 3 data sources (P_PurcContractLeakagePC, I_PurchaseOrder, I_PurchaseOrderItem) and exposes 13 fields with key fields PurchaseOrder, PurchaseOrderItem. Part of development package ODATA_MM_ANALYTICS.

Data Sources (3)

SourceAliasJoin Type
P_PurcContractLeakagePC P_PurcContractLeakagePC inner
I_PurchaseOrder PurchaseOrder inner
I_PurchaseOrderItem PurchaseOrderItem from

Parameters (1)

NameTypeDefault
P_PurchaseContract ebeln

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMMCONTRLEAKGPC1 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #CONSUMPTION view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label P_PurcContractLeakagePC1 view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder I_PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem I_PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
Material I_PurchaseOrderItem Material Vehicle Model
Plant I_PurchaseOrderItem Plant Valuation Area
PurchaseOrderDate I_PurchaseOrder PurchaseOrderDate PO Date
MaterialGroup I_PurchaseOrderItem MaterialGroup Product Group
Supplier I_PurchaseOrder Supplier Supplier
PurchasingOrganization I_PurchaseOrder PurchasingOrganization Purchasing Organization
PurchasingGroup I_PurchaseOrder PurchasingGroup Purchasing Group
CompanyCode I_PurchaseOrderItem CompanyCode Receiver Company Code
IsReturnsItem I_PurchaseOrderItem IsReturnsItem Returns Item
DocumentCurrency ContractItemDetails DocumentCurrency Document Currency
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_PurcContractLeakagePC1.
-- 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: PMMCONTRLEAKGPC1
-- Parameters: P_PurchaseContract : ebeln

CREATE VIEW P_PurcContractLeakagePC1 AS
SELECT
  PurchaseOrder.PurchaseOrder AS PurchaseOrder,
  PurchaseOrderItem.PurchaseOrderItem AS PurchaseOrderItem,
  PurchaseOrderItem.Material AS Material,
  PurchaseOrderItem.Plant AS Plant,
  PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate,
  PurchaseOrderItem.MaterialGroup AS MaterialGroup,
  PurchaseOrder.Supplier AS Supplier,
  PurchaseOrder.PurchasingOrganization AS PurchasingOrganization,
  PurchaseOrder.PurchasingGroup AS PurchasingGroup,
  PurchaseOrderItem.CompanyCode AS CompanyCode,
  PurchaseOrderItem.IsReturnsItem AS IsReturnsItem,
  ContractItemDetails.DocumentCurrency AS DocumentCurrency,
  max(ContractItemDetails.UnreleasedAmount) AS MaxContractAmount
FROM I_PurchaseOrderItem AS PurchaseOrderItem
INNER JOIN I_PurchaseOrder AS PurchaseOrder ON /* join condition not captured in parsed metadata */
INNER JOIN P_PurcContractLeakagePC ON /* join condition not captured in parsed metadata */
;