RFFMERKK is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Completing Earmarked Funds (Whole Documents) You can use this program to set the "completed" indicator for all
If you would like to execute this report or see the full code listing simply enter RFFMERKK into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FMRE_KERLK - Close Earmarked Funds
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: P_FORCE = Complete All Items
Selection Text: P_TEST = Test Run
Selection Text: SO_BELNR = Document Number
Selection Text: SO_BLART = Document Type
Selection Text: SO_BLDAT = Document Date
Selection Text: SO_BLTYP = Document Category
Selection Text: SO_BUDAT = Posting Date
Selection Text: SO_BUKRS = Company Code
Selection Text: SO_ERFAS = Created by
Title: Close Earmarked Funds (Full Document)
Text Symbol: 010 = Document Selection
Text Symbol: 020 = Control Data
Text Symbol: 030 = Preselect Documents
Text Symbol: 070 = UPDATE
Text Symbol: 080 = Test Run
Text Symbol: 110 = Process documents
INCLUDE FMREQUAT.
No SAP DATABASE tables are accessed within this REPORT code!
SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = 0 text = text-030.
REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' exporting i_callback_program = g_repid i_callback_pf_status_set = 'ALV_PF_STATUS' i_callback_user_command = 'ALV_USER_COMMAND' is_layout = g_f_layout it_fieldcat = g_t_fieldcat it_sort = g_t_sortinfo i_structure_name = 'FMR_ALV_ERLK3' tables t_outtab = g_t_seldata exceptions program_error = 1 others = 2.
MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.
FMFR_CHANGE_COMPLETION_FLAG call function 'FMFR_CHANGE_COMPLETION_FLAG' exporting i_flg_commit = space i_flg_checkonly = p_test i_flg_complete_doc = con_true importing e_count_success = l_count_success e_count_sethead = l_count_sethead tables t_positions = l_t_erlpos exceptions not_found = 1 internal_error = 2 others = 3.
DEQUEUE_ALL call function 'DEQUEUE_ALL'.
MESSAGES_ACTIVE call function 'MESSAGES_ACTIVE' importing max_severity = l_max_severity exceptions others = 1.
FMFR_CHANGE_COMPLETION_FLAG call function 'FMFR_CHANGE_COMPLETION_FLAG' exporting i_flg_commit = space i_flg_checkonly = p_test i_flg_complete_doc = con_true importing e_count_success = l_count_success e_count_sethead = l_count_sethead tables t_positions = l_t_erlpos exceptions not_found = 1 internal_error = 2 others = 3.
DEQUEUE_ALL call function 'DEQUEUE_ALL'.
MESSAGES_ACTIVE call function 'MESSAGES_ACTIVE' importing max_severity = l_max_severity exceptions others = 1.
SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = l_re1 text = text-110.
BAL_LOG_CREATE call function 'BAL_LOG_CREATE' exporting i_s_log = l_f_log importing e_log_handle = l_log_handle "note1370269 exceptions others = 1.
MESSAGES_GIVE call function 'MESSAGES_GIVE' tables t_mesg = l_t_messages.
BAL_DSP_LOG_DISPLAY call function 'BAL_DSP_LOG_DISPLAY'.
BAL_LOG_MSG_ADD call function 'BAL_LOG_MSG_ADD' exporting i_log_handle = u_log_handle "note1370269 i_s_msg = l_f_msg exceptions log_not_found = 0 others = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.