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

MM07MFBC SAP ABAP INCLUDE - Qty conversion at batch level - steel-active ingredient management







MM07MFBC 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 MM07MFBC 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 MM07MFBC. "Basic submit
SUBMIT MM07MFBC AND RETURN. "Return to original report after report execution complete
SUBMIT MM07MFBC VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Qty conversion at batch level - steel-active ingredient management


INCLUDES used within this REPORT MM07MFBC

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:

MURC_MENGENUMRECHNUNG CALL FUNCTION 'MURC_MENGENUMRECHNUNG' EXPORTING matnr = mseg-matnr werks = mseg-werks lgort = mseg-lgort charg = mseg-charg menge = mseg-menge meins = mseg-meins erfmg = mseg-erfmg erfme = mseg-erfme trtyp = l_trtyp kzwso = l_kzwso hell = xhell_charg no_dialog = x_no_dialog umrez = dm07m-umrez umren = dm07m-umren klassifizierung = xklassifizierung values_keep = xvalues_keep IMPORTING o_menge = mseg-menge o_erfmg = mseg-erfmg o_erfme = mseg-erfme o_umrez = dm07m-umrez o_umren = dm07m-umren TABLES objecttab = cl_objecttab EXCEPTIONS calculation_wrong = 1 batch_not_classified = 2 OTHERS = 3.

MURC_MENGENUMRECHNUNG CALL FUNCTION 'MURC_MENGENUMRECHNUNG' EXPORTING matnr = mseg-matnr "ALRK115218 werks = mseg-werks "ALRK115218 lgort = mseg-lgort "ALRK115218 charg = mseg-charg "ALRK115218 menge = mseg-menge meins = mseg-meins erfmg = mseg-erfmg erfme = mseg-erfme trtyp = a kzwso = l_kzwso hell = xhell_charg no_dialog = x_no_dialog umrez = dm07m-umrez umren = dm07m-umren klassifizierung = xklassifizierung TABLES objecttab = cl_objecttab EXCEPTIONS calculation_wrong = 1 batch_not_classified = 2 OTHERS = 3.

MURC_MENGENUMRECHNUNG CALL FUNCTION 'MURC_MENGENUMRECHNUNG' EXPORTING matnr = mseg-ummat werks = mseg-umwrk lgort = mseg-umlgo charg = mseg-umcha menge = mseg-menge meins = mseg-meins erfmg = mseg-erfmg erfme = mseg-erfme trtyp = l_trtyp kzwso = l_kzwso hell = xhell_umcha "ALRK115218 no_dialog = x_no_dialog klassifizierung = xklassifizierung IMPORTING o_erfmg = mseg-erfmg "ALRK115218 o_erfme = mseg-erfme "376007 o_umrez = dm07m-umrez "376007 o_umren = dm07m-umren "376007 o_menge = mseg-menge "ALRK115218 TABLES objecttab = cl_objecttab EXCEPTIONS OTHERS = 4.

ME_CHECK_T160M CALL FUNCTION 'ME_CHECK_T160M' EXPORTING i_arbgb = 'XU' i_msgnr = '033' i_msgvs = msgvs EXCEPTIONS error = 1 nothing = 2 warning = 3 success = 4 popup = 5 information = 6 OTHERS = 7.

MURC_GET_CONVERSION_TYPE CALL FUNCTION 'MURC_GET_CONVERSION_TYPE' IMPORTING ef_fract5_conversion = lf_fract5_conversion.

VBWS_UNITS_OF_MATERIAL CALL FUNCTION 'VBWS_UNITS_OF_MATERIAL' EXPORTING i_matnr = l_matnr TABLES ws_marm_tab = l_marm EXCEPTIONS wrong_call = 1 no_units = 2 units_not_active = 3 OTHERS = 4.

BATCH_CONVERSION_FACTOR CALL FUNCTION 'BATCH_CONVERSION_FACTOR' EXPORTING i_charg = l_charg * I_CHARG_CUOBJ = ' ' i_werks = l_werks i_matnr = l_matnr i_meins = mseg-meins i_meinh = l_marm-meinh i_kzmeinh = space i_marm = l_marm i_kzdch = kzdch i_kzdws = kzdws IMPORTING o_char_value = l_charvalue EXCEPTIONS OTHERS = 4. "not classified or

VBWS_VALUE_CHECK CALL FUNCTION 'VBWS_VALUE_CHECK' EXPORTING i_value = l_charvalue i_msehi = l_marm-msehi i_meinh = l_marm-meinh i_meins = mseg-meins EXCEPTIONS value_not_valid = 1 improper_input_parameters = 2 no_unit = 3 material_not_found = 4 conversion_not_found = 6 input_le_zero = 7 msehi_not_defined = 8 meinh_not_defined = 9 conversion_not_allowed = 10 OTHERS = 11.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = wa_mbefu EXCEPTIONS OTHERS = 4.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = l_mtcom IMPORTING return = l_mtcor EXCEPTIONS OTHERS = 4.

DYNP_GET_STEPL CALL FUNCTION 'DYNP_GET_STEPL' IMPORTING povstepl = povstepl EXCEPTIONS stepl_not_found = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = dyname dynumb = dynumb TABLES dynpfields = scr_fields EXCEPTIONS OTHERS = 1.

