P_TotalOrderValue

DDL: P_TOTALORDERVALUE SQL: PTOTALORDERVALUE Type: view CONSUMPTION

KPI Total Order Value of Purchasing Category Factsheet

P_TotalOrderValue is a Consumption CDS View that provides data about "KPI Total Order Value of Purchasing Category Factsheet" in SAP S/4HANA. It reads from 1 data source (P_TotalSpendInDspCrcy) and exposes 3 fields with key field PurgCatUUID.

Data Sources (1)

SourceAliasJoin Type
P_TotalSpendInDspCrcy P_TotalSpendInDspCrcy from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (6)

NameValueLevelField
EndUserText.label KPI Total Order Value of Purchasing Category Factsheet view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PTOTALORDERVALUE view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurgCatUUID P_TotalSpendInDspCrcy PurgCatUUID
PurgCatTotalSpendInDspCrcy
DisplayCurrency P_TotalSpendInDspCrcy DisplayCurrency Display Currency

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_TotalOrderValue.
-- 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: PTOTALORDERVALUE
-- Parameters: P_KeyDate : sydate

CREATE VIEW P_TotalOrderValue AS
SELECT
  P_TotalSpendInDspCrcy.PurgCatUUID AS PurgCatUUID,
  sum(P_TotalSpendInDspCrcy.PurCatTotalSpendInDispCurr) AS PurgCatTotalSpendInDspCrcy,
  P_TotalSpendInDspCrcy.DisplayCurrency AS DisplayCurrency
FROM P_TotalSpendInDspCrcy
;