P_SalesVolumebyYear

DDL: P_SALESVOLUMEBYYEAR SQL: PSDSLSVOLBYYEAR Type: view COMPOSITE

P_SalesVolumebyYear is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_BillingDocItemAnalytics) and exposes 7 fields.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocItemAnalytics Item from

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view
AbapCatalog.sqlViewName PSDSLSVOLBYYEAR view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
BillingDocumentDateYear
CreationDate CreationDate Time Stamp
BillingDocumentType BillingDocumentType Billing Type
SalesOrganization SalesOrganization Sales Organization
BillingDocumentDate BillingDocumentDate Billing Date
TransactionCurrency TransactionCurrency Transaction Currency
SalesVolumeNetAmount

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_SalesVolumebyYear.
-- 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: PSDSLSVOLBYYEAR

CREATE VIEW P_SalesVolumebyYear AS
SELECT
  cast(CalendarDateBillingDoc.CalendarYear as billing_document_date_year) AS BillingDocumentDateYear,
  CreationDate,
  BillingDocumentType,
  SalesOrganization,
  BillingDocumentDate,
  TransactionCurrency,
  sum(SalesVolumeNetAmount) AS SalesVolumeNetAmount
FROM I_BillingDocItemAnalytics AS Item
;