RM07MMFI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for &PURPOSE& This report compares the totals of the values from the material masters with the balances of the assigned stock accounts...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 RM07MMFI 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: SO_AEDAT = Start Date
Selection Text: PRE_YEAR = Previous Year
Selection Text: PRE_PERI = Previous Period
Selection Text: PP_YEAR = Year Before Last
Selection Text: CURRENT = Current Period
Selection Text: COMPCODE = Company Code
Title: MM/FI balance comparison
Text Symbol: 262 = Period closing during runtime
Text Symbol: 261 = previously not found
Text Symbol: 260 = Postings during runtime
Text Symbol: 258 = No suitable results found
Text Symbol: 254 = No
Text Symbol: 253 = Yes
Text Symbol: 252 = Are you sure you want to delete the selected results?
Text Symbol: 251 = Confirmation Prompt
Text Symbol: 223 = Parameters for MM-FI Balance Comparison
Text Symbol: 222 = Overview of Existing Results
Text Symbol: 221 = Non-Hierarchical Representation
Text Symbol: 220 = Hierarchical Representation
Text Symbol: 219 = Complete List
Text Symbol: 218 = Layout
Text Symbol: 217 = Save Results of This Run
Text Symbol: 216 = Show Groupable Company Codes
Text Symbol: 215 = Parameters for Display of Existing Results
Text Symbol: 263 = Postings
Text Symbol: 264 = Sequence Number
Text Symbol: 265 = Period Checked
Text Symbol: 267 = Results saved in INDX
Text Symbol: 268 = Of
Text Symbol: 269 = Results deleted from INDX
Text Symbol: 270 = Error saving results
Text Symbol: 271 = Valuation Areas
Text Symbol: 272 = Description: see report documentation
Text Symbol: 273 = Data of this period being processed
Text Symbol: 275 = Start Date
Text Symbol: 276 = Start Time
Text Symbol: 277 = End Date
Text Symbol: 278 = End Time
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FCML2_FOR_ALL_SKC1A CALL FUNCTION 'FCML2_FOR_ALL_SKC1A' EXPORTING xbukrs = ls_balance-bukrs xsaknr = ls_balance-account TABLES xskc1a = lt_skc1 EXCEPTIONS key_incomplete = 1 not_authorized = 2 not_found = 3 OTHERS = 4.
FOR_ALL_SKC1A CALL FUNCTION 'FOR_ALL_SKC1A' EXPORTING xbukrs = ls_balance-bukrs xsaknr = ls_balance-account TABLES xskc1a = lt_skc1 EXCEPTIONS key_incomplete = 1 not_authorized = 2 not_found = 3 OTHERS = 4.
ME_CHECK_T160M CALL FUNCTION 'ME_CHECK_T160M' EXPORTING i_arbgb = 'M7' i_msgnr = '393' EXCEPTIONS nothing = 0 OTHERS = 1.
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = 'A' CHANGING cs_variant = ls_variant.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-251 "security pop-up text_question = text-252 * text-252 : Do you really want to delete these results? text_button_1 = text-253 "yes icon_button_1 = 'ICON_OKAY' text_button_2 = text-254 "no icon_button_2 = 'ICON_CANCEL' default_button = '2' display_cancel_button = ' ' IMPORTING answer = l_flag_answer EXCEPTIONS OTHERS = 1.
REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' "show Groups hsq EXPORTING i_interface_check = g_flag_interface_check i_callback_program = g_f_repid is_layout = l_s_layout it_fieldcat = l_t_fc it_sort = l_t_sort it_events = l_t_events i_tabname_header = 'G_T_GROUP_HEADER' i_tabname_item = 'G_T_GROUP_ITEM' is_keyinfo = l_s_keyinfo is_print = g_s_print TABLES t_outtab_header = g_t_group_header t_outtab_item = g_t_group_item EXCEPTIONS OTHERS = 1.
REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' "complete list hsq EXPORTING i_interface_check = g_flag_interface_check i_callback_program = g_f_repid is_layout = l_s_layout it_fieldcat = g_t_fc_hsq it_sort = l_t_sort it_events = g_t_events_hsq i_default = 'X' i_save = 'A' is_variant = g_s_vari_hsq i_tabname_header = 'G_T_HEADER' i_tabname_item = 'G_T_ITEM' is_keyinfo = l_s_keyinfo is_print = g_s_print TABLES t_outtab_header = g_t_header t_outtab_item = g_t_item EXCEPTIONS OTHERS = 1.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_f_repid it_events = g_t_events_flt it_fieldcat = g_t_fc_flt it_sort = l_t_sort i_default = 'X' is_variant = g_s_vari_flt i_save = 'A' is_layout = l_s_layout is_print = g_s_print TABLES t_outtab = g_t_item EXCEPTIONS OTHERS = 1.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' " complete list flat EXPORTING i_interface_check = g_flag_interface_check i_callback_program = g_f_repid it_events = g_t_events_flt it_fieldcat = g_t_fc_flt it_sort = l_t_sort i_default = 'X' is_variant = g_s_vari_flt i_save = 'A' is_layout = l_s_layout is_print = g_s_print TABLES t_outtab = g_t_item EXCEPTIONS OTHERS = 1.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' " overview list flat EXPORTING i_callback_program = g_f_repid it_events = g_t_events_sht it_fieldcat = g_t_fc_sht it_sort = l_t_sort i_default = 'X' is_variant = g_s_vari_sht i_save = 'A' is_layout = l_s_layout is_print = g_s_print TABLES t_outtab = g_t_sht EXCEPTIONS OTHERS = 1.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' " overview list flat EXPORTING i_interface_check = g_flag_interface_check i_callback_program = g_f_repid it_events = g_t_events_sht it_fieldcat = g_t_fc_sht it_sort = l_t_sort i_default = 'X' is_variant = g_s_vari_sht i_save = 'A' is_layout = l_s_layout is_print = g_s_print TABLES t_outtab = g_t_sht EXCEPTIONS OTHERS = 1.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_f_repid it_events = g_t_events_detail it_fieldcat = g_t_fc_detail it_sort = l_t_sort i_default = 'X' is_variant = g_s_vari_detail i_save = 'A' is_layout = l_s_layout is_print = g_s_print TABLES t_outtab = g_t_detail_alv EXCEPTIONS OTHERS = 1.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' " detail list flat EXPORTING i_interface_check = g_flag_interface_check i_callback_program = g_f_repid it_events = g_t_events_detail it_fieldcat = g_t_fc_detail it_sort = l_t_sort i_default = 'X' is_variant = g_s_vari_detail i_save = 'A' is_layout = l_s_layout is_print = g_s_print TABLES t_outtab = g_t_detail_alv EXCEPTIONS OTHERS = 1.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = g_t_end_of_list.
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ls_variant i_save = 'A' IMPORTING e_exit = l_flag_exit es_variant = ls_variant_f4 EXCEPTIONS OTHERS = 2.
CALL FUNCTION 'DB_COMMIT'.
FCML2_FOR_ALL_SKC1A CALL FUNCTION 'FCML2_FOR_ALL_SKC1A' EXPORTING xbukrs = l_bukrs xsaknr = l_account TABLES xskc1a = l_t_skc1 EXCEPTIONS OTHERS = 4.
FOR_ALL_SKC1A CALL FUNCTION 'FOR_ALL_SKC1A' EXPORTING xbukrs = l_bukrs xsaknr = l_account TABLES xskc1a = l_t_skc1 EXCEPTIONS OTHERS = 4.
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = ls_variant_def EXCEPTIONS not_found = 2.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = c_hdb_dbcon_get EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.
ENQUEUE_EMMARCE CALL FUNCTION 'ENQUEUE_EMMARCE' EXPORTING matnr = l_s_lock-matnr werks = l_s_lock-werks EXCEPTIONS OTHERS = 2.
DEQUEUE_EMMARCE CALL FUNCTION 'DEQUEUE_EMMARCE' EXPORTING matnr = l_s_lock-matnr werks = l_s_lock-werks.
KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING LS_DETAIL = LS_DETAIL LS_WITEM = LS_WITEM IMPORTING LS_KEY = GS_KEY.
KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING LS_KEY = GS_KEY LS_SCMA_EVENT = LS_SCMA_EVENT CHANGING LD_APLSTAT = LD_APLSTAT EXCEPTIONS NO_ID_GIVEN = 1 OTHERS = 2.
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 RM07MMFI or its description.