I_NO_SAFTBusPartAcctBalanceEnd

DDL: I_NO_SAFTBUSPARTACCTBALANCEEND Type: view_entity COMPOSITE

BP account balance at end of period

I_NO_SAFTBusPartAcctBalanceEnd is a Composite CDS View that provides data about "BP account balance at end of period" in SAP S/4HANA. It reads from 1 data source (I_GLAccountYearToDateBalanceC) and exposes 9 fields with key fields Ledger, CompanyCode, Customer, Supplier, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountYearToDateBalanceC I_GLAccountYearToDateBalanceC from

Parameters (2)

NameTypeDefault
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 #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
EndUserText.label BP account balance at end of period view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY Customer Customer Sold-to Party
KEY Supplier Supplier Supplier
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY GLAccount GLAccount General Ledger
CompanyCodeCurrency CompanyCodeCurrency Local Currency
CreditAmountInCoCodeCrcy
DebitAmountInCoCodeCrcy

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_SAFTBusPartAcctBalanceEnd.
-- 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_ToPostingDate : dats, P_FiscalYear : gjahr

CREATE VIEW I_NO_SAFTBusPartAcctBalanceEnd AS
SELECT
  Ledger,
  CompanyCode,
  Customer,
  Supplier,
  FiscalYear,
  GLAccount,
  CompanyCodeCurrency,
  sum(CreditAmountInCoCodeCrcy) AS CreditAmountInCoCodeCrcy,
  sum(DebitAmountInCoCodeCrcy) AS DebitAmountInCoCodeCrcy
FROM I_GLAccountYearToDateBalanceC
;