SAP Reports / Programs

RM07MMFI SAP ABAP Report - MM/FI balance comparison







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


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 RM07MMFI. "Basic submit
SUBMIT RM07MMFI AND RETURN. "Return to original report after report execution complete
SUBMIT RM07MMFI 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: 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





Text Symbol: 280 = Difference Material Values
Text Symbol: 281 = See SAP Note 1875415
Text Symbol: 895 = Error during INSERT in table MMIM_RE_PRINT
Text Symbol: 001 = Company code
Text Symbol: 002 = Period
Text Symbol: 003 = Currency
Text Symbol: 004 = G/L Acct
Text Symbol: 005 = Value of materials
Text Symbol: 006 = Value of G/L account
Text Symbol: 007 = Variance
Text Symbol: 008 = Total
Text Symbol: 100 = Valuation area & does not exist
Text Symbol: 101 = Company code & does not exist for valuation area &
Text Symbol: 102 = Transaction BSX does not exist in chart of accounts &
Text Symbol: 103 = Valuation grouping & of valuation area & deleted for chart of accounts &
Text Symbol: 104 = Valuation class & in valuation area & deleted for chart of accounts &
Text Symbol: 105 = Account determination not possible for chart of accounts & / valuation grpg & / valuation class &
Text Symbol: 106 = Transaction BSX in chart of accounts & allows account grouping
Text Symbol: 107 = Varying accounts for chart of accounts & / valuation grpg & / val. class &
Text Symbol: 108 = Value & & in segment (& / &)
Text Symbol: 109 = Account & in company code & cannot be read
Text Symbol: 110 = Company code & does not have a material administration record
Text Symbol: 111 = Error
Text Symbol: 112 = Warning messages
Text Symbol: 113 = Messages
Text Symbol: 114 = No authorization for account & in company code &
Text Symbol: 115 = Valuation area
Text Symbol: 116 = Valuation class
Text Symbol: 117 = Total materials
Text Symbol: 118 = No company code found in the selection
Text Symbol: 120 = Period
Text Symbol: 121 = Current period
Text Symbol: 122 = Previous period
Text Symbol: 123 = Previous year
Text Symbol: 124 = Year before last
Text Symbol: 125 = Started
Text Symbol: 126 = Completed
Text Symbol: 127 = Version
Text Symbol: 201 = The stocks for the chosen period cannot be determined in company code &





Text Symbol: 202 = Company code &: Material values incomplete if valuated special stock (EBEW/QBEW/OBEW) is being used
Text Symbol: 211 = Database Selection
Text Symbol: 212 = Functions and Layouts
Text Symbol: 213 = Perform MM-FI Balance Comparison
Text Symbol: 214 = Display Existing Results


INCLUDES used within this REPORT RM07MMFI

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:

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.

DB_COMMIT



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.



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