P_fstmt_ACDOC_totals

DDL: P_FSTMT_ACDOC_TOTALS SQL: P_FSTMTACDOC_TOT Type: view COMPOSITE

P_fstmt_ACDOC_totals is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_FSTMT_ACDOC_ITEMS, P_FSTMT_GLACCOUNT) and exposes 16 fields with key fields rldnr, rbukrs, racct, segment, prctr.

Data Sources (2)

SourceAliasJoin Type
P_FSTMT_ACDOC_ITEMS P_FSTMT_ACDOC_ITEMS from
P_FSTMT_GLACCOUNT P_FSTMT_GLACCOUNT inner

Parameters (4)

NameTypeDefault
p_keydate_acdoc abap.dats
p_keydate_fsv abap.dats
p_semantictag fins_sem_tag
p_aging fins_aging

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName P_FSTMTACDOC_TOT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY rldnr rldnr Ledger (Compat.)
KEY rbukrs rbukrs Company Code
KEY racct racct GL Account From
KEY segment segment Segment number
KEY prctr prctr Profit Centers
KEY GeneralLedgerAgingIncrement GeneralLedgerAgingIncrement Increment
hsl
ksl
osl
vsl
bsl
csl
dsl
esl
fsl
gsl

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_fstmt_ACDOC_totals.
-- 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: P_FSTMTACDOC_TOT
-- Parameters: p_keydate_acdoc : abap.dats, p_keydate_fsv : abap.dats, p_semantictag : fins_sem_tag, p_aging : fins_aging

CREATE VIEW P_fstmt_ACDOC_totals AS
SELECT
  rldnr,
  rbukrs,
  racct,
  segment,
  prctr,
  GeneralLedgerAgingIncrement,
  sum(hsl) AS hsl,
  sum(ksl) AS ksl,
  sum(osl) AS osl,
  sum(vsl) AS vsl,
  sum(bsl) AS bsl,
  sum(csl) AS csl,
  sum(dsl) AS dsl,
  sum(esl) AS esl,
  sum(fsl) AS fsl,
  sum(gsl) AS gsl
FROM P_FSTMT_ACDOC_ITEMS
INNER JOIN P_FSTMT_GLACCOUNT ON /* join condition not captured in parsed metadata */
;