Deprecated
This CDS view is deprecated in S/4HANA. Use NoSuccessor instead. View all deprecated CDS views →

P_SAFTGLBALANCE

DDL: P_SAFTGLBALANCE SQL: PSAFTBALANCE Type: view COMPOSITE

P_SAFTGLBALANCE is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_SAFTGLBAL_END) and exposes 7 fields with key fields Ledger, CompanyCode, GLAccount, ChartOfAccounts, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
P_SAFTGLBAL_END P_SAFTGLBAL_END from

Parameters (3)

NameTypeDefault
P_FromPostingDate abap.dats
P_ToPostingDate abap.dats
P_FiscalYear gjahr

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTBALANCE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #P view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (7)

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

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_SAFTGLBALANCE.
-- 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: PSAFTBALANCE
-- Parameters: P_FromPostingDate : abap.dats, P_ToPostingDate : abap.dats, P_FiscalYear : gjahr

CREATE VIEW P_SAFTGLBALANCE AS
SELECT
  end_bal.Ledger AS Ledger,
  end_bal.CompanyCode AS CompanyCode,
  end_bal.GLAccount AS GLAccount,
  end_bal.ChartOfAccounts AS ChartOfAccounts,
  end_bal.FiscalYear AS FiscalYear,
  end_bal.CompanyCodeCurrency AS CompanyCodeCurrency,
  (end_bal.DebitAmountInCoCodeCrcyEnd + end_bal.CreditAmountInCoCodeCrcyEnd) AS EndingBalanceAmtInCoCodeCrcy
FROM P_SAFTGLBAL_END
;