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

FM07MFM0 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

MB_READ_MATERIAL_STOCKS CALL FUNCTION 'MB_READ_MATERIAL_STOCKS' EXPORTING mtcom = mtcom trtyp = m-trtyp xneup = fcausw-xneup xaenp = fcausw-xaenp mbequ = mbequ shkzg = m-shkzg xenqu = m-xenqu kzdzv = kzdzv mkpf = mkpf xmbwl = xmbwl mbval = mbval xwert = xwert inventur = inventur refresh = x i_xmigo = xmigo "note 355255 IMPORTING mbefu = mbefu mtcor = mtcor mtper = mtper TABLES x156m = x156m x156w = x156w xstru = xstru xmchb = xmchb xmard = xmard xmarc = xmarc xmkol = xmkol xmsku = xmsku xmslb = xmslb xmska = xmska xmspr = xmspr xmstb = xmstb xmste = xmste xmstq = xmstq CHANGING dm07m = dm07m vm07m = vm07m mseg = mseg.

MD_MRP_AREA_GET CALL FUNCTION 'MD_MRP_AREA_GET' EXPORTING i_matnr = m-matnr i_werks = m-werks i_lgort = l_lgort "687755 i_sobkz = m-sobkz "690257 i_lbear = m-lifnr "690257 IMPORTING e_db_mdlv = ls_mdlv EXCEPTIONS wrong_parameters = 1 OTHERS = 2.

ME_CHECK_CHARGEABLE_INFO CALL FUNCTION 'ME_CHECK_CHARGEABLE_INFO' "kaz EXPORTING "kaz matnr = mtcom-matnr "kaz lifnr = mtcom-lifnr "kaz werks = mtcom-werks "kaz IMPORTING "kaz component_type = pxobew "kaz EXCEPTIONS "kaz OTHERS = 4. "kaz

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' "kaz EXPORTING "kaz schluessel = mtcom "kaz IMPORTING "kaz return = obew_mtcor "kaz matper = mtper . "kaz

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = ls_mtcom IMPORTING matdaten = ls_mbew return = ls_mtcor.

MB_READ_SPECIAL_STOCK_VALUES CALL FUNCTION 'MB_READ_SPECIAL_STOCK_VALUES' EXPORTING mtcom = mtcom mtcor = mtcor kzbws = m-kzbws sobkz = m-sobkz xmbew = kmbew kzbaa = kzbaa mbefu_kzbaa = mbefu-kzbaa vm07m_kzbaa = vm07m-kzbaa _mbefu = mbefu "note 171992 IMPORTING embew = kmbew emtcom = mtcom emtcor = mtcor embefu_kzbaa = mbefu_kzbaa evm07m_kzbaa = vm07m_kzbaa evmbkl = evmbkl.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor matper = mtper.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbew return = mtcor matper = mtper.

MB_INITIALIZE_VALUE_DATA CALL FUNCTION 'MB_INITIALIZE_VALUE_DATA' EXPORTING sobkz = m-sobkz imbew = mbew IMPORTING mbew = mbew.

MARM_GENERIC_READ_WITH_MATNR CALL FUNCTION 'MARM_GENERIC_READ_WITH_MATNR' EXPORTING matnr = mbefu-matnr TABLES marm_tab = lt_marm EXCEPTIONS not_found = 4 OTHERS = 8.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'LB' i_msgnr = '172' i_msgv1 = mbefu-matnr i_msgv2 = mbefu-bwkey i_output = x.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbew return = mtcor matper = mtper.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbew return = mtcor matper = mtper.

MB_INITIALIZE_VALUE_DATA CALL FUNCTION 'MB_INITIALIZE_VALUE_DATA' EXPORTING sobkz = m-sobkz imbew = mbew IMPORTING mbew = mbew.

MB_READ_BATCH_VALUATION_TYPE CALL FUNCTION 'MB_READ_BATCH_VALUATION_TYPE' EXPORTING mbequ = tcurm-mbequ matnr = mbefu-matnr werks = m-werks charg = m-charg zeile = mseg-zeile TABLES xmcha = xmcha CHANGING bwtar = bwt.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' "note 207532 EXPORTING "note 207532 schluessel = mtcom "note 207532 IMPORTING "note 207532 matdaten = mbew "note 207532 return = mtcor "note 207532 matper = mtper. "note 207532

