P_FSTMT_ACDOC_TOT_INC

DDL: P_FSTMT_ACDOC_TOT_INC SQL: PFSTMT_ACTOTIN Type: view COMPOSITE

P_FSTMT_ACDOC_TOT_INC is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_FSTMT_ACDOC_ITEMS) and exposes 24 fields with key fields rldnr, rbukrs, gjahr, racct, rwcur.

Data Sources (1)

SourceAliasJoin Type
P_FSTMT_ACDOC_ITEMS P_FSTMT_ACDOC_ITEMS from

Parameters (3)

NameTypeDefault
p_keydate_acdoc abap.dats
p_keydate_fsv abap.dats
p_Hierarchy hryid

Annotations (10)

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

Fields (24)

KeyFieldSource TableSource FieldDescription
KEY rldnr acd rldnr Ledger (Compat.)
KEY rbukrs acd rbukrs Company Code
KEY gjahr acd gjahr Settlement Year
KEY racct acd racct GL Account From
KEY rwcur acd rwcur Transaction Currency
KEY GeneralLedgerAgingIncrement inc GeneralLedgerAgingIncrement Increment
incrmt_index inc incrmt_index
hsl
ksl
osl
vsl
bsl
csl
dsl
esl
fsl
gsl
Segment acd Segment Segment number
prctr acd prctr Profit Centers
hbkid acd hbkid House Bank
hktid acd hktid House Bank Account
FiscalYearPeriod acd FiscalYearPeriod Period/Year
funcarea acd funcarea Functional Area
rrcty acd rrcty Record Type

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_TOT_INC.
-- 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: PFSTMT_ACTOTIN
-- Parameters: p_keydate_acdoc : abap.dats, p_keydate_fsv : abap.dats, p_Hierarchy : hryid

CREATE VIEW P_FSTMT_ACDOC_TOT_INC AS
SELECT
  acd.rldnr AS rldnr,
  acd.rbukrs AS rbukrs,
  acd.gjahr AS gjahr,
  acd.racct AS racct,
  acd.rwcur AS rwcur,
  inc.GeneralLedgerAgingIncrement AS GeneralLedgerAgingIncrement,
  inc.incrmt_index AS incrmt_index,
  sum(acd.hsl) AS hsl,
  sum(acd.ksl) AS ksl,
  sum(acd.osl) AS osl,
  sum(acd.vsl) AS vsl,
  sum(acd.bsl) AS bsl,
  sum(acd.csl) AS csl,
  sum(acd.dsl) AS dsl,
  sum(acd.esl) AS esl,
  sum(acd.fsl) AS fsl,
  sum(acd.gsl) AS gsl,
  acd.Segment AS Segment,
  acd.prctr AS prctr,
  acd.hbkid AS hbkid,
  acd.hktid AS hktid,
  acd.FiscalYearPeriod AS FiscalYearPeriod,
  acd.funcarea AS funcarea,
  acd.rrcty AS rrcty
FROM P_FSTMT_ACDOC_ITEMS
;