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

RM07MTRB SAP ABAP Report - Display Stock in Transit







RM07MTRB is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Display Stock in Transit This report outputs a list with 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 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

MB5T - Stock in transit CC


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. "Basic submit
SUBMIT RM07MTRB AND RETURN. "Return to original report after report execution complete
SUBMIT RM07MTRB 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: BERID = Receiving MRP Area
Selection Text: BUKRS = Receiving Plant Company Code
Selection Text: LGORT = Receiving Storage Location
Selection Text: RESBI = Issuing MRP Area
Selection Text: RESLO = Issuing Storage Location
Selection Text: RESWK = Issuing Plant
Selection Text: WERKS = Receiving Plant
Selection Text: XELIK = Incl. POs w. Del. Cmpl. Status
Selection Text: XKSIT = Valuated in Issuing Plant
Selection Text: XLOEK = Incl. Deleted Purchase Orders
Selection Text: XNLCC = Cross-Company-Code
Selection Text: XSPER = Incl. Blocked Purchase Orders
Selection Text: XTRAM = Stock Transfer Orders
Selection Text: ALV_DEF = D .
Selection Text: MATNR = D .
Selection Text: SOBKZ = D .
Title: Display Stock in Transit
Text Symbol: 001 = Database Selections
Text Symbol: 002 = Display Options


INCLUDES used within this REPORT RM07MTRB

INCLUDE RM07ALVI.


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:

GET_R3_EXTENSION_SWITCH CALL FUNCTION 'GET_R3_EXTENSION_SWITCH' EXPORTING i_structure_package = 'EA-DFPS' IMPORTING e_active = gv_dfps_active EXCEPTIONS not_existing = 1 object_not_existing = 2 no_extension_object = 3 OTHERS = 4.

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

MB_ADD_TRANSFER_QUANTITY CALL FUNCTION 'MB_ADD_TRANSFER_QUANTITY' EXPORTING cumulate = ' ' i_cross_company = xnlcc i_non_cross_company = xtram TABLES xmatnr = matnr xwerks = werks xreswk = reswk xsobkz = sobkz xelikz = elikz xloekz = loekz xtab6 = xtab6 EXCEPTIONS OTHERS = 1.

MB_ADD_TRANSFER_QUANTITY CALL FUNCTION 'MB_ADD_TRANSFER_QUANTITY' EXPORTING cumulate = ' ' i_cross_company = xnlcc i_non_cross_company = xtram TABLES xmatnr = matnr xberid = berid xwerks = werks xlgort = lgort xresbi = resbi xreswk = reswk xreslo = reslo xsobkz = sobkz xelikz = elikz xloekz = loekz xtab6 = xtab6 EXCEPTIONS OTHERS = 1.

ME_EKPV_ARRAY_READ CALL FUNCTION 'ME_EKPV_ARRAY_READ' * EXPORTING * PI_BYPASSING_BUFFER = * PI_REFRESH_BUFFER = TABLES pti_ekpv_key = lt_ekpo_key pto_ekpv = lt_ekpv EXCEPTIONS no_records_found = 1 error_message = 98 OTHERS = 99.

SHP_SIT_SCHEDULE_LINE_CAT_DET CALL FUNCTION 'SHP_SIT_SCHEDULE_LINE_CAT_DET' EXPORTING iv_matnr = wa_ekpo-matnr iv_werks = -reswk iv_lgort = wa_ekpo-lgort iv_berid = wa_ekpo-berid iv_lfart = wa_ekpo-lfret iv_vkorg = ls_ekpv-vkorg iv_vtweg = ls_ekpv-vtweg IMPORTING ev_ettyp = lv_ettyp EXCEPTIONS material_not_found = 1 item_category_not_found = 2 schedule_line_cat_not_found = 3 OTHERS = 4.

SIT_INFO_GET CALL FUNCTION 'SIT_INFO_GET' EXPORTING iv_ettyp = lv_ettyp IMPORTING ev_sit_flag = lv_sit_flag.

MB_ADD_VAL_BLOCKED_GR_STOCK CALL FUNCTION 'MB_ADD_VAL_BLOCKED_GR_STOCK' EXPORTING I_LOEKZ = 'X' I_WI_ST = 'X' I_NO_ST = 'X' I_KNTTP = 'X' I_CONDENSE = ' ' I_WIORA = 'X' I_NOORA = 'X' I_WITHB = 'X' TABLES T_RA_MATNR = matnr T_RA_WERKS = werks t_ra_ebeln = lt_ebeln "n_1781892 t_ra_ebelp = lt_ebelp "n_1781892 t_result = lt_result EXCEPTIONS PARAMETER_ERROR = 1 MISSING_AUTHORIZATION = 2 OTHERS = 3.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = alv_repid i_callback_pf_status_set = 'SET_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = alv_layout it_fieldcat = fieldcat[] i_default = 'X' i_save = 'A' is_variant = alv_variant i_tabname_header = 'HEADER' i_tabname_item = 'BESTAND' is_keyinfo = alv_keyinfo is_print = alv_print TABLES t_outtab_header = header t_outtab_item = bestand.

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



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