SAP Reports / Programs

RFMBL_REG_REPORT SAP ABAP Report - Year-end Balancing for BL Accounts







RFMBL_REG_REPORT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You carry out year-end balancing for your BL accounts by posting FI documents which do not reflect FM financial transactions...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FMBLEXT0 - Set account balance to zero


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 RFMBL_REG_REPORT. "Basic submit
SUBMIT RFMBL_REG_REPORT AND RETURN. "Return to original report after report execution complete
SUBMIT RFMBL_REG_REPORT 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: P_CCODE = D .
Selection Text: P_GRP = D .
Selection Text: P_PDATE = D .
Selection Text: P_PERIOD = D .
Selection Text: P_TEST = D .
Selection Text: P_YEAR = D .
Title: Year-end Balancing for BL Accounts
Text Symbol: 001 = Warning
Text Symbol: 002 = Run &GRP& was executed by &NAME& on &DATUM&! Do you want to continue?
Text Symbol: 003 = Run &1 / &2 / &3 was successfully executed
Text Symbol: 004 = Test &1 / &2 / &3 was successfully executed
Text Symbol: 005 = Selection
Text Symbol: 006 = Posting
Text Symbol: 007 = debit side
Text Symbol: 008 = credit side


INCLUDES used within this REPORT RFMBL_REG_REPORT

INCLUDE IFIFMCON_APPL.
INCLUDE RKASMAWF.
INCLUDE RFMBL_REG_REPORT_CHECK_LASTF01.


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:

FM_FYC_SCHEDMAN_INIT CALL FUNCTION 'FM_FYC_SCHEDMAN_INIT' EXPORTING i_repid = 'RFMBL_REG_REPORT' i_tcode = 'FMBLEXT0' i_wfitem = wf_witem i_wflist = wf_wlist i_flg_test = p_test IMPORTING e_f_schedman_key = g_f_schedman_key.

FMBL_REG_READ_CUSTOM CALL FUNCTION 'FMBL_REG_READ_CUSTOM' EXPORTING i_grp = p_grp i_year = p_year i_ccode = p_ccode IMPORTING e_t_costum = g_t_fmblregtyp e_blart = g_blart e_bschl_s = g_bschl_s e_bschl_h = g_bschl_h.

FI_WT_READ_T003 CALL FUNCTION 'FI_WT_READ_T003' EXPORTING I_BLART = g_blart IMPORTING T_T003 = l_t003 EXCEPTIONS OTHERS = 0. " Ignore errors

DOCHEADER_AUTHORITY_CHECK CALL FUNCTION 'DOCHEADER_AUTHORITY_CHECK' EXPORTING I_BUKRS = p_ccode I_BLART = g_blart I_BRGRU = l_t003-brgru EXCEPTIONS OTHERS = 1.

AC_DOCUMENT_GENERATE CALL FUNCTION 'AC_DOCUMENT_GENERATE' IMPORTING e_awref = g_f_awref TABLES t_acchd = g_t_acchd t_accit = g_t_accit t_acccr = g_t_acccr.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = g_t_acchd t_accit = g_t_accit t_acccr = g_t_acccr EXCEPTIONS error_message = 1.

FMBL_REG_AMOUNT CALL FUNCTION 'FMBL_REG_AMOUNT' EXPORTING i_account = g_f_fmblregtyp-regacc i_dcbindi = g_f_fmblregtyp-dcbindi i_ccode = g_f_fmblregtyp-bukrs i_year = p_year i_toperiod = p_period IMPORTING e_amount = g_sav_account_amount e_currency = g_sav_account_currency.

AC_DOCUMENT_GENERATE CALL FUNCTION 'AC_DOCUMENT_GENERATE' IMPORTING e_awref = g_f_awref TABLES t_acchd = g_t_acchd t_accit = g_t_accit t_acccr = g_t_acccr.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = g_t_acchd t_accit = g_t_accit t_acccr = g_t_acccr EXCEPTIONS error_message = 1.

FM_FYC_SCHEDMAN_CLOSE CALL FUNCTION 'FM_FYC_SCHEDMAN_CLOSE' EXPORTING i_f_schedman_key = g_f_schedman_key i_wfitem = wf_witem i_wfokey = wf_okey i_aplstat = '0' i_cnt_obj = sy-tfill.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_structure_name = 'FMBL_REG_DISPLAY' i_grid_title = lv_title it_excluding = pt_exclude TABLES t_outtab = g_t_display EXCEPTIONS OTHERS = 2.



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 RFMBL_REG_REPORT or its description.