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

MB_MRMIS SAP ABAP INCLUDE - MBMRMIS







MB_MRMIS is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter MB_MRMIS 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 MB_MRMIS. "Basic submit
SUBMIT MB_MRMIS AND RETURN. "Return to original report after report execution complete
SUBMIT MB_MRMIS VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT MB_MRMIS

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:

MMPUR_EKBE_READ_EBELN_EBELP CALL FUNCTION 'MMPUR_EKBE_READ_EBELN_EBELP' EXPORTING pi_ebeln = i_ebeln pi_ebelp = i_ebelp TABLES pto_ekbe_po = tab_ekbe EXCEPTIONS no_records_requested = 1 OTHERS = 2.

MMPUR_EKBZ_READ_EBELN_EBELP CALL FUNCTION 'MMPUR_EKBZ_READ_EBELN_EBELP' EXPORTING pi_ebeln = i_ebeln pi_ebelp = i_ebelp TABLES pto_ekbz_po = tab_ekbz EXCEPTIONS no_records_requested = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datlo foreign_amount = e_arewr foreign_currency = i_t001_curr_waers local_currency = i_t001_hist_waers IMPORTING local_amount = f_hist_amount_1 EXCEPTIONS OTHERS = 4.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datlo foreign_amount = f_curr_amount foreign_currency = i_t001_curr_waers local_currency = i_t001_hist_waers IMPORTING local_amount = f_hist_amount_2 EXCEPTIONS OTHERS = 4.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datlo foreign_amount = e_wewrt foreign_currency = i_t001_curr_waers local_currency = i_t001_hist_waers IMPORTING local_amount = e_wewrt EXCEPTIONS OTHERS = 4.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datlo foreign_amount = e_arewr foreign_currency = i_t001_curr_waers local_currency = i_t001_hist_waers IMPORTING local_amount = e_arewr EXCEPTIONS OTHERS = 4.

ME_EKPO_SINGLE_READ CALL FUNCTION 'ME_EKPO_SINGLE_READ' EXPORTING pi_ebeln = i_ebeln pi_ebelp = i_ebelp IMPORTING po_ekpo = s_ekpo EXCEPTIONS no_records_found = 1 OTHERS = 2.

ME_EKKO_SINGLE_READ CALL FUNCTION 'ME_EKKO_SINGLE_READ' EXPORTING pi_ebeln = i_ifcreate-ebeln IMPORTING po_ekko = s_ekko EXCEPTIONS no_records_found = 1 OTHERS = 2.

ME_EKPO_SINGLE_READ CALL FUNCTION 'ME_EKPO_SINGLE_READ' EXPORTING pi_ebeln = i_ifcreate-ebeln pi_ebelp = i_ifcreate-ebelp IMPORTING po_ekpo = s_ekpo EXCEPTIONS no_records_found = 1 OTHERS = 2.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = i_ifcreate-budat foreign_amount = i_ifcreate-wrbtr foreign_currency = i_ifcreate-waers local_currency = f_t001_curr_waers rate = i_ifcreate-kursf IMPORTING local_amount = f_salk3 EXCEPTIONS error_message = 4.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = i_ifcreate-budat foreign_amount = i_ifcreate-wrbtr foreign_currency = i_ifcreate-waers local_currency = f_t001_curr_waers rate = i_ifcreate-kursf IMPORTING local_amount = f_dmbtr EXCEPTIONS error_message = 4.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING date = sy-datlo foreign_amount = f_dmbtr foreign_currency = f_t001_curr_waers local_currency = f_t001_hist_waers IMPORTING local_amount = f_dmbtr EXCEPTIONS OTHERS = 4.

MRM_DBTAB_T169P_READ CALL FUNCTION 'MRM_DBTAB_T169P_READ' EXPORTING i_bukrs = i_ifcreate-bukrs IMPORTING e_t169p = s_t169p EXCEPTIONS entry_not_found = 1 OTHERS = 2.

MR_STRING_DETERMINE CALL FUNCTION 'MR_STRING_DETERMINE' EXPORTING i_knttp = i_ifcreate-knttp i_koart = i_ifcreate-koart i_pstyp = i_ifcreate-pstyp i_vgart = c_vgart i_xekbz = i_ifcreate-xekbz i_kzbws = s_ekpo-kzbws i_tbtkz = i_ifcreate-tbtkz IMPORTING e_bustw = e_bustw EXCEPTIONS error_message = 4.

SMBEW_REFRESH CALL FUNCTION 'SMBEW_REFRESH'.

SMBEW_FILL CALL FUNCTION 'SMBEW_FILL' EXPORTING i_smbew = i_smbew.

MR_POSTING_GENERATE CALL FUNCTION 'MR_POSTING_GENERATE' EXPORTING i_bustw = i_bustw i_sgnbu = i_sgnbu TABLES t_t169c = t_t169c EXCEPTIONS function_not_defined = 1 OTHERS = 2.

CHANGEDOCUMENT_READ CALL FUNCTION 'CHANGEDOCUMENT_READ' EXPORTING date_of_change = i_cpudt objectclass = c_objectclass objectid = f_objectid tablekey = f_tablekey tablename = f_tablename time_of_change = i_cputm TABLES editpos = tab_editpos EXCEPTIONS OTHERS = 4.

FI_PERIOD_DETERMINE





CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = i_budat i_bukrs = i_bukrs IMPORTING e_gjahr = f_gjahr e_monat = f_monat EXCEPTIONS error_message = 4.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = i_cpudt i_bukrs = i_bukrs IMPORTING e_gjahr = s_marv-lfgja e_monat = s_marv-lfmon EXCEPTIONS error_message = 4.

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' EXPORTING t1 = s_marv-lfmon t2 = s_marv-lfgja t3 = '/' t4 = s_marv-vjmon t5 = s_marv-vjgja IMPORTING message = f_text.

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' EXPORTING t1 = s_marv-lfmon t2 = s_marv-lfgja t3 = '/' t4 = s_marv-vmmon t5 = s_marv-vmgja t6 = '/' t7 = s_marv-vjmon t8 = s_marv-vjgja IMPORTING message = f_text.

T001_READ CALL FUNCTION 'T001_READ' EXPORTING bukrs = i_bukrs IMPORTING struct = s_t001 EXCEPTIONS no_entry = 1 OTHERS = 2.

T001K_READ CALL FUNCTION 'T001K_READ' EXPORTING bwkey = s_ifcreate-bwkey IMPORTING struct = s_t001k EXCEPTIONS error_message = 4.

MRM_BSX_POSTING_RESTORE * CALL FUNCTION 'MRM_BSX_POSTING_RESTORE' * EXPORTING * i_belnr = i_belnr * i_gjahr = i_gjahr * i_buzei = s_itemkey-buzei * i_koart = s_itemkey-koart * IMPORTING * e_dmbtr = f_dmbtr.

FI_DOCUMENT_TYPE_DATA CALL FUNCTION 'FI_DOCUMENT_TYPE_DATA' EXPORTING i_blart = i_blart IMPORTING e_t003 = s_t003 EXCEPTIONS error_message = 4.

FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING i_budat = i_vbdatum i_bukrs = i_bukrs IMPORTING e_gjahr = f_gjahr e_monat = f_monat EXCEPTIONS error_message = 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 MB_MRMIS or its description.