SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RM07MLBD SAP ABAP Report - Stock on Posting Date







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 Stock for posting date lists a company's own stocks in a particular time period (earliest date 0h00, latest date 24h00)...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 RM07MLBD into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MB5B - Stocks for Posting Date


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





Text Symbol: 104 = Quantities
Text Symbol: 105 = Values
Text Symbol: 111 = Specification of Database Access for Best Runtime
Text Symbol: 112 = Database Determines Optimum Access
Text Symbol: 113 = Start Off with Material Number
Text Symbol: 114 = Start Off with Selection Date
Text Symbol: 115 = Database access does not match selections
Text Symbol: 120 = Category
Text Symbol: 131 = Access to Archive
Text Symbol: 132 = Display Existing (Incomplete) Data?
Text Symbol: 133 = Y
Text Symbol: 134 = No
Text Symbol: 135 = Read MM Docs in Archive
Text Symbol: 136 = Read Arch. Info Recs
Text Symbol: 137 = Error Reading Archive
Text Symbol: 040 = Display Options
Text Symbol: 031 = Total/Value of Issues
Text Symbol: 030 = Total/Val. of Receipts
Text Symbol: 026 = No Reversal Movements
Text Symbol: 025 = Valuation Area
Text Symbol: 024 = Plant Description
Text Symbol: 023 = Batch
Text Symbol: 022 = Description
Text Symbol: 021 = Material
Text Symbol: 020 = Plant
Text Symbol: 019 = Ttls Only
Text Symbol: 018 = Non-Changed Stocks Only
Text Symbol: 017 = Changed Stocks Only
Text Symbol: 016 = Only Materials with Stock or Goods Movements
Text Symbol: 015 = Only Matls Handled in Batches
Text Symbol: 012 = Special Stock
Text Symbol: 011 = Valuated Stock
Text Symbol: 010 = Storage Loc./Batch Stock
Text Symbol: 008 = Stock/Value on
Text Symbol: 007 = Stock on
Text Symbol: 006 = Total Issues
Text Symbol: 005 = Total Receipts
Text Symbol: 004 = Description
Text Symbol: 003 = List Scope





Text Symbol: 002 = Stock Type
Text Symbol: 001 = Database Selections
Text Symbol: 050 = Movement Data
Text Symbol: 083 = Without Opening Stock; Without Closing Stock
Text Symbol: 082 = @0H\Q@ Category
Text Symbol: 081 = @0E\Q@ Category
Text Symbol: 076 = List Output with Print Function Is Without Page Numbering
Text Symbol: 075 = Restriction According to Plant is Reset
Text Symbol: 074 = Valuation Area = Company Code:
Text Symbol: 073 = Materials Without Movements
Text Symbol: 072 = Materials with Movements
Text Symbol: 069 = Opening Stock = Closing Stock <> Zero
Text Symbol: 068 = Settings
Text Symbol: 067 = Calculate Stocks
Text Symbol: 066 = Calculate Stocks and Values
Text Symbol: 065 = Prepare List Output
Text Symbol: 064 = Read MM Documents
Text Symbol: 063 = Read Current Stocks
Text Symbol: 062 = End of the List
Text Symbol: 061 = Read FI Documents
Text Symbol: 060 = Attention : Material is Tied Empties Stock
Text Symbol: 058 = Others
Text Symbol: 057 = Productn
Text Symbol: 056 = Sales
Text Symbol: 055 = Purch.
Text Symbol: 054 = Acct Assgt
Text Symbol: 053 = Organization
Text Symbol: 052 = Dates
Text Symbol: 051 = Stock


INCLUDES used within this REPORT RM07MLBD

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:

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.

CONVERT_DATE_TO_EXTERNAL



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



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