SAP Reports / Programs

RM07MTRB_DATE SAP ABAP Report - Display Stock in Transit on Key Date







RM07MTRB_DATE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Display of Stock in Transit This report issues a list containing all stocks that are located in a plant's 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 RM07MTRB_DATE 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

MB5TD - Stock in Transit on Key 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 RM07MTRB_DATE. "Basic submit
SUBMIT RM07MTRB_DATE AND RETURN. "Return to original report after report execution complete
SUBMIT RM07MTRB_DATE 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: BUKRS = Receiving Plant Company Code
Selection Text: RESWK = Supplying Plant
Selection Text: WERKS = Receiving Plant
Selection Text: XELIK = Incl. POs w. Del. Cmpl. Status
Selection Text: XLOEK = Incl. Deleted Purchase Orders
Selection Text: XNLCC = Cross-CC Stock Transp. Orders
Selection Text: XSPER = Incl. Blocked Purchase Orders
Selection Text: XTRAM = Intra-CC Stock Transp. Orders
Selection Text: MATNR = D .
Selection Text: SOBKZ = D .
Title: Display Stock in Transit on Key Date
Text Symbol: 001 = Database Selections
Text Symbol: 002 = Display Options
Text Symbol: 003 = Scope of List
Text Symbol: 895 = Error on INSERT in table MMIM_REP_PRINT


INCLUDES used within this REPORT RM07MTRB_DATE

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:

MMIM_ENTRYCHECK_MAIN CALL FUNCTION 'MMIM_ENTRYCHECK_MAIN' TABLES it_matnr = matnr it_werks = werks it_bukrs = bukrs it_reswk = reswk it_sobkz = sobkz.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING I_INTERFACE_CHECK = g_flag_INTERFACE_CHECK i_callback_program = g_f_repid IT_EVENTS = g_T_EVENTS_1 is_layout = gs_layout it_fieldcat = g_t_fieldcat_hsq i_default = 'X' i_save = 'A' is_variant = gs_variant_hsq i_tabname_header = 'G_T_HEADER' i_tabname_item = 'G_T_BESTAND' is_keyinfo = alv_keyinfo is_print = gs_print TABLES t_outtab_header = g_t_header t_outtab_item = g_t_bestand EXCEPTIONS OTHERS = 2.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = g_s_bestand-ebeln i_enjoy = 'X' EXCEPTIONS not_found = 1 no_authority = 2 invalid_call = 3 OTHERS = 4.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_f_repid it_events = g_t_events_2 it_fieldcat = l_t_fc_detail i_default = 'X' is_variant = gs_variant_flt i_save = 'A' is_layout = gs_layout is_print = gs_print TABLES t_outtab = g_t_bestand.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' " flat list EXPORTING I_INTERFACE_CHECK = g_flag_INTERFACE_CHECK i_callback_program = g_f_repid it_events = g_t_events_2 it_fieldcat = l_t_fc_detail i_default = 'X' is_variant = gs_variant_flt i_save = 'A' is_layout = gs_layout is_print = gs_print TABLES t_outtab = g_t_bestand.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' "Sums EXPORTING i_callback_program = g_f_repid it_events = g_t_events_sum it_fieldcat = l_t_fc_sum i_default = 'X' is_variant = gs_variant_sum i_save = 'A' is_layout = gs_layout is_print = gs_print TABLES t_outtab = g_t_header[].

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' " sums EXPORTING I_INTERFACE_CHECK = g_flag_INTERFACE_CHECK i_callback_program = g_f_repid it_events = g_t_events_sum it_fieldcat = l_t_fc_sum i_default = 'X' is_variant = gs_variant_sum i_save = 'A' is_layout = gs_layout is_print = gs_print TABLES t_outtab = g_t_header[].

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING DATE = sy-datlo FOREIGN_AMOUNT = l_s_ztab3-netwr FOREIGN_CURRENCY = l_s_ztab3-bwaer LOCAL_CURRENCY = l_s_ztab3-waers RATE = g_s_xmdbs-wkurs IMPORTING LOCAL_AMOUNT = l_s_ztab3-dmbtr.

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.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

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.

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.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = l_ddobjname state = 'A' langu = sy-langu IMPORTING dd04v_wa = l_dd04v_wa.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



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