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
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.
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
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.