P_CADocTotalAmountsInclSample3

DDL: P_CADOCTOTALAMOUNTSINCLSAMPLE3 Type: view_entity COMPOSITE

Total Amounts incl. Sample in DC for Doc

P_CADocTotalAmountsInclSample3 is a Composite CDS View that provides data about "Total Amounts incl. Sample in DC for Doc" in SAP S/4HANA. It reads from 1 data source (P_CADocTotalAmountsInclSample2) and exposes 4 fields with key field CADocumentNumber.

Data Sources (1)

SourceAliasJoin Type
P_CADocTotalAmountsInclSample2 P_CADocTotalAmountsInclSample2 from

Parameters (1)

NameTypeDefault
P_DisplayCurrency waers_kk

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Total Amounts incl. Sample in DC for Doc view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber CADocumentNumber Document Number
DisplayCurrency
DueAmountInDisplayCrcy
ClearedAmountInDisplayCurrency

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_CADocTotalAmountsInclSample3.
-- 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.
-- Parameters: P_DisplayCurrency : waers_kk

CREATE VIEW P_CADocTotalAmountsInclSample3 AS
SELECT
  CADocumentNumber,
  $parameters.P_DisplayCurrency AS DisplayCurrency,
  sum(DueAmountInDisplayCrcy) AS DueAmountInDisplayCrcy,
  sum(ClearedAmountInDisplayCurrency) AS ClearedAmountInDisplayCurrency
FROM P_CADocTotalAmountsInclSample2
;