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

P_SAFTGLCustomerBalance

DDL: P_SAFTGLCUSTOMERBALANCE SQL: PSAFTGLCB Type: view COMPOSITE

P_SAFTGLCustomerBalance is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_SAFTGLCustomerEndBalance) and exposes 6 fields with key fields Ledger, CompanyCode, Customer, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
P_SAFTGLCustomerEndBalance P_SAFTGLCustomerEndBalance from

Parameters (3)

NameTypeDefault
P_FromPostingDate abap.dats
P_ToPostingDate abap.dats
P_FiscalYear gjahr

Annotations (13)

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

KeyFieldSource TableSource FieldDescription
KEY Ledger end_bal Ledger Ledger
KEY CompanyCode end_bal CompanyCode Receiver Company Code
KEY Customer end_bal Customer Sold-to Party
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_SAFTGLCustomerBalance.
-- 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: PSAFTGLCB
-- Parameters: P_FromPostingDate : abap.dats, P_ToPostingDate : abap.dats, P_FiscalYear : gjahr

CREATE VIEW P_SAFTGLCustomerBalance AS
SELECT
  end_bal.Ledger AS Ledger,
  end_bal.CompanyCode AS CompanyCode,
  end_bal.Customer AS Customer,
  end_bal.FiscalYear AS FiscalYear,
  end_bal.CompanyCodeCurrency AS CompanyCodeCurrency,
  (end_bal.DebitAmountInCoCodeCrcyEnd + end_bal.CreditAmountInCoCodeCrcyEnd) AS EndingBalanceAmtInCoCodeCrcy
FROM P_SAFTGLCustomerEndBalance
;