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

P_SAFTGLSupplierEndBalance

DDL: P_SAFTGLSUPPLIERENDBALANCE SQL: PSAFTSEB Type: view COMPOSITE

P_SAFTGLSupplierEndBalance 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, Supplier, 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 PSAFTSEB 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 Supplier Supplier Supplier
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_SAFTGLSupplierEndBalance.
-- 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: PSAFTSEB
-- Parameters: P_ToPostingDate : abap.dats, P_FiscalYear : gjahr

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