SAP Reports / Programs | Public Sector Management | Funds Management(PSM-FM) SAP PSM

RFFMTOBL SAP ABAP Report - Transfer Commitments to Budgetary Ledger







RFFMTOBL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Transfer Funds Management Commitments to FI Budgetary Ledger The previously used program RFFMTOBL is for the transfer Funds Management (FM) commitments to the FI Budgetary Ledger, which forms part of FI-GL...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 RFFMTOBL 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 RFFMTOBL. "Basic submit
SUBMIT RFFMTOBL AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMTOBL 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: S_FUND = D .
Selection Text: S_BUDPD = D .
Selection Text: P_VARI = D .
Selection Text: P_TOYEAR = To Year
Selection Text: P_TOPERD = To Period
Selection Text: P_TESTRN = Test Run
Selection Text: P_PERIOD = Posting Period in FI-GL
Selection Text: P_FISCYR = D .
Selection Text: P_DETAIL = Detailed List
Selection Text: P_CCODE = D .
Selection Text: P_BUDAT = Posting Date
Title: Transfer Commitments to Budgetary Ledger
Text Symbol: P04 = Reporting
Text Symbol: P03 = Posting Data for Generated Documents
Text Symbol: P02 = Process Control
Text Symbol: P01 = Selected Data
Text Symbol: 502 = Position
Text Symbol: 501 = Header
Text Symbol: 334 = Prepare Output
Text Symbol: 333 = Transfer to Accounting
Text Symbol: 332 = Combine FM with FI Data
Text Symbol: 331 = Retrieve FI-GL Data
Text Symbol: 330 = Retrieve FM Data
Text Symbol: 222 = Define Deb/Cred GL Accounts
Text Symbol: 002 = Test Run
Text Symbol: 003 = Real Run
Text Symbol: 101 = FM Area:
Text Symbol: 102 = Fiscal Year:
Text Symbol: 103 = Company Code:
Text Symbol: 104 = Posting Period in FI
Text Symbol: 105 = FM Currency:
Text Symbol: 106 = Posting Date:
Text Symbol: 107 = To Period:
Text Symbol: 108 = To Year:
Text Symbol: 111 = Credit
Text Symbol: 112 = Debit
Text Symbol: 113 = Number of Items
Text Symbol: 114 = Balance





Text Symbol: 116 = Value Type
Text Symbol: 130 = Messages
Text Symbol: 131 = Items Read in FM
Text Symbol: 132 = Transfer FM to FI-GL
Text Symbol: 133 = Items in FI-GL
Text Symbol: 191 = Category ID
Text Symbol: 192 = Description
Text Symbol: 193 = Special Used
002 rency) Indicator
001 nt Credit/Debit


INCLUDES used within this REPORT RFFMTOBL

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:

DOCHEADER_PERIOD_FIND_CHECK CALL FUNCTION 'DOCHEADER_PERIOD_FIND_CHECK' EXPORTING i_bukrs = p_ccode i_bldat = l_bldat i_budat = p_budat IMPORTING e_gjahr = l_gjahr CHANGING c_monat = l_monat.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = con_variant_save CHANGING cs_variant = l_f_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_f_variant i_save = con_variant_save i_tabname_header = con_tabname_alv * it_default_fieldcat = IMPORTING e_exit = l_exit es_variant = l_f_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = con_variant_save CHANGING cs_variant = l_f_variant.

FI_COMPANY_CODE_CHECK CALL FUNCTION 'FI_COMPANY_CODE_CHECK' EXPORTING i_bukrs = c_ccode EXCEPTIONS company_code = 1 OTHERS = 2.

DOCHEADER_COMP_CODE_WITH_POPUP CALL FUNCTION 'DOCHEADER_COMP_CODE_WITH_POPUP' EXPORTING i_bukrs = c_ccode IMPORTING e_bukrs = c_ccode EXCEPTIONS canceled = 1 OTHERS = 2.

FI_COMPANY_CODE_CHECK CALL FUNCTION 'FI_COMPANY_CODE_CHECK' EXPORTING i_bukrs = c_ccode EXCEPTIONS company_code = 1 OTHERS = 2.

