P_PurchasingGroupAnalysis3

DDL: P_PURCHASINGGROUPANALYSIS3 SQL: PMMPURGRPAN3 Type: view CONSUMPTION Package: ODATA_MM_ANALYTICS

Purchasing Group Analysis 3

P_PurchasingGroupAnalysis3 is a Consumption CDS View that provides data about "Purchasing Group Analysis 3" in SAP S/4HANA. It reads from 1 data source (P_PURCHASINGGROUPANALYSIS_U) and exposes 27 fields with key fields PurchasingOrganization, PurchasingGroup, Supplier, CompanyCode, CalendarYear. Part of development package ODATA_MM_ANALYTICS.

Data Sources (1)

SourceAliasJoin Type
P_PURCHASINGGROUPANALYSIS_U P_PURCHASINGGROUPANALYSIS_U from

Parameters (3)

NameTypeDefault
P_DisplayCurrency displaycurrency
P_StartDate bedat
P_EndDate bedat

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMMPURGRPAN3 view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Purchasing Group Analysis 3 view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY PurchasingOrganization PurchaseOrderItem PurchasingOrganization Purchasing Organization
KEY PurchasingGroup PurchaseOrderItem PurchasingGroup Purchasing Group
KEY Supplier PurchaseOrderItem Supplier Supplier
KEY CompanyCode PurchaseOrderItem CompanyCode Receiver Company Code
KEY CalendarYear PurchaseOrderItem CalendarYear Year
KEY CalendarMonth PurchaseOrderItem CalendarMonth Calendar Month
KEY CalendarQuarter PurchaseOrderItem CalendarQuarter Calendar Quarter
KEY CalendarWeek PurchaseOrderItem CalendarWeek Calendar Week
KEY PurchasingDocumentCategory PurchaseOrderItem PurchasingDocumentCategory Doc. Category
KEY PurchasingDocumentStatus PurchaseOrderItem PurchasingDocumentStatus Short Description
NumberOfRequestsForQuotation
NumberOfReqForQuotationItems
NumberOfPurchaseOrders
NumberOfPurchaseOrderItems
NumberOfSchedulingAgreements
NumberOfSchedgAgrmtItems
NumberOfContracts
NumberOfContractItems
NumberOfQuotation
NumberOfQuotationItems
OrderQuantityUnit OrderQuantityUnit Sales Unit
DisplayCurrency
PurchaseOrderAmount
ScheduleLines
RoughGoodsReceiptQty
TotalInvoiceAmountInDisCrcy
NumberOfDeliveries

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

CREATE VIEW P_PurchasingGroupAnalysis3 AS
SELECT
  PurchaseOrderItem.PurchasingOrganization AS PurchasingOrganization,
  PurchaseOrderItem.PurchasingGroup AS PurchasingGroup,
  PurchaseOrderItem.Supplier AS Supplier,
  PurchaseOrderItem.CompanyCode AS CompanyCode,
  PurchaseOrderItem.CalendarYear AS CalendarYear,
  PurchaseOrderItem.CalendarMonth AS CalendarMonth,
  PurchaseOrderItem.CalendarQuarter AS CalendarQuarter,
  PurchaseOrderItem.CalendarWeek AS CalendarWeek,
  PurchaseOrderItem.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  PurchaseOrderItem.PurchasingDocumentStatus AS PurchasingDocumentStatus,
  sum ( NumberOfRequestsForQuotation ) AS NumberOfRequestsForQuotation,
  sum ( NumberOfReqForQuotationItems ) AS NumberOfReqForQuotationItems,
  sum ( NumberOfPurchaseOrders ) AS NumberOfPurchaseOrders,
  sum ( NumberOfPurchaseOrderItems ) AS NumberOfPurchaseOrderItems,
  sum ( NumberOfSchedulingAgreements ) AS NumberOfSchedulingAgreements,
  sum ( NumberOfSchedgAgrmtItems ) AS NumberOfSchedgAgrmtItems,
  sum ( NumberOfContracts ) AS NumberOfContracts,
  sum ( NumberOfContractItems ) AS NumberOfContractItems,
  sum ( NumberOfQuotation ) AS NumberOfQuotation,
  sum ( NumberOfQuotationItems ) AS NumberOfQuotationItems,
  OrderQuantityUnit,
  cast( :P_DisplayCurrency as displaycurrency ) AS DisplayCurrency,
  sum ( PurchaseOrderAmount ) AS PurchaseOrderAmount,
  sum ( ScheduleLines ) AS ScheduleLines,
  sum ( RoughGoodsReceiptQty ) AS RoughGoodsReceiptQty,
  sum ( TotalInvoiceAmountInDisCrcy ) AS TotalInvoiceAmountInDisCrcy,
  sum ( NumberOfDeliveries ) AS NumberOfDeliveries
FROM P_PURCHASINGGROUPANALYSIS_U
;