P_MatGroupSupplierSpendIDC
Spend per Supplier MaterialGroup combination in Disp Crcy
P_MatGroupSupplierSpendIDC is a Consumption CDS View that provides data about "Spend per Supplier MaterialGroup combination in Disp Crcy" in SAP S/4HANA. It reads from 1 data source (P_SupplierMaterialGroupSpend2) and exposes 12 fields with key fields MaterialGroup, Supplier. It has 2 associations to related views. Part of development package ODATA_SLC_PURG_CAT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_SupplierMaterialGroupSpend2 | P_SupplierMaterialGroupSpend2 | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_DisplayCurrencyMaterialGroup | _DisplayCurrencyMaterialGroup | $projection.MaterialGroup = _DisplayCurrencyMaterialGroup.MaterialGroup |
| [0..1] | P_DisplayCurrencySupplier | _DisplayCurrencySupplier | $projection.BusinessPartner = _DisplayCurrencySupplier.BusinessPartner |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | PMGRPSUPLRSPNDID | view | |
| EndUserText.label | Spend per Supplier MaterialGroup combination in Disp Crcy | view |
Fields (12)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaterialGroup | P_SupplierMaterialGroupSpend2 | MaterialGroup | Product Group |
| KEY | Supplier | P_SupplierMaterialGroupSpend2 | Supplier | Supplier |
| BusinessPartner | P_SupplierMaterialGroupSpend2 | BusinessPartner | Issuing Authority | |
| PurchaseOrderNetAmount | P_SupplierMaterialGroupSpend2 | PurchaseOrderNetAmount | Net Value | |
| MaterialGroupDisplayCurrency | _DisplayCurrencyMaterialGroup | MaterialGroupDisplayCurrency | ||
| FromPostingDate | P_SupplierMaterialGroupSpend2 | FromPostingDate | ||
| PurchaseOrderDate | P_SupplierMaterialGroupSpend2 | PurchaseOrderDate | PO Date | |
| SupplierDisplayCurrency | _DisplayCurrencySupplier | SupplierDisplayCurrency | ||
| PurchasingDocumentDeletionCode | P_SupplierMaterialGroupSpend2 | PurchasingDocumentDeletionCode | Del. Indicator | |
| ItemIsStatistical | P_SupplierMaterialGroupSpend2 | ItemIsStatistical | ||
| IsReturnsItem | P_SupplierMaterialGroupSpend2 | IsReturnsItem | Returns Item | |
| OriginalCurrency | P_SupplierMaterialGroupSpend2 | OriginalCurrency |
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_MatGroupSupplierSpendIDC.
-- 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: PMGRPSUPLRSPNDID
-- Parameters: P_KeyDate : sydate
CREATE VIEW P_MatGroupSupplierSpendIDC AS
SELECT
P_SupplierMaterialGroupSpend2.MaterialGroup AS MaterialGroup,
P_SupplierMaterialGroupSpend2.Supplier AS Supplier,
P_SupplierMaterialGroupSpend2.BusinessPartner AS BusinessPartner,
P_SupplierMaterialGroupSpend2.PurchaseOrderNetAmount AS PurchaseOrderNetAmount,
_DisplayCurrencyMaterialGroup.MaterialGroupDisplayCurrency AS MaterialGroupDisplayCurrency,
P_SupplierMaterialGroupSpend2.FromPostingDate AS FromPostingDate,
P_SupplierMaterialGroupSpend2.PurchaseOrderDate AS PurchaseOrderDate,
_DisplayCurrencySupplier.SupplierDisplayCurrency AS SupplierDisplayCurrency,
P_SupplierMaterialGroupSpend2.PurchasingDocumentDeletionCode AS PurchasingDocumentDeletionCode,
P_SupplierMaterialGroupSpend2.ItemIsStatistical AS ItemIsStatistical,
P_SupplierMaterialGroupSpend2.IsReturnsItem AS IsReturnsItem,
P_SupplierMaterialGroupSpend2.OriginalCurrency AS OriginalCurrency
FROM P_SupplierMaterialGroupSpend2
LEFT OUTER JOIN P_DisplayCurrencyMaterialGroup AS _DisplayCurrencyMaterialGroup ON MaterialGroup = _DisplayCurrencyMaterialGroup.MaterialGroup -- association [0..1]
LEFT OUTER JOIN P_DisplayCurrencySupplier AS _DisplayCurrencySupplier ON BusinessPartner = _DisplayCurrencySupplier.BusinessPartner -- association [0..1]
;
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