DOCHEADER_COMP_CODE_WITH_POPUP CALL FUNCTION 'DOCHEADER_COMP_CODE_WITH_POPUP' EXPORTING i_bukrs = c_ccode IMPORTING e_bukrs = c_ccode EXCEPTIONS canceled = 1 OTHERS = 2.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = u_budat i_bukrs = u_ccode IMPORTING e_gjahr = c_ty e_monat = c_tp EXCEPTIONS OTHERS = 1.

FMFK_GET_FIKRS_FROM_BUKRS CALL FUNCTION 'FMFK_GET_FIKRS_FROM_BUKRS' EXPORTING i_bukrs = u_ccode IMPORTING e_fikrs = l_fikrs EXCEPTIONS OTHERS = 1.

FMFK_FIKRS_READ CALL FUNCTION 'FMFK_FIKRS_READ' EXPORTING ip_fikrs = l_fikrs IMPORTING f_fm01 = c_f_fm01 EXCEPTIONS OTHERS = 1.

T001_READ CALL FUNCTION 'T001_READ' EXPORTING bukrs = u_ccode IMPORTING struct = c_f_t001 EXCEPTIONS OTHERS = 1.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = l_f_adate foreign_amount = i_f_amount foreign_currency = i_f_curr local_currency = e_f_curr type_of_rate = con_repctype IMPORTING local_amount = l_f_amount EXCEPTIONS OTHERS = 1.






BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_f_log IMPORTING e_log_handle = g_f_gm_msglog-msg_log_handle EXCEPTIONS log_header_inconsistent = 1.

BAL_LOG_MSG_DELETE_ALL CALL FUNCTION 'BAL_LOG_MSG_DELETE_ALL' EXPORTING i_log_handle = g_f_gm_msglog-msg_log_handle EXCEPTIONS log_not_found = 1.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = l_s_msg i_log_handle = g_f_gm_msglog-msg_log_handle EXCEPTIONS log_not_found = 0 OTHERS = 1.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING * I_CLIENT = SY-MANDT * I_IN_UPDATE_TASK = ' ' * I_SAVE_ALL = ' ' i_t_log_handle = l_t_log_handle * IMPORTING * E_NEW_LOGNUMBERS = EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.

BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = l_f_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_f_profile i_t_log_handle = l_t_log_handle * I_T_MSG_HANDLE = * I_S_LOG_FILTER = * I_S_MSG_FILTER = * I_T_LOG_CONTEXT_FILTER = * I_T_MSG_CONTEXT_FILTER = * I_AMODAL = 'X' * IMPORTING * E_S_EXIT_COMMAND = EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.

DDIF_DOMA_GET CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = con_fmac_domainname TABLES dd07v_tab = l_t_dd07v EXCEPTIONS OTHERS = 1.

OPEN_FI_PERFORM_00108011_P CALL FUNCTION 'OPEN_FI_PERFORM_00108011_P' IMPORTING e_flag_farea = l_flag_farea e_flag_funds_center = l_flag_funds_center e_flag_payment_budget = l_flag_payment_budget e_flag_commitmnt_budget = l_flag_commitmnt_budget e_flag_account_derive_vt = l_flag_account_derive_vt EXCEPTIONS OTHERS = 1.

OPEN_FI_PERFORM_00108010_P CALL FUNCTION 'OPEN_FI_PERFORM_00108010_P' EXPORTING i_flag_account_derive_vt = l_flag_account_derive_vt TABLES t_ifmvtgl = l_t_ifmvtgl.

OPEN_FI_PERFORM_00108011_P * call function 'OPEN_FI_PERFORM_00108011_P' * importing * e_flag_farea = l_flag_farea * e_flag_funds_center = l_flag_funds_center * e_flag_payment_budget = l_flag_payment_budget * e_flag_commitmnt_budget = l_flag_commitmnt_budget * e_flag_account_derive_vt = l_flag_account_derive_vt * exceptions * others = 1.

OPEN_FI_PERFORM_00108012_P * CALL FUNCTION 'OPEN_FI_PERFORM_00108012_P' * EXPORTING * i_applk = con_is_ps * i_obj_type = l_obj_type * IMPORTING * e_blart = c_blart * e_flg_error = l_flg_error * TABLES * t_fmbl_interface = l_t_fmbl_dummy * EXCEPTIONS * others = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING check_on_commit = 'X'.

READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' EXPORTING i_arbgb = 'FI_E' i_dtype = 'I' i_msgnr = '751' IMPORTING e_msgty = l_msgty.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_msg.