CONVERSION_EXIT_MATN1_INPUT call function 'CONVERSION_EXIT_MATN1_INPUT' "867192 exporting "867192 input = matnr "867192 importing "867192 output = con_matnr "867192 exceptions "867192 others = 2. "867192

MURC_SELECT_ERFME_F4 call function 'MURC_SELECT_ERFME_F4' exporting matnr = con_matnr "867192 i_werks = l_werks "Note 316455 i_display = lv_display "Note 499745 IMPORTING mengeneinheit = mengeneinheit EXCEPTIONS no_me_found = 1 OTHERS = 2.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = dyname dynumb = dynumb TABLES dynpfields = scr_fields EXCEPTIONS OTHERS = 1.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = wa_mbefu TABLES seqmat01 = dummy EXCEPTIONS OTHERS = 4.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = umseg-menge matnr = umseg-ummat meinh = io_marm_ws-meinh meins = mseg-meins charge = umseg-umcha werks = umseg-umwrk IMPORTING output = ws_meng_wa-altmg EXCEPTIONS OTHERS = 4.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = umseg-menge matnr = umseg-ummat meinh = io_marm_ws-meinh meins = mseg-meins charge = umseg-umcha werks = umseg-umwrk IMPORTING output = ws_meng_wa-altmg EXCEPTIONS OTHERS = 4.

MATERIAL_UNIT_CONVERSION





CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = loc_menge matnr = seg_tab-matnr meinh = io_marm_ws-meinh charge = seg_tab-charg werks = seg_tab-werks IMPORTING output = loc_altmg EXCEPTIONS conversion_not_found = 1 input_invalid = 2 material_not_found = 3 meinh_not_found = 4 meins_missing = 5 no_meinh = 6 output_invalid = 7 overflow = 8 OTHERS = 9.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_arbgb = 'XU' i_msgnr = '053' i_msgv1 = loc_text1 i_msgv2 = loc_text2 i_msgv3 = loc_text3 i_output = space IMPORTING rc = rc.

VBWS_UNITS_OF_MATERIAL CALL FUNCTION 'VBWS_UNITS_OF_MATERIAL' EXPORTING i_matnr = mseg-matnr TABLES ws_marm_tab = loc_marm_tab EXCEPTIONS wrong_call = 1 no_units = 2 units_not_active = 3 OTHERS = 4.

VBWS_UNITS_OF_MATERIAL CALL FUNCTION 'VBWS_UNITS_OF_MATERIAL' EXPORTING i_matnr = mseg-ummat TABLES ws_marm_tab = loc_marm_tab_um EXCEPTIONS wrong_call = 1 no_units = 2 units_not_active = 3 OTHERS = 4.

BATCH_CONVERSION_FACTOR CALL FUNCTION 'BATCH_CONVERSION_FACTOR' EXPORTING i_charg = mseg-charg * I_CHARG_CUOBJ = ' ' i_werks = mseg-werks i_matnr = mseg-matnr i_meins = mseg-meins i_meinh = loc_marm_tab-meinh i_kzmeinh = space i_marm = loc_marm_tab i_kzdch = kzdch IMPORTING o_char_value = loc_umref_charg EXCEPTIONS batch_not_classified = 1 characteristic_with_value_0 = 2 new_batch_not_classified = 3 not_found = 4 lock_problem = 5 OTHERS = 6.

BATCH_CONVERSION_FACTOR CALL FUNCTION 'BATCH_CONVERSION_FACTOR' EXPORTING i_charg = mseg-umcha * I_CHARG_CUOBJ = ' ' i_werks = mseg-umwrk i_matnr = mseg-ummat i_meins = mseg-meins i_meinh = loc_marm_tab_um-meinh i_kzmeinh = space i_marm = loc_marm_tab_um i_kzdch = kzdch IMPORTING o_char_value = loc_umref_umcha EXCEPTIONS batch_not_classified = 1 characteristic_with_value_0 = 2 new_batch_not_classified = 3 not_found = 4 lock_problem = 5 OTHERS = 6.

VBWS_UNITS_OF_MATERIAL CALL FUNCTION 'VBWS_UNITS_OF_MATERIAL' EXPORTING i_matnr = i_matnr TABLES ws_marm_tab = o_marm_ws EXCEPTIONS wrong_call = 1 no_units = 2 units_not_active = 3 OTHERS = 4.

MURC_MENGENUMRECHNUNG CALL FUNCTION 'MURC_MENGENUMRECHNUNG' EXPORTING matnr = seg_tab-matnr werks = seg_tab-werks charg = seg_tab-charg menge = loc_x_mng erfmg = loc_x_mng erfme = zmseg-meins trtyp = t158-trtyp no_dialog = 'A' values_keep = 'A' EXCEPTIONS calculation_wrong = 1 batch_not_classified = 2 OTHERS = 3.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = loc_menge matnr = seg_tab-matnr meinh = loc_marm_ws-meinh charge = seg_tab-charg werks = seg_tab-werks IMPORTING output = loc_altmg umren = loc_umren umrez = loc_umrez EXCEPTIONS conversion_not_found = 1 input_invalid = 2 material_not_found = 3 meinh_not_found = 4 meins_missing = 5 no_meinh = 6 output_invalid = 7 overflow = 8 OTHERS = 9.



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