I_CtrlgSettlmtDocumentTotal

DDL: I_CTRLGSETTLMTDOCUMENTTOTAL Type: view_entity COMPOSITE

Settlement Document Total Segment

I_CtrlgSettlmtDocumentTotal is a Composite CDS View that provides data about "Settlement Document Total Segment" in SAP S/4HANA. It reads from 1 data source (I_CtrlgSettlmtDocumentSegment) and exposes 27 fields.

Data Sources (1)

SourceAliasJoin Type
I_CtrlgSettlmtDocumentSegment I_CtrlgSettlmtDocumentSegment from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Settlement Document Total Segment view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (27)

KeyFieldSource TableSource FieldDescription
Ledger _SettlementHeader Ledger Ledger
ControllingObject _SettlementHeader ControllingObject Object number
FiscalYear
ControllingArea _SettlementHeader ControllingArea Controlling Area
SettlementType SettlementType Settlement Type
TransactionCurrency TransactionCurrency Transaction Currency
ControllingAreaCurrency ControllingAreaCurrency
TotalAmountInTransactionCrcy
TotalAmountInCtrlgAreaCrcy
FixedAmountInCtrlgAreaCrcy
TotalAmountInObjectCurrency
TotalPriceVarcInCtrlgAreaCrcy
FixedPriceVarcInCtrlgAreaCrcy
UnitOfMeasure UnitOfMeasure Unit Protected Qty
TotalQuantity
FixedQuantity
TotAmtInFreelyDfndCtrlgCrcy1
TotAmtInFreelyDfndCtrlgCrcy2
TotAmtInFreelyDfndCtrlgCrcy3
TotAmtInFreelyDfndCtrlgCrcy4
TotAmtInFreelyDfndCtrlgCrcy5
TotAmtInFreelyDfndCtrlgCrcy6
TotAmtInFreelyDfndCtrlgCrcy7
TotAmtInFreelyDfndCtrlgCrcy8
TotalAmountInLocalCurrency
TotalAmountInAltvObjCurrency
ControllingKeySubNumber ControllingKeySubNumber Origin group order

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_CtrlgSettlmtDocumentTotal.
-- 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.

CREATE VIEW I_CtrlgSettlmtDocumentTotal AS
SELECT
  _SettlementHeader.Ledger AS Ledger,
  _SettlementHeader.ControllingObject AS ControllingObject,
  cast(_SettlementHeader.FiscalYear as fis_gjahr_no_conv ) AS FiscalYear,
  _SettlementHeader.ControllingArea AS ControllingArea,
  SettlementType,
  TransactionCurrency,
  ControllingAreaCurrency,
  sum(TotalAmountInTransactionCrcy) AS TotalAmountInTransactionCrcy,
  sum(TotalAmountInCtrlgAreaCrcy) AS TotalAmountInCtrlgAreaCrcy,
  sum(FixedAmountInCtrlgAreaCrcy) AS FixedAmountInCtrlgAreaCrcy,
  sum(TotalAmountInObjectCurrency) AS TotalAmountInObjectCurrency,
  sum(TotalPriceVarcInCtrlgAreaCrcy) AS TotalPriceVarcInCtrlgAreaCrcy,
  sum(FixedPriceVarcInCtrlgAreaCrcy) AS FixedPriceVarcInCtrlgAreaCrcy,
  UnitOfMeasure,
  sum(TotalQuantity) AS TotalQuantity,
  sum(FixedQuantity) AS FixedQuantity,
  sum(TotAmtInFreelyDfndCtrlgCrcy1) AS TotAmtInFreelyDfndCtrlgCrcy1,
  sum(TotAmtInFreelyDfndCtrlgCrcy2) AS TotAmtInFreelyDfndCtrlgCrcy2,
  sum(TotAmtInFreelyDfndCtrlgCrcy3) AS TotAmtInFreelyDfndCtrlgCrcy3,
  sum(TotAmtInFreelyDfndCtrlgCrcy4) AS TotAmtInFreelyDfndCtrlgCrcy4,
  sum(TotAmtInFreelyDfndCtrlgCrcy5) AS TotAmtInFreelyDfndCtrlgCrcy5,
  sum(TotAmtInFreelyDfndCtrlgCrcy6) AS TotAmtInFreelyDfndCtrlgCrcy6,
  sum(TotAmtInFreelyDfndCtrlgCrcy7) AS TotAmtInFreelyDfndCtrlgCrcy7,
  sum(TotAmtInFreelyDfndCtrlgCrcy8) AS TotAmtInFreelyDfndCtrlgCrcy8,
  sum(TotalAmountInLocalCurrency) AS TotalAmountInLocalCurrency,
  sum(TotalAmountInAltvObjCurrency) AS TotalAmountInAltvObjCurrency,
  ControllingKeySubNumber
FROM I_CtrlgSettlmtDocumentSegment
;