RM07MLBD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report
If you would like to execute this report or see the full code listing simply enter RM07MLBD into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
MB5B - Stocks for Posting Date
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: ARCHIVE = D .
Selection Text: XCHAR = Only Matls Handled in Batches
Selection Text: WERKS = Plant
Selection Text: SOBKZ = Special Stock Indicator
Selection Text: SBBST = Special Stock
Selection Text: P_VARI = Layout
Selection Text: PA_AISTR = Archive Information Structure
Selection Text: MATNR = Material Number
Selection Text: LGORT = Storage Location
Selection Text: LGBST = Storage Loc./Batch Stock
Selection Text: HKONT = G/L Account
Selection Text: DATUM = Selection Date
Selection Text: CHARG = Batch
Selection Text: BWTAR = Valuation Type
Selection Text: BWBST = Valuated Stock
Selection Text: BWART = Movement Type
Selection Text: BUKRS = Company Code
Title: Stock on Posting Date
Text Symbol: 084 = Without Opening Stock; With Closing Stock
Text Symbol: 085 = With Opening Stock; Without Closing Stock
Text Symbol: 086 = With Opening Stock; With Closing Stock; Changed
Text Symbol: 087 = With Opening Stock; With Closing Stock; Unchanged
Text Symbol: 088 = Note 599218 : Obsolete Parameter Set
Text Symbol: 089 = Also Batches w/o Stock Segment
Text Symbol: 090 = Totals Only - Hierarchical Representation
Text Symbol: 091 = Layout
Text Symbol: 092 = Totals Only - Non-Hierarchical Representation
Text Symbol: 093 = Choose Just One Totals List
Text Symbol: 094 = From Date
Text Symbol: 095 = To Date
Text Symbol: 096 = Opening Stock
Text Symbol: 097 = Total Receipt Qties
Text Symbol: 098 = Total Issue Quantities
Text Symbol: 099 = Closing Stock
Text Symbol: 100 = Opening Value
Text Symbol: 101 = Total Receipt Values
Text Symbol: 102 = Total Issue Values
Text Symbol: 103 = Closing Value
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = c_hdb_dbcon_get EXCEPTIONS function_not_exist = 1 OTHERS = 2.
ME_CHECK_T160M CALL FUNCTION 'ME_CHECK_T160M' "n497992 EXPORTING "n497992 i_arbgb = 'M7' "n497992 i_msgnr = '392' "n497992 EXCEPTIONS "n497992 nothing = 0 "n497992 OTHERS = 1. "n497992
CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = datum-low IMPORTING date_external = d_from EXCEPTIONS date_internal_is_invalid = 1 OTHERS = 2.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = datum-high IMPORTING date_external = d_to EXCEPTIONS date_internal_is_invalid = 1 OTHERS = 2.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n599218 EXPORTING "n599218 text = text-063. "Reading current stocks "n599218
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n599218 EXPORTING "n599218 text = text-064. "Reading MM documents "n599218
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n599218 EXPORTING "n599218 text = text-066. "Calculating Stocks and Values "n599218
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n599218 EXPORTING "n599218 text = text-067. "Calculating Stocks "n599218
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "n599218 EXPORTING "n599218 text = text-065. "Preparing list output "n599218
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_interface_check = g_flag_i_check "n599218 i_callback_program = repid i_callback_pf_status_set = 'STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = layout it_fieldcat = fieldcat[] it_special_groups = gruppen[] it_sort = sorttab[] i_default = 'X' i_save = 'A' is_variant = variante it_events = events[] is_print = g_s_print TABLES t_outtab = g_t_belege1 EXCEPTIONS OTHERS = 2.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' "1790231 EXPORTING "1790231 i_interface_check = g_flag_i_check i_callback_program = repid i_callback_pf_status_set = 'STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = layout it_fieldcat = fieldcat[] it_special_groups = gruppen[] it_sort = sorttab[] i_default = 'X' i_save = 'A' is_variant = variante it_events = events[] is_print = g_s_print TABLES t_outtab = g_t_belege1 EXCEPTIONS OTHERS = 2. "1790231
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_interface_check = g_flag_i_check i_callback_program = repid is_layout = g_s_layout_totals_flat it_fieldcat = g_t_fieldcat_totals_flat[] it_sort = g_t_sorttab i_default = 'X' "allow default variant i_save = 'A' is_variant = g_s_vari_sumfl it_events = g_t_events_totals_flat[] is_print = g_s_print TABLES t_outtab = g_t_totals_flat EXCEPTIONS OTHERS = 1.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' "1790231 EXPORTING "1790231 i_interface_check = g_flag_i_check i_callback_program = repid i_grid_settings = lv_lvc_s_glay is_layout = g_s_layout_totals_flat it_fieldcat = g_t_fieldcat_totals_flat[] it_sort = g_t_sorttab i_default = 'X' "allow default variant i_save = 'A' is_variant = g_s_vari_sumfl it_events = g_t_events_totals_flat[] is_print = g_s_print TABLES t_outtab = g_t_totals_flat EXCEPTIONS OTHERS = 1. "1790231
REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_interface_check = g_flag_i_check i_callback_program = repid it_events = events_hierseq[] is_layout = g_s_layout_totals_hq is_print = g_s_print it_fieldcat = g_t_fieldcat_totals_hq it_sort = g_t_sort_totals_hq i_default = 'X' i_save = 'A' is_variant = g_s_vari_sumhq i_tabname_header = 'G_T_TOTALS_HEADER' i_tabname_item = 'G_T_TOTALS_ITEM' is_keyinfo = g_s_keyinfo_totals_hq TABLES t_outtab_header = g_t_totals_header[] t_outtab_item = g_t_totals_item[] EXCEPTIONS OTHERS = 1.
MMIM_ENTRYCHECK_MAIN CALL FUNCTION 'MMIM_ENTRYCHECK_MAIN' TABLES it_matnr = matnr it_werks = werks it_lgort = lgort it_bwart = bwart it_bukrs = bukrs.
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = variant_save CHANGING cs_variant = def_variante.
ME_CHECK_T160M CALL FUNCTION 'ME_CHECK_T160M' "n599218 EXPORTING "n599218 i_arbgb = 'M7' "n599218 i_msgnr = '393' "n599218 EXCEPTIONS "n599218 nothing = 0 "n599218 OTHERS = 1. "n599218
REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = 'A' CHANGING cs_variant = ls_vari.
ME_CHECK_T160M CALL FUNCTION 'ME_CHECK_T160M' "n599218 EXPORTING "n599218 i_arbgb = 'M7' "n599218 i_msgnr = '393' "n599218 EXCEPTIONS "n599218 nothing = 0 "n599218 OTHERS = 1. "n599218
REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = variant_save CHANGING cs_variant = ls_vari_def EXCEPTIONS not_found = 2.
REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = ls_vari i_save = 'A' * it_default_fieldcat = IMPORTING e_exit = variant_exit es_variant = ls_vari_return EXCEPTIONS not_found = 2.
MB_CONTROL_MOVETYPE_GET CALL FUNCTION 'MB_CONTROL_MOVETYPE_GET' EXPORTING i_bwart = k2-bwart TABLES te_st156s_tab = t_st156s EXCEPTIONS inconsistent_entries = 1 no_entries_found = 2 OTHERS = 3.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "n1604106 EXPORTING "n1604106 input = l_value "n1604106 IMPORTING "n1604106 output = l_value. "n1604106
REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_zebra = 'X' i_tabname = 'LT_SEL' it_fieldcat = lt_fc IMPORTING es_selfield = ls_selfield TABLES t_outtab = lt_sel.
MIGO_DIALOG CALL FUNCTION 'MIGO_DIALOG' "n547170 EXPORTING "n547170 i_action = 'A04' "n547170 i_refdoc = 'R02' "n547170 i_notree = 'X' "n547170 i_no_auth_check = ' ' "n547170 i_deadend = 'X' "n547170 i_skip_first_screen = 'X' "n547170 i_okcode = 'OK_GO' "n547170 i_mblnr = ls_sel-mblnr "n547170 i_mjahr = ls_sel-mjahr "n547170 i_zeile = ls_sel-zeile. "n547170
DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "n599218
DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' "n599218 A EXPORTING "n599218 A tabname = g_f_dcobjdef_name "n599218 A TABLES "n599218 A x031l_tab = g_t_x031l "n599218 A EXCEPTIONS "n599218 A OTHERS = 1. "n599218 A
DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' "n599218 A EXPORTING "n599218 A tabname = g_f_dcobjdef_name "n599218 A TABLES "n599218 A x031l_tab = g_t_x031l "n599218 A EXCEPTIONS "n599218 A OTHERS = 1. "n599218 A
DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "n1481757
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 RM07MLBD or its description.