P_MatGrpAnnualSpend

DDL: P_MATGRPANNUALSPEND SQL: PMATGRPANLSPN Type: view CONSUMPTION

Material Group Annual Spend

P_MatGrpAnnualSpend is a Consumption CDS View that provides data about "Material Group Annual Spend" in SAP S/4HANA. It reads from 1 data source (P_SupplierSpendPerMatGroup) and exposes 4 fields with key fields PurgCatUUID, MaterialGroup.

Data Sources (1)

SourceAliasJoin Type
P_SupplierSpendPerMatGroup P_SupplierSpendPerMatGroup from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PMATGRPANLSPN view
EndUserText.label Material Group Annual Spend view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PurgCatUUID I_PurchasingCategorySupplier PurgCatUUID
KEY MaterialGroup P_SupplierSpendPerMatGroup MaterialGroup Product Group
MatlGrpTotalNetAmountInDspCrcy
MaterialGroupDisplayCurrency P_SupplierSpendPerMatGroup MaterialGroupDisplayCurrency

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_MatGrpAnnualSpend.
-- 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: PMATGRPANLSPN
-- Parameters: P_KeyDate : sydate

CREATE VIEW P_MatGrpAnnualSpend AS
SELECT
  I_PurchasingCategorySupplier.PurgCatUUID AS PurgCatUUID,
  P_SupplierSpendPerMatGroup.MaterialGroup AS MaterialGroup,
  sum(P_SupplierSpendPerMatGroup.MatlGrpTotalNetAmountInDspCrcy) AS MatlGrpTotalNetAmountInDspCrcy,
  P_SupplierSpendPerMatGroup.MaterialGroupDisplayCurrency AS MaterialGroupDisplayCurrency
FROM P_SupplierSpendPerMatGroup
;