VB_BATCH_READ_BUFFER_DB CALL FUNCTION 'VB_BATCH_READ_BUFFER_DB' "note 418462 EXPORTING "note 418462 matnr = m-matnr "note 418462 charg = m-charg "note 418462 werks = m-werks "note 418462 read_from_db = x "note 418462 IMPORTING "note 418462 mcha_db = ls_mcha. "note 418462

MB_READ_BATCH_VALUATION_TYPE CALL FUNCTION 'MB_READ_BATCH_VALUATION_TYPE' EXPORTING mbequ = tcurm-mbequ matnr = mbefu-matnr werks = m-werks charg = m-charg zeile = mseg-zeile TABLES xmcha = xmcha CHANGING bwtar = bwt.

MATERIAL_READ





CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbew return = mtcor matper = mtper.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbew return = mtcor matper = mtper.

MB_INITIALIZE_VALUE_DATA CALL FUNCTION 'MB_INITIALIZE_VALUE_DATA' EXPORTING sobkz = m-sobkz imbew = mbew IMPORTING mbew = mbew.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbew return = mtcor matper = mtper.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbew return = mtcor matper = mtper.

MB_INITIALIZE_VALUE_DATA CALL FUNCTION 'MB_INITIALIZE_VALUE_DATA' EXPORTING sobkz = m-sobkz imbew = mbew IMPORTING mbew = mbew.

MB_INITIALIZE_VALUE_DATA CALL FUNCTION 'MB_INITIALIZE_VALUE_DATA' EXPORTING sobkz = m-sobkz imbew = mbew set_bklas = space IMPORTING mbew = mbew.

VBWS_BATCH_VALUATION_GET CALL FUNCTION 'VBWS_BATCH_VALUATION_GET' EXPORTING i_matnr = mbew-matnr i_bwkey = mbew-bwkey i_werks = m-werks i_charg = m-charg IMPORTING e_stprs = loc_stprs EXCEPTIONS no_material = 1 no_plant = 2 no_valuation_area = 3 no_variable_valuation = 4 OTHERS = 5.

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m-lifnr "note 353436 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m-lifnr "note 353436 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m-lifnr "note 353436 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m-lifnr "note 353436 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m-lifnr "note 353436 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m-lifnr "note 353436 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

CONVERSION_EXIT_ABPSP_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' "n987660 EXPORTING input = m-pspnr "n987660 IMPORTING output = m_pspnr_ext. "n987660

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m_pspnr_ext "n987600 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

CONVERSION_EXIT_ABPSP_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT' "n987660 EXPORTING input = m-pspnr "n987660 IMPORTING output = m_pspnr_ext. "n987660

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' "note 353436 EXPORTING t1 = m_pspnr_ext "n987600 t2 = m-matnr "note 353436 IMPORTING message = l_text. "note 353436

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'M7' i_msgnr = '308' i_msgv1 = m-salk3 i_msgv2 = m-vksal * I_NOLOG = i_output = space IMPORTING rc = rc .

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'M7' i_msgnr = '310' i_msgv1 = m-vksal * I_NOLOG = i_output = space IMPORTING rc = rc .




MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'M7' i_msgnr = '308' i_msgv1 = m-salk3 i_msgv2 = m-lbkum * I_NOLOG = i_output = space IMPORTING rc = rc .

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'M7' i_msgnr = '310' i_msgv1 = m-lbkum * I_NOLOG = i_output = space IMPORTING rc = rc .

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'M7' i_msgnr = '309' i_msgv1 = m-salk3 * I_NOLOG = i_output = space IMPORTING rc = rc.

MB_CONTROL_MOVETYPE_GET_SINGLE CALL FUNCTION 'MB_CONTROL_MOVETYPE_GET_SINGLE' EXPORTING * I_MANDT = SY-MANDT i_bwart = m-bwart i_wertu = m-wertu i_mengu = m-mengu i_sobkz = m-sobkz i_kzbew = m-kzbew i_kzzug = m-kzzug i_kzvbr = m-kzvbr IMPORTING e_st156s = s156s.

MB_EDIT_MESSAGE CALL FUNCTION 'MB_EDIT_MESSAGE' EXPORTING t1 = mseg-bwart t2 = mseg-wertu t3 = mseg-mengu t4 = mseg-sobkz t5 = mseg-kzbew t6 = mseg-kzzug t7 = mseg-kzvbr IMPORTING message = message_text.

MB_BUFFER_VALUE_STRING CALL FUNCTION 'MB_BUFFER_VALUE_STRING' EXPORTING bustw = s156s-bustw TABLES x156w = x156w.



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