I_NO_SAFTBusPartAcctBalance

DDL: I_NO_SAFTBUSPARTACCTBALANCE Type: view_entity COMPOSITE Package: GLO_FIN_IS_SAFT_NO

BP Account Balance for SAFT Norway

I_NO_SAFTBusPartAcctBalance is a Composite CDS View that provides data about "BP Account Balance for SAFT Norway" in SAP S/4HANA. It reads from 1 data source (I_NO_SAFTBusPartAcctBalanceEnd) and exposes 9 fields with key fields Ledger, CompanyCode, Customer, Supplier, FiscalYear. Part of development package GLO_FIN_IS_SAFT_NO.

Data Sources (1)

SourceAliasJoin Type
I_NO_SAFTBusPartAcctBalanceEnd I_NO_SAFTBusPartAcctBalanceEnd from

Parameters (3)

NameTypeDefault
P_FromPostingDate dats
P_ToPostingDate dats
P_FiscalYear gjahr

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY 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
EndUserText.label BP Account Balance for SAFT Norway view

Fields (9)

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 Supplier end_bal Supplier Supplier
KEY FiscalYear end_bal FiscalYear G/L Fiscal Year
KEY GLAccount end_bal GLAccount General Ledger
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_NO_SAFTBusPartAcctBalance.
-- 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.
-- Parameters: P_FromPostingDate : dats, P_ToPostingDate : dats, P_FiscalYear : gjahr

CREATE VIEW I_NO_SAFTBusPartAcctBalance AS
SELECT
  end_bal.Ledger AS Ledger,
  end_bal.CompanyCode AS CompanyCode,
  end_bal.Customer AS Customer,
  end_bal.Supplier AS Supplier,
  end_bal.FiscalYear AS FiscalYear,
  end_bal.GLAccount AS GLAccount,
  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_NO_SAFTBusPartAcctBalanceEnd
;