SAP Reports / Programs

RGBALANCE SAP ABAP Report - Output account balances







RGBALANCE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RGBALANCE into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RGBALANCE. "Basic submit
SUBMIT RGBALANCE AND RETURN. "Return to original report after report execution complete
SUBMIT RGBALANCE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: COMPCODE = Company code
Selection Text: FISCYEAR = Fiscal year
Selection Text: GLACCOUN = G/L account
Selection Text: P_VARI = Variant
Title: Output account balances


INCLUDES used within this REPORT RGBALANCE

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING I_SAVE = G_SAVE CHANGING CS_VARIANT = XS_VARIANT EXCEPTIONS NOT_FOUND = 2.

BAPI_GL_GETGLACCBALANCE CALL FUNCTION 'BAPI_GL_GETGLACCBALANCE' EXPORTING COMPANYCODE = LT_ALL_ACCOUNTS-COMPANYCODE GLACCT = LT_ALL_ACCOUNTS-GLACCOUNT FISCALYEAR = FISCYEAR CURRENCYTYPE = CURRTYPE IMPORTING ACCOUNT_BALANCE = LS_ACCOUNT_BALANCE.

BAPI_CURRENCY_CONV_TO_INTERNAL CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING CURRENCY = ls_account_balance-currency AMOUNT_EXTERNAL = ls_account_balance-balance MAX_NUMBER_OF_DIGITS = 23 IMPORTING AMOUNT_INTERNAL = lt_all_accounts-balance.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_STRUCTURE_NAME = 'GBALANCE' CHANGING CT_FIELDCAT = lt_fieldcatalog.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_STRUCTURE_NAME = 'GBALANCE' IS_LAYOUT = GS_LAYOUT I_SAVE = G_SAVE IS_VARIANT = GS_VARIANT IT_FIELDCAT = LT_FIELDCATALOG IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER TABLES T_OUTTAB = GT_OUTTAB EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING IS_VARIANT = GS_VARIANT I_SAVE = G_SAVE * IT_DEFAULT_FIELDCAT = IMPORTING E_EXIT = G_EXIT ES_VARIANT = XS_VARIANT EXCEPTIONS NOT_FOUND = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING I_SAVE = G_SAVE CHANGING CS_VARIANT = XS_VARIANT.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RGBALANCE or its description.