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

P_SAFTGLCustomerEndBalance

DDL: P_SAFTGLCUSTOMERENDBALANCE SQL: PSAFTGLCEB Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_GLAccountYearToDateBalanceC I_GLAccountYearToDateBalanceC from

Parameters (2)

NameTypeDefault
P_ToPostingDate abap.dats
P_FiscalYear gjahr

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PSAFTGLCEB 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 Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY Customer Customer Sold-to Party
KEY FiscalYear FiscalYear G/L Fiscal Year
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CreditAmountInCoCodeCrcyEnd
DebitAmountInCoCodeCrcyEnd

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_SAFTGLCustomerEndBalance.
-- 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: PSAFTGLCEB
-- Parameters: P_ToPostingDate : abap.dats, P_FiscalYear : gjahr

CREATE VIEW P_SAFTGLCustomerEndBalance AS
SELECT
  Ledger,
  CompanyCode,
  Customer,
  FiscalYear,
  CompanyCodeCurrency,
  sum(CreditAmountInCoCodeCrcy) AS CreditAmountInCoCodeCrcyEnd,
  sum(DebitAmountInCoCodeCrcy) AS DebitAmountInCoCodeCrcyEnd
FROM I_GLAccountYearToDateBalanceC
;