OBJECT_IDENTIFICATION_GET CALL FUNCTION 'OBJECT_IDENTIFICATION_GET' EXPORTING objnr = u_objnrz IMPORTING e_ionra = l_f_ionra EXCEPTIONS OTHERS = 1.

FM_COM_ITEM_READ_SINGLE_DATA CALL FUNCTION 'FM_COM_ITEM_READ_SINGLE_DATA' EXPORTING i_fikrs = u_fikrs * I_VARNT = '000' i_gjahr = u_gjahr i_fipex = u_fipex * I_FLG_TEXT = ' ' * I_FLG_HIERARCHY = ' ' IMPORTING e_f_fmci = u_fmci * E_F_FMCIT = * E_F_FMHICI = EXCEPTIONS master_data_not_found = 1 hierarchy_data_not_found = 2 input_error = 3 OTHERS = 4.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING check_on_commit = 'X'.

FM_CONTROL_DATA_GET CALL FUNCTION 'FM_CONTROL_DATA_GET' EXPORTING i_profil = u_f_fm01-fs_profil i_wrttp = l_f_mvtgl-wrttp IMPORTING e_f_fmup01 = l_f_fmup01 e_f_fmup00 = l_f_fmup00 EXCEPTIONS no_entry_found = 1 no_entry_found_wrttp = 2 wrttp_parameter_missing = 3 OTHERS = 4.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Retrieve FM Data'(330) EXCEPTIONS OTHERS = 1.

MESSAGES_GIVE



CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_msg.

GET_PERIOD_VERSION CALL FUNCTION 'GET_PERIOD_VERSION' EXPORTING i_periv = u_periv IMPORTING e_t009 = l_f_t009.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = u_date i_periv = u_periv i_monat = l_period IMPORTING e_monat = l_period.

FM_FSPROFILE_GET CALL FUNCTION 'FM_FSPROFILE_GET' EXPORTING i_fikrs = u_fmarea i_wrttp = c_t_mvtgl-wrttp TABLES t_fmup01 = l_t_fmup01_tmp EXCEPTIONS OTHERS = 1.

FUNC_AREA_CONVERSION_INBOUND CALL FUNCTION 'FUNC_AREA_CONVERSION_INBOUND' EXPORTING i_func_area = l_t_bseg-fkber i_func_area_long = l_t_bseg-fkber_long IMPORTING e_func_area_long = l_f_ac-fmac-farea.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Retrieve FI-GL Data'(331) EXCEPTIONS OTHERS = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Combine FM with FI Data'(332) EXCEPTIONS OTHERS = 1.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = l_f_fmac-bukrs IMPORTING e_t001 = l_f_t001 EXCEPTIONS OTHERS = 1.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = u_comp_code IMPORTING e_t001 = l_t001.

RK_KOKRS_FIND CALL FUNCTION 'RK_KOKRS_FIND' EXPORTING bukrs = u_comp_code IMPORTING kokrs = l_co_area EXCEPTIONS assignment_not_allowed = 1 insufficient_input = 2 no_kokrs_assigned = 3 no_kokrs_for_bukrs = 4 no_kokrs_for_bu_gb = 5 wrong_kokrs_for_bukrs = 6 wrong_kokrs_for_bu_gb = 7 OTHERS = 8.

RK_KSTAR_CHECK CALL FUNCTION 'RK_KSTAR_CHECK' EXPORTING datum = u_pstng_date kokrs = l_co_area kstar = l_cost_element EXCEPTIONS kstar_not_allowed = 1 kstar_not_found = 2 kstar_not_primary = 3 OTHERS = 4.

FM3R_GET_POSIT_FROM_ACCOUNT CALL FUNCTION 'FM3R_GET_POSIT_FROM_ACCOUNT' EXPORTING i_bukrs = c_t_accit-bukrs i_saknr = c_t_accit-hkont IMPORTING e_fipos = c_t_accit-fipos EXCEPTIONS fipos_data_not_found = 1 no_account_found = 2 no_fipos_found = 3 OTHERS = 4.

FM_FIPEX_GET_FROM_FIPOS CALL FUNCTION 'FM_FIPEX_GET_FROM_FIPOS' EXPORTING i_fipos = c_t_accit-fipos IMPORTING e_fipex = l_fipex.

FM_COMMITMENT_ITEM_READ CALL FUNCTION 'FM_COMMITMENT_ITEM_READ' EXPORTING i_fikrs = c_t_accit-fikrs i_gjahr = c_t_accit-gjahr i_fipex = l_fipex IMPORTING e_f_vfmpg = l_f_vfmpg.

KOKRS_GET_FROM_BUKRS CALL FUNCTION 'KOKRS_GET_FROM_BUKRS' EXPORTING i_bukrs = l_f_fmac-bukrs IMPORTING e_kokrs = c_t_accit-kokrs.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = l_f_fmac-bukrs IMPORTING e_t001 = l_f_t001.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = u_msgty msgv1 = u_msgv1 msgv2 = u_msgv2 msgv3 = u_msgv3 msgv4 = u_msgv4 arbgb = u_arbgb txtnr = l_txtnr exception_if_not_active = space.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING check_on_commit = 'X'.

AC_DOCUMENT_MM_NO_UPDATE CALL FUNCTION 'AC_DOCUMENT_MM_NO_UPDATE'.

AC_DOCUMENT_CREATE CALL FUNCTION 'AC_DOCUMENT_CREATE' TABLES t_acchd = l_t_acchd t_accit = l_t_accit t_acccr = l_t_acccr EXCEPTIONS error_message = 1 OTHERS = 2.

AC_DOCUMENT_GENERATE CALL FUNCTION 'AC_DOCUMENT_GENERATE' IMPORTING e_awref = u_f_obj_key-awref e_awtyp = u_f_obj_key-awtyp e_aworg = u_f_obj_key-aworg e_awsys = l_awsys TABLES t_acchd = l_t_acchd t_accit = l_t_accit t_acccr = l_t_acccr EXCEPTIONS error_message = 1 OTHERS = 2.

FI_DOCUMENT_NUMBER_INTERNAL CALL FUNCTION 'FI_DOCUMENT_NUMBER_INTERNAL' EXPORTING x_get = l_boole TABLES t_accdn = lt_documents EXCEPTIONS local_document_not_put = 1 OTHERS = 2.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' EXPORTING severity_from = 12 severity_to = 16 IMPORTING count = l_count EXCEPTIONS inconsistent_range = 1 inconsistent_range_severity = 2 OTHERS = 3.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS i_message = 1 w_message = 2 e_message = 3 a_message = 4 OTHERS = 8.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_w_msg.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Transfer to Accounting'(333) EXCEPTIONS OTHERS = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = g_t_listheader.

FM_TEXT_GET_FROM_WRTTP CALL FUNCTION 'FM_TEXT_GET_FROM_WRTTP' EXPORTING i_wrttp = u_wrttp IMPORTING e_text = l_wrttp_text.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = u_f_to_fcat-tabname i_structure_name = u_t_tablist-tabname CHANGING ct_fieldcat = l_t_ddfctemp EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

GET_COMPONENT_LIST CALL FUNCTION 'GET_COMPONENT_LIST' EXPORTING program = l_repid fieldname = u_f_to_fcat-tabname TABLES components = l_t_comp[] EXCEPTIONS OTHERS = 1.

FM_ALV_LAYOUT CALL FUNCTION 'FM_ALV_LAYOUT' CHANGING c_f_layout = c_f_layout.

FM_DOCUMENT_DISPLAY CALL FUNCTION 'FM_DOCUMENT_DISPLAY' EXPORTING i_belnr = g_t_alvout-fmac-belnr i_bukrs = g_t_alvout-fmac-bukrs i_gjahr = g_t_alvout-fmac-gjahr i_wrttp = g_t_alvout-wrttp.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = c_f_variant EXCEPTIONS not_found = 2.

FM_REPORT_TITLE_SET CALL FUNCTION 'FM_REPORT_TITLE_SET' IMPORTING e_title = l_f_title.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * i_interface_check = 'X' i_callback_program = g_repid i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND' i_structure_name = con_tabname_alv i_grid_title = g_f_top-titletext i_grid_settings = l_f_grid_settings is_layout = l_f_layout it_fieldcat = l_t_fcat it_special_groups = l_t_sp_groups it_sort = l_t_sort is_sel_hide = l_f_selcrit i_default = con_on i_save = con_variant_save is_variant = g_f_variant is_print = l_f_print it_events = l_t_events TABLES t_outtab = u_t_alvout EXCEPTIONS program_error = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = 'Prepare Output'(334) EXCEPTIONS OTHERS = 1.



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