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

P_SAFTGenLedgerBalance8

DDL: P_SAFTGENLEDGERBALANCE8 SQL: PSAFTGLBAL7 Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
P_SAFTGenLedgerBalance2 P_SAFTGenLedgerBalance2 from

Parameters (2)

NameTypeDefault
P_FromPostingDate abap.dats
P_ToPostingDate abap.dats

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTGLBAL7 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 (7)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
FinancialAccountType FinancialAccountType Fin. Account Type
Customer Customer Sold-to Party
Supplier Supplier Supplier
CompanyCodeCurrency 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_SAFTGenLedgerBalance8.
-- 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: PSAFTGLBAL7
-- Parameters: P_FromPostingDate : abap.dats, P_ToPostingDate : abap.dats

CREATE VIEW P_SAFTGenLedgerBalance8 AS
SELECT
  Ledger,
  CompanyCode,
  FinancialAccountType,
  Customer,
  Supplier,
  CompanyCodeCurrency,
  sum(EndingBalanceAmtInCoCodeCrcy) AS EndingBalanceAmtInCoCodeCrcy
FROM P_SAFTGenLedgerBalance2
;