P_RU_BPBalance0
Business Partner Account Balance
P_RU_BPBalance0 is a Consumption CDS View that provides data about "Business Partner Account Balance" in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItem) and exposes 35 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. Part of development package GLO_FIN_IS_RU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountLineItem | I_GLAccountLineItem | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | fis_budat_from | |
| P_ToPostingDate | fis_budat_to | |
| P_IsReversal | flag | |
| P_ReportingEntity | srf_reporting_entity |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRUBPBAL0 | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | I_GLAccountLineItem | Ledger | Ledger |
| KEY | CompanyCode | I_GLAccountLineItem | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_GLAccountLineItem | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_GLAccountLineItem | AccountingDocument | Journal Entry |
| KEY | LedgerGLLineItem | I_GLAccountLineItem | LedgerGLLineItem | Journal Entry Item |
| KEY | SourceLedger | I_GLAccountLineItem | SourceLedger | Source Ledger |
| LedgerFiscalYear | I_GLAccountLineItem | LedgerFiscalYear | ||
| PostingDate | I_GLAccountLineItem | PostingDate | Posting Date for GR | |
| DocumentDate | I_GLAccountLineItem | DocumentDate | Journal Entry Date | |
| AssignmentReference | I_GLAccountLineItem | AssignmentReference | Assignment Reference | |
| AccountingDocumentCategory | I_GLAccountLineItem | AccountingDocumentCategory | Journal Entry Category | |
| Supplier | I_GLAccountLineItem | Supplier | Supplier | |
| Customer | I_GLAccountLineItem | Customer | Sold-to Party | |
| SupplierAccountGroup | ||||
| SupplierFinsAuthorizationGrp | ||||
| SupplierCompanyAuthznGroup | ||||
| CustomerAccountGroup | ||||
| CustomerFinsAuthorizationGrp | ||||
| CustomerCompanyAuthznGroup | ||||
| FinancialAccountType | I_GLAccountLineItem | FinancialAccountType | Fin. Account Type | |
| ClearingDate | I_GLAccountLineItem | ClearingDate | Clearing Date | |
| ClearingAccountingDocument | I_GLAccountLineItem | ClearingAccountingDocument | Clearing Journal Entry | |
| ClearingDocFiscalYear | I_GLAccountLineItem | ClearingDocFiscalYear | Fiscal Year of Clearing Journal Entry | |
| AccountingDocumentType | I_GLAccountLineItem | AccountingDocumentType | Journal Entry Type | |
| IsReversal | I_GLAccountLineItem | IsReversal | Reversal doc. | |
| IsReversed | I_GLAccountLineItem | IsReversed | Reversed? | |
| TransactionCurrency | I_GLAccountLineItem | TransactionCurrency | Transaction Currency | |
| CompanyCodeCurrency | I_GLAccountLineItem | CompanyCodeCurrency | Local Currency | |
| DebitCreditCode | I_GLAccountLineItem | DebitCreditCode | Single-Character Flag | |
| ReferenceDocumentContext | I_GLAccountLineItem | ReferenceDocumentContext | Reference Document Context | |
| ReversalReferenceDocument | I_GLAccountLineItem | ReversalReferenceDocument | Reversal Reference Document | |
| ReversalReferenceDocumentCntxt | I_GLAccountLineItem | ReversalReferenceDocumentCntxt | Reversal Reference Document Context | |
| EndingBalanceAmtInCoCodeCrcy | Local Crcy Amt | |||
| EndingBalanceAmtInTransCrcy | Pt Crcy Amt | |||
| SelectReversal |
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_RU_BPBalance0.
-- 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: PRUBPBAL0
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_IsReversal : flag, P_ReportingEntity : srf_reporting_entity
CREATE VIEW P_RU_BPBalance0 AS
SELECT
I_GLAccountLineItem.Ledger AS Ledger,
I_GLAccountLineItem.CompanyCode AS CompanyCode,
I_GLAccountLineItem.FiscalYear AS FiscalYear,
I_GLAccountLineItem.AccountingDocument AS AccountingDocument,
I_GLAccountLineItem.LedgerGLLineItem AS LedgerGLLineItem,
I_GLAccountLineItem.SourceLedger AS SourceLedger,
I_GLAccountLineItem.LedgerFiscalYear AS LedgerFiscalYear,
I_GLAccountLineItem.PostingDate AS PostingDate,
I_GLAccountLineItem.DocumentDate AS DocumentDate,
I_GLAccountLineItem.AssignmentReference AS AssignmentReference,
I_GLAccountLineItem.AccountingDocumentCategory AS AccountingDocumentCategory,
I_GLAccountLineItem.Supplier AS Supplier,
I_GLAccountLineItem.Customer AS Customer,
I_GLAccountLineItem._Supplier.SupplierAccountGroup AS SupplierAccountGroup,
I_GLAccountLineItem._Supplier.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
I_GLAccountLineItem._SupplierCompany.AuthorizationGroup AS SupplierCompanyAuthznGroup,
I_GLAccountLineItem._Customer.CustomerAccountGroup AS CustomerAccountGroup,
I_GLAccountLineItem._Customer.AuthorizationGroup AS CustomerFinsAuthorizationGrp,
I_GLAccountLineItem._CustomerCompany.AuthorizationGroup AS CustomerCompanyAuthznGroup,
I_GLAccountLineItem.FinancialAccountType AS FinancialAccountType,
I_GLAccountLineItem.ClearingDate AS ClearingDate,
I_GLAccountLineItem.ClearingAccountingDocument AS ClearingAccountingDocument,
I_GLAccountLineItem.ClearingDocFiscalYear AS ClearingDocFiscalYear,
I_GLAccountLineItem.AccountingDocumentType AS AccountingDocumentType,
I_GLAccountLineItem.IsReversal AS IsReversal,
I_GLAccountLineItem.IsReversed AS IsReversed,
I_GLAccountLineItem.TransactionCurrency AS TransactionCurrency,
I_GLAccountLineItem.CompanyCodeCurrency AS CompanyCodeCurrency,
I_GLAccountLineItem.DebitCreditCode AS DebitCreditCode,
I_GLAccountLineItem.ReferenceDocumentContext AS ReferenceDocumentContext,
I_GLAccountLineItem.ReversalReferenceDocument AS ReversalReferenceDocument,
I_GLAccountLineItem.ReversalReferenceDocumentCntxt AS ReversalReferenceDocumentCntxt,
cast( cast( AmountInCompanyCodeCurrency as abap.curr( 23,2) ) as fis_end_bal_hsl ) AS EndingBalanceAmtInCoCodeCrcy,
cast( cast( AmountInTransactionCurrency as abap.curr( 23,2) ) as fis_end_bal_wsl ) AS EndingBalanceAmtInTransCrcy,
$parameters.P_IsReversal AS SelectReversal
FROM I_GLAccountLineItem
;
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