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

I_SAFTGenLedgerAccountBalance

DDL: I_SAFTGENLEDGERACCOUNTBALANCE SQL: ISAFTGENGLACCBAL Type: view COMPOSITE

SAF-T General Ledegr Accounts Balance

I_SAFTGenLedgerAccountBalance is a Composite CDS View that provides data about "SAF-T General Ledegr Accounts Balance" in SAP S/4HANA. It reads from 1 data source (P_SAFTGenLedgerBalance6) and exposes 10 fields with key fields Ledger, CompanyCode, ChartOfAccounts, GLAccount. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_SAFTGenLedgerBalance6 P_SAFTGenLedgerBalance6 from

Parameters (2)

NameTypeDefault
P_FromPostingDate abap.dats
P_ToPostingDate abap.dats

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_GLAccountInCompanyCode _GLAccountInCompanyCode $projection.CompanyCode = _GLAccountInCompanyCode.CompanyCode and $projection.GLAccount = _GLAccountInCompanyCode.GLAccount
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ISAFTGENGLACCBAL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
EndUserText.label SAF-T General Ledegr Accounts Balance view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY ChartOfAccounts ChartOfAccounts Node Class
KEY GLAccount GLAccount General Ledger
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DebitAmountInCoCodeCrcy debitamountincocodecrcy Debit Amount in Company Code Currency
CreditAmountInCoCodeCrcy creditamountincocodecrcy Credit Amount in Company Code Currency
_CompanyCode _CompanyCode
_GLAccountInCompanyCode _GLAccountInCompanyCode
_ChartOfAccounts _ChartOfAccounts

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_SAFTGenLedgerAccountBalance.
-- 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: ISAFTGENGLACCBAL
-- Parameters: P_FromPostingDate : abap.dats, P_ToPostingDate : abap.dats

CREATE VIEW I_SAFTGenLedgerAccountBalance AS
SELECT
  Ledger,
  CompanyCode,
  ChartOfAccounts,
  GLAccount,
  CompanyCodeCurrency,
  DebitAmountInCoCodeCrcy,
  CreditAmountInCoCodeCrcy
FROM P_SAFTGenLedgerBalance6
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _GLAccountInCompanyCode ON CompanyCode = _GLAccountInCompanyCode.CompanyCode AND GLAccount = _GLAccountInCompanyCode.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts  -- association [0..1]
;