P_RO_SAFTSuplrAcctBalEnd
Supplier Account Balance End
P_RO_SAFTSuplrAcctBalEnd is a Consumption CDS View that provides data about "Supplier Account Balance End" in SAP S/4HANA. It reads from 3 data sources (I_RO_SAFTOneTimeSupplier, P_RO_SAFTBalanceBaseExc, P_RO_SAFTBalanceBaseExc) and exposes 29 fields with key fields SourceLedger, Ledger, CompanyCode, Supplier, GLAccount.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_RO_SAFTOneTimeSupplier | ots | union_all |
| P_RO_SAFTBalanceBaseExc | P_RO_SAFTBalanceBaseExc | from |
| P_RO_SAFTBalanceBaseExc | P_RO_SAFTBalanceBaseExc | inner |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_ToPostingDate | dats | |
| P_FiscalYear | gjahr | |
| P_AlternativeGLAccountIsUsed | saft_ro_alt_gl_account_flag |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PROSAFTSUPACCBE | 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 Account Balance End | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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. | ||
| ActiveChartOfAccounts | Balance | ActiveChartOfAccounts | ||
| ActiveGLAccount | Balance | ActiveGLAccount | ||
| CountryChartOfAccounts | Balance | CountryChartOfAccounts | Chart of Accts | |
| AlternativeGLAccount | Balance | AlternativeGLAccount | Group Account | |
| CompanyCodeCurrency | Balance | CompanyCodeCurrency | Local Currency | |
| CreditAmountInCoCodeCrcy | ||||
| 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 | G/L Fiscal Year | ||
| KEY | VATRegistration | I_RO_SAFTOneTimeSupplier | VATRegistration | VAT Registration No. |
| ActiveChartOfAccounts | Balance | ActiveChartOfAccounts | ||
| ActiveGLAccount | Balance | ActiveGLAccount | ||
| CountryChartOfAccounts | Balance | CountryChartOfAccounts | Chart of Accts | |
| AlternativeGLAccount | Balance | AlternativeGLAccount | Group Account | |
| CompanyCodeCurrency | Balance | 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 P_RO_SAFTSuplrAcctBalEnd.
-- 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: PROSAFTSUPACCBE
-- Parameters: P_ToPostingDate : dats, P_FiscalYear : gjahr, P_AlternativeGLAccountIsUsed : saft_ro_alt_gl_account_flag
CREATE VIEW P_RO_SAFTSuplrAcctBalEnd 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.ActiveChartOfAccounts AS ActiveChartOfAccounts,
Balance.ActiveGLAccount AS ActiveGLAccount,
Balance.CountryChartOfAccounts AS CountryChartOfAccounts,
Balance.AlternativeGLAccount AS AlternativeGLAccount,
Balance.CompanyCodeCurrency AS CompanyCodeCurrency,
sum(Balance.CreditAmountInCoCodeCrcy) AS CreditAmountInCoCodeCrcy,
sum(Balance.DebitAmountInCoCodeCrcy) AS DebitAmountInCoCodeCrcy
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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA