P_RU_BPBalance0

DDL: P_RU_BPBALANCE0 SQL: PRUBPBAL0 Type: view CONSUMPTION

P_RU_BPBalance0 is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_GLAccountLineItem) and exposes 31 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountLineItem I_GLAccountLineItem from

Parameters (4)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_IsReversal flag
P_ReportingEntity srf_reporting_entity

Annotations (10)

NameValueLevelField
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 (31)

KeyFieldSource TableSource FieldDescription
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
SupplierFinsAuthorizationGrp
CustomerFinsAuthorizationGrp
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.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
  I_GLAccountLineItem._Customer.AuthorizationGroup AS CustomerFinsAuthorizationGrp,
  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
;