P_LU_SAFT_SUPPLIERACCTBAL

DDL: P_LU_SAFT_SUPPLIERACCTBAL SQL: PLUSAFSUPACBAL Type: view COMPOSITE Package: GLO_FIN_IS_SAFT_LU

SAFT LU - Supplier and GL Account Balance

P_LU_SAFT_SUPPLIERACCTBAL is a Composite CDS View that provides data about "SAFT LU - Supplier and GL Account Balance" in SAP S/4HANA. It reads from 1 data source (P_LU_SAFT_SupplierAcctBalEnd) and exposes 9 fields with key fields Ledger, CompanyCode, GLAccount, Supplier, ChartOfAccounts. Part of development package GLO_FIN_IS_SAFT_LU.

Data Sources (1)

SourceAliasJoin Type
P_LU_SAFT_SupplierAcctBalEnd P_LU_SAFT_SupplierAcctBalEnd from

Parameters (3)

NameTypeDefault
P_FromPostingDate dats
P_ToPostingDate dats
P_FiscalYear gjahr

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PLUSAFSUPACBAL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY Ledger end_bal Ledger Ledger
KEY CompanyCode end_bal CompanyCode Receiver Company Code
KEY GLAccount end_bal GLAccount General Ledger
KEY Supplier end_bal Supplier Supplier
KEY ChartOfAccounts end_bal ChartOfAccounts Node Class
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 P_LU_SAFT_SUPPLIERACCTBAL.
-- 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: PLUSAFSUPACBAL
-- Parameters: P_FromPostingDate : dats, P_ToPostingDate : dats, P_FiscalYear : gjahr

CREATE VIEW P_LU_SAFT_SUPPLIERACCTBAL AS
SELECT
  end_bal.Ledger AS Ledger,
  end_bal.CompanyCode AS CompanyCode,
  end_bal.GLAccount AS GLAccount,
  end_bal.Supplier AS Supplier,
  end_bal.ChartOfAccounts AS ChartOfAccounts,
  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 P_LU_SAFT_SupplierAcctBalEnd
;