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

P_SAFTGenLedgerBalance2

DDL: P_SAFTGENLEDGERBALANCE2 SQL: PSAFTGLBAL2 Type: view COMPOSITE

P_SAFTGenLedgerBalance2 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_SAFTGenLedgerBalance1, P_SAFTGenLedgerBalance4) and exposes 9 fields with key fields Ledger, CompanyCode.

Data Sources (2)

SourceAliasJoin Type
P_SAFTGenLedgerBalance1 P_SAFTGenLedgerBalance1 from
P_SAFTGenLedgerBalance4 P_SAFTGenLedgerBalance4 inner

Parameters (2)

NameTypeDefault
P_FromPostingDate abap.dats
P_ToPostingDate abap.dats

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTGLBAL2 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 #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY Ledger a Ledger Ledger
KEY CompanyCode a CompanyCode Receiver Company Code
FinancialAccountType a FinancialAccountType Fin. Account Type
Customer a Customer Sold-to Party
Supplier a Supplier Supplier
ChartOfAccounts a ChartOfAccounts Node Class
GLAccount a GLAccount General Ledger
CompanyCodeCurrency a CompanyCodeCurrency Local Currency
EndingBalanceAmtInCoCodeCrcy b 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_SAFTGenLedgerBalance2.
-- 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: PSAFTGLBAL2
-- Parameters: P_FromPostingDate : abap.dats, P_ToPostingDate : abap.dats

CREATE VIEW P_SAFTGenLedgerBalance2 AS
SELECT
  a.Ledger AS Ledger,
  a.CompanyCode AS CompanyCode,
  a.FinancialAccountType AS FinancialAccountType,
  a.Customer AS Customer,
  a.Supplier AS Supplier,
  a.ChartOfAccounts AS ChartOfAccounts,
  a.GLAccount AS GLAccount,
  a.CompanyCodeCurrency AS CompanyCodeCurrency,
  b.EndingBalanceAmtInCoCodeCrcy AS EndingBalanceAmtInCoCodeCrcy
FROM P_SAFTGenLedgerBalance1
INNER JOIN P_SAFTGenLedgerBalance4 ON /* join condition not captured in parsed metadata */
;