P_RO_SAFTSuplrAcctBalMvt

DDL: P_RO_SAFTSUPLRACCTBALMVT SQL: PROSAFSUPACCBM Type: view CONSUMPTION

Supplier Balance Movement

P_RO_SAFTSuplrAcctBalMvt is a Consumption CDS View that provides data about "Supplier Balance Movement" in SAP S/4HANA. It reads from 3 data sources (I_RO_SAFTOneTimeSupplier, P_RO_SAFTBalanceBaseExc, P_RO_SAFTBalanceBaseExc) and exposes 23 fields with key fields SourceLedger, Ledger, CompanyCode, Supplier, GLAccount.

Data Sources (3)

SourceAliasJoin Type
I_RO_SAFTOneTimeSupplier ots union_all
P_RO_SAFTBalanceBaseExc P_RO_SAFTBalanceBaseExc from
P_RO_SAFTBalanceBaseExc P_RO_SAFTBalanceBaseExc inner

Parameters (3)

NameTypeDefault
P_FromPostingDate dats
P_ToPostingDate dats
P_AlternativeGLAccountIsUsed saft_ro_alt_gl_account_flag

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PROSAFSUPACCBM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.private true view
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 #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Supplier Balance Movement view

Fields (23)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger Balance SourceLedger Source Ledger
KEY Ledger Balance Ledger Ledger
KEY CompanyCode Balance CompanyCode Receiver Company Code
KEY Supplier Balance Supplier Supplier
KEY GLAccount Balance GLAccount General Ledger
KEY ChartOfAccounts Balance ChartOfAccounts Node Class
KEY FiscalYear Balance FiscalYear G/L Fiscal Year
KEY VATRegistration VAT Registration No.
CompanyCodeCurrency Balance CompanyCodeCurrency Local Currency
CreditAmountInCoCodeCrcy
DebitAmountInCoCodeCrcy
SourceLedger Source Ledger
KEY Ledger Balance Ledger Ledger
KEY CompanyCode Balance CompanyCode Receiver Company Code
KEY Supplier Balance Supplier Supplier
KEY GLAccount Balance GLAccount General Ledger
KEY ChartOfAccounts Balance ChartOfAccounts Node Class
KEY FiscalYear Balance FiscalYear G/L Fiscal Year
KEY VATRegistration I_RO_SAFTOneTimeSupplier VATRegistration VAT Registration No.
CompanyCodeCurrency Balance CompanyCodeCurrency Local Currency
CreditAmountInCoCodeCrcy
DebitAmountInCoCodeCrcy
NumberOfItems

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_RO_SAFTSuplrAcctBalMvt.
-- 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: PROSAFSUPACCBM
-- Parameters: P_FromPostingDate : dats, P_ToPostingDate : dats, P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag

CREATE VIEW P_RO_SAFTSuplrAcctBalMvt AS
SELECT
  Balance.SourceLedger AS SourceLedger,
  Balance.Ledger AS Ledger,
  Balance.CompanyCode AS CompanyCode,
  Balance.Supplier AS Supplier,
  Balance.GLAccount AS GLAccount,
  Balance.ChartOfAccounts AS ChartOfAccounts,
  Balance.FiscalYear AS FiscalYear,
  ' ' AS VATRegistration,
  Balance.CompanyCodeCurrency AS CompanyCodeCurrency,
  sum(Balance.CreditAmountInCoCodeCrcy) AS CreditAmountInCoCodeCrcy,
  sum(Balance.DebitAmountInCoCodeCrcy) AS DebitAmountInCoCodeCrcy,
  count(*) AS NumberOfItems
FROM P_RO_SAFTBalanceBaseExc
INNER JOIN P_RO_SAFTBalanceBaseExc ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_RO_SAFTOneTimeSupplier
;