I_SAFTSupplierBalance

DDL: I_SAFTSUPPLIERBALANCE SQL: ISAFTGLSBAL Type: view COMPOSITE Package: GLO_FIN_IS_SAFT_GEN

Supplier Balance

I_SAFTSupplierBalance is a Composite CDS View that provides data about "Supplier Balance" in SAP S/4HANA. It reads from 1 data source (I_SAFTSupplierBalanceEnd) and exposes 7 fields with key fields Ledger, CompanyCode, Supplier, FiscalYear. Part of development package GLO_FIN_IS_SAFT_GEN.

Data Sources (1)

SourceAliasJoin Type
I_SAFTSupplierBalanceEnd I_SAFTSupplierBalanceEnd from

Parameters (3)

NameTypeDefault
P_FromPostingDate dats
P_ToPostingDate dats
P_FiscalYear gjahr

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ISAFTGLSBAL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Supplier Balance view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Ledger end_bal Ledger Ledger
KEY CompanyCode end_bal CompanyCode Receiver Company Code
KEY Supplier end_bal Supplier Supplier
KEY FiscalYear end_bal FiscalYear G/L Fiscal Year
CompanyCodeCurrency end_bal CompanyCodeCurrency Local Currency
curr232asStartingBalanceAmtInCoCodeCrcy
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 I_SAFTSupplierBalance.
-- 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: ISAFTGLSBAL
-- Parameters: P_FromPostingDate : dats, P_ToPostingDate : dats, P_FiscalYear : gjahr

CREATE VIEW I_SAFTSupplierBalance AS
SELECT
  end_bal.Ledger AS Ledger,
  end_bal.CompanyCode AS CompanyCode,
  end_bal.Supplier AS Supplier,
  end_bal.FiscalYear AS FiscalYear,
  end_bal.CompanyCodeCurrency AS CompanyCodeCurrency,
  cast(case when bal_mov.DebitAmountInCoCodeCrcy is not null and bal_mov.CreditAmountInCoCodeCrcy is not null then ((end_bal.DebitAmountInCoCodeCrcy + end_bal.CreditAmountInCoCodeCrcy)-(bal_mov.DebitAmountInCoCodeCrcy + bal_mov.CreditAmountInCoCodeCrcy)) else (end_bal.DebitAmountInCoCodeCrcy + end_bal.CreditAmountInCoCodeCrcy) end as abap.curr(23,2) ) as StartingBalanceAmtInCoCodeCrcy AS curr232asStartingBalanceAmtInCoCodeCrcy,
  (end_bal.DebitAmountInCoCodeCrcy + end_bal.CreditAmountInCoCodeCrcy) AS EndingBalanceAmtInCoCodeCrcy
FROM I_SAFTSupplierBalanceEnd
;