P_RU_GLAcctBalance3

DDL: P_RU_GLACCTBALANCE3 SQL: PRUGLACCTBAL3 Type: view CONSUMPTION Package: GLO_FIN_IS_RU_OFFSET_ACC

G/L Account Balance

P_RU_GLAcctBalance3 is a Consumption CDS View that provides data about "G/L Account Balance" in SAP S/4HANA. It reads from 1 data source (P_RU_GLAcctBalance2) and exposes 61 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 15 associations to related views. Part of development package GLO_FIN_IS_RU_OFFSET_ACC.

Data Sources (1)

SourceAliasJoin Type
P_RU_GLAcctBalance2 P_RU_GLAcctBalance2 from

Parameters (6)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_DisplayCurrency firu_display_currency
P_GLAccountGroup firu_account_grouping
P_DisplayAltvAcct firu_display_account
P_ZeroBalanceGLAccIsDisplayed firu_zero_turnover

Associations (15)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..*] I_CostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter
[0..*] I_ProfitCenter _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter
[0..1] I_FunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_BusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_Segment _Segment $projection.Segment = _Segment.Segment
[0..1] I_Order _Order $projection.OrderID = _Order.OrderID
[0..1] I_WBSElement _WBSElement $projection.WBSElement = _WBSElement.WBSElement
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_AccountingDocumentType _AccountingDocumentType $projection.AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType
[0..1] I_DebitCreditCode _DebitCreditCode $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PRUGLACCTBAL3 view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label G/L Account Balance view

Fields (61)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger SourceLedger Source Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY Ledger Ledger Ledger
ChartOfAccounts ChartOfAccounts Node Class
CountryChartOfAccounts CountryChartOfAccounts Chart of Accts
GLAccount GLAccount General Ledger
AlternativeGLAccount AlternativeGLAccount Group Account
DocumentDate DocumentDate Journal Entry Date
DocumentItemText DocumentItemText Text
LogicalSystem LogicalSystem Logical System
AccountingDocumentCreationDate AccountingDocumentCreationDate Journal Entry Date
DocumentReferenceID DocumentReferenceID Reference
AccountingDocumentHeaderText AccountingDocumentHeaderText Doc.Header Text
OffsettingItem OffsettingItem G/L Line Item
OffsettingChartOfAccounts OffsettingChartOfAccounts Offsetting Chart of Accounts
OffsettingAccount OffsettingAccount Offsetting Acct
ControllingArea ControllingArea Controlling Area
CostCenter CostCenter Cost Center
ProfitCenter ProfitCenter Profit Center
FunctionalArea FunctionalArea Sendr Fctl Area
BusinessArea BusinessArea Business Area
Segment Segment Segment number
OrderID OrderID Order ID
WBSElement WBSElement WBS Internal ID
WBSElementInternalID WBSElementInternalID WBS Internal ID
ContractNumber ContractNumber ContractNum
Product Product Product Sold
Plant Plant Valuation Area
Supplier Supplier Supplier
Customer Customer Sold-to Party
AccountingDocumentType AccountingDocumentType Journal Entry Type
DebitCreditCode DebitCreditCode Single-Character Flag
PostingDate PostingDate Posting Date for GR
FiscalPeriod FiscalPeriod Tax period
BaseUnit BaseUnit Unit of Measure
PeriodFlag PeriodFlag
PeriodTurnoverInDisplayCrcy
DisplayZeroPeriodTurnover
Currency Currency Valuation Crcy
_SourceLedger _SourceLedger
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_Ledger _Ledger
_ControllingArea _ControllingArea
_CostCenter _CostCenter
_ProfitCenter _ProfitCenter
_FunctionalArea _FunctionalArea
_BusinessArea _BusinessArea
_Segment _Segment
_Order _Order
_WBSElement _WBSElement
_WBSElementBasicData _WBSElementBasicData
_Product _Product
_Plant _Plant
_Supplier _Supplier
_Customer _Customer
_AccountingDocumentType _AccountingDocumentType
_DebitCreditCode _DebitCreditCode

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_GLAcctBalance3.
-- 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: PRUGLACCTBAL3
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_DisplayCurrency : firu_display_currency, P_GLAccountGroup : firu_account_grouping, P_DisplayAltvAcct : firu_display_account, P_ZeroBalanceGLAccIsDisplayed : firu_zero_turnover

CREATE VIEW P_RU_GLAcctBalance3 AS
SELECT
  SourceLedger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  Ledger,
  ChartOfAccounts,
  CountryChartOfAccounts,
  GLAccount,
  AlternativeGLAccount,
  DocumentDate,
  DocumentItemText,
  LogicalSystem,
  AccountingDocumentCreationDate,
  DocumentReferenceID,
  AccountingDocumentHeaderText,
  OffsettingItem,
  OffsettingChartOfAccounts,
  OffsettingAccount,
  ControllingArea,
  CostCenter,
  ProfitCenter,
  FunctionalArea,
  BusinessArea,
  Segment,
  OrderID,
  WBSElement,
  WBSElementInternalID,
  ContractNumber,
  Product,
  Plant,
  Supplier,
  Customer,
  AccountingDocumentType,
  DebitCreditCode,
  PostingDate,
  FiscalPeriod,
  BaseUnit,
  PeriodFlag,
  DebitAmountInDisplayCrcy + CreditAmountInDisplayCrcy AS PeriodTurnoverInDisplayCrcy,
  'X' AS DisplayZeroPeriodTurnover,
  Currency
FROM P_RU_GLAcctBalance2
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_ProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter  -- association [0..*]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_BusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_Segment AS _Segment ON Segment = _Segment.Segment  -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID  -- association [0..1]
LEFT OUTER JOIN I_WBSElement AS _WBSElement ON WBSElement = _WBSElement.WBSElement  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID = _WBSElementBasicData.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_AccountingDocumentType AS _AccountingDocumentType ON AccountingDocumentType = _AccountingDocumentType.AccountingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode  -- association [0..1]
;