P_PL_SAFTAccBalanceMovement

DDL: P_PL_SAFTACCBALANCEMOVEMENT Type: view_entity CONSUMPTION

P_PL_SAFTAccBalanceMovement is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountYearToDateBalanceC) and exposes 8 fields with key fields Ledger, CompanyCode, GLAccount, ChartOfAccounts, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountYearToDateBalanceC I_GLAccountYearToDateBalanceC from

Parameters (2)

NameTypeDefault
P_FromPostingDate dats
P_ToPostingDate dats

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY GLAccount GLAccount General Ledger
KEY ChartOfAccounts ChartOfAccounts Node Class
KEY FiscalYear FiscalYear G/L Fiscal Year
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CreditAmountInCoCodeCrcy
DebitAmountInCoCodeCrcy

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_PL_SAFTAccBalanceMovement.
-- 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_FromPostingDate : dats, P_ToPostingDate : dats

CREATE VIEW P_PL_SAFTAccBalanceMovement AS
SELECT
  Ledger,
  CompanyCode,
  GLAccount,
  ChartOfAccounts,
  FiscalYear,
  CompanyCodeCurrency,
  sum(CreditAmountInCoCodeCrcy) AS CreditAmountInCoCodeCrcy,
  sum(DebitAmountInCoCodeCrcy) AS DebitAmountInCoCodeCrcy
FROM I_GLAccountYearToDateBalanceC
;