P_PurContrItmAggrgdInvcAmt

DDL: P_PURCONTRITMAGGRGDINVCAMT SQL: PCTRAGGINVAMT Type: view CONSUMPTION Package: ODATA_MM_PUR_CTRITEM_MNTR

Contract Aggregated Invoice Amount

P_PurContrItmAggrgdInvcAmt is a Consumption CDS View that provides data about "Contract Aggregated Invoice Amount" in SAP S/4HANA. It reads from 1 data source (P_PurContrHistory) and exposes 15 fields with key fields PurchaseContract, PurchaseContractItem, PurchaseOrder, PurchaseOrderItem. Part of development package ODATA_MM_PUR_CTRITEM_MNTR.

Data Sources (1)

SourceAliasJoin Type
P_PurContrHistory P_PurContrHistory from

Parameters (1)

NameTypeDefault
P_DisplayCurrency displaycurrency

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PCTRAGGINVAMT 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
EndUserText.label Contract Aggregated Invoice Amount view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract PurchaseContract Purchasing Doc.
KEY PurchaseContractItem PurchaseContractItem Item
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
ReleaseOrderItemNetAmount ReleaseOrderItemNetAmount Net Value
ReleaseOrderDate ReleaseOrderDate PO Date
ReleaseOrderItemOrderQuantity ReleaseOrderItemOrderQuantity PO Quantity
PurchasingGroup PurchasingGroup Purchasing Group
PurchasingOrganization PurchasingOrganization Purchasing Organization
Supplier Supplier Supplier
Plant Plant Valuation Area
CompanyCode CompanyCode Receiver Company Code
MaterialGroup MaterialGroup Product Group
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo

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_PurContrItmAggrgdInvcAmt.
-- 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: PCTRAGGINVAMT
-- Parameters: P_DisplayCurrency : displaycurrency

CREATE VIEW P_PurContrItmAggrgdInvcAmt AS
SELECT
  PurchaseContract,
  PurchaseContractItem,
  PurchaseOrder,
  PurchaseOrderItem,
  ReleaseOrderItemNetAmount,
  ReleaseOrderDate,
  ReleaseOrderItemOrderQuantity,
  PurchasingGroup,
  PurchasingOrganization,
  Supplier,
  Plant,
  CompanyCode,
  MaterialGroup,
  ValidityStartDate,
  ValidityEndDate
FROM P_PurContrHistory
;