I_CADocTotalSeparatedAmtsInDC

DDL: I_CADOCTOTALSEPARATEDAMTSINDC SQL: ICADOCSEPRDAMTDC Type: view COMPOSITE

Aufgeteilte Beträge eines Belegs

I_CADocTotalSeparatedAmtsInDC is a Composite CDS View that provides data about "Aufgeteilte Beträge eines Belegs" in SAP S/4HANA. It reads from 1 data source (I_CADocSeparatedAmtInDC) and exposes 12 fields with key field CADocumentNumber.

Data Sources (1)

SourceAliasJoin Type
I_CADocSeparatedAmtInDC I_CADocSeparatedAmtInDC from

Parameters (2)

NameTypeDefault
P_DisplayCurrency waers_kk
P_ExchangeRateDate sydatum

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName ICADOCSEPRDAMTDC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Aufgeteilte Beträge eines Belegs view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber CADocumentNumber Document Number
DisplayCurrency
AmountInDisplayCurrency
DueAmountInDisplayCrcy
OpenAmountInDisplayCrcy
OpenDueAmountInDisplayCrcy
ClearedAmountInDisplayCurrency
OpenReceivablesAmountInDspCrcy
OpenPayablesAmountInDspCrcy
OpenDueReceivablesAmtInDspCrcy
OpenDuePayablesAmountInDspCrcy
DoubtfulReceivablesAmountInDC

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 I_CADocTotalSeparatedAmtsInDC.
-- 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: ICADOCSEPRDAMTDC
-- Parameters: P_DisplayCurrency : waers_kk, P_ExchangeRateDate : sydatum

CREATE VIEW I_CADocTotalSeparatedAmtsInDC AS
SELECT
  CADocumentNumber,
  $parameters.P_DisplayCurrency AS DisplayCurrency,
  sum(AmountInDisplayCurrency) AS AmountInDisplayCurrency,
  sum(DueAmountInDisplayCrcy) AS DueAmountInDisplayCrcy,
  sum(OpenAmountInDisplayCrcy) AS OpenAmountInDisplayCrcy,
  sum(OpenDueAmountInDisplayCrcy) AS OpenDueAmountInDisplayCrcy,
  sum(ClearedAmountInDisplayCurrency) AS ClearedAmountInDisplayCurrency,
  sum(OpenReceivablesAmountInDspCrcy) AS OpenReceivablesAmountInDspCrcy,
  sum(OpenPayablesAmountInDspCrcy) AS OpenPayablesAmountInDspCrcy,
  sum(OpenDueReceivablesAmtInDspCrcy) AS OpenDueReceivablesAmtInDspCrcy,
  sum(OpenDuePayablesAmountInDspCrcy) AS OpenDuePayablesAmountInDspCrcy,
  sum(DoubtfulReceivablesAmountInDC) AS DoubtfulReceivablesAmountInDC
FROM I_CADocSeparatedAmtInDC
;