P_PurchasingGroupAnalysis3
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)
| Source | Alias | Join Type |
|---|---|---|
| P_PURCHASINGGROUPANALYSIS_U | P_PURCHASINGGROUPANALYSIS_U | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_DisplayCurrency | displaycurrency | |
| P_StartDate | bedat | |
| P_EndDate | bedat |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
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