MM06EF0M_MENGENUMRECHNUNG 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 MM06EF0M_MENGENUMRECHNUNG into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ME_CONVERSION_BPRME CALL FUNCTION 'ME_CONVERSION_BPRME' EXPORTING i_matnr = ekpo-matnr i_mein1 = ekpo-meins i_mein2 = i_meins i_meins = ekpo-lmein i_umrez = ekpo-umrez i_umren = ekpo-umren IMPORTING kumne = pumren kumza = pumrez EXCEPTIONS error_in_conversion = 01 no_success = 02.
MS_READ_UNIT CALL FUNCTION 'MS_READ_UNIT' EXPORTING i_ekorg = ekko-ekorg IMPORTING e_meins = t165-pur_meins EXCEPTIONS OTHERS = 0.
ME_CONVERSION_BPRME CALL FUNCTION 'ME_CONVERSION_BPRME' EXPORTING i_kumne = lf_umrez " note 390242 i_kumza = lf_umren " note 390242 i_matnr = ekpo-matnr i_mein1 = lf_meins i_mein2 = ekpo-meins i_meins = ekpo-lmein IMPORTING kumne = lf_umrez " note 390242 kumza = lf_umren " note 390242 EXCEPTIONS error_in_conversion = 01 no_success = 02 OTHERS = 03.
ME_CHECK_BMEIN CALL FUNCTION 'ME_CHECK_BMEIN' EXPORTING bmein = ekpo-meins lifnr = ekko-lifnr lmein = ekpo-lmein matnr = ekpo-matnr mprof = ekpo-mprof ematn = ekpo-ematn noinf = space IMPORTING umren = lf_umren umrez = lf_umrez EXCEPTIONS OTHERS = 01.
UNIT_CONVERSION_WITH_FACTOR CALL FUNCTION 'UNIT_CONVERSION_WITH_FACTOR' EXPORTING add_const = 0 denominator = lf_umrez " note 390242 input = ch_menge numerator = lf_umren " note 390242 IMPORTING output = ch_menge EXCEPTIONS division_by_zero = 01 overflow = 02 type_invalid = 03.
MD_SINGLE_ROUNDING CALL FUNCTION 'MD_SINGLE_ROUNDING' EXPORTING i_s_general = l_s_input IMPORTING e_s_results = l_s_results TABLES e_t_round_reasons = lt_rundgrund EXCEPTIONS invalid_opcode = 1 no_purchase_org = 2 rdpr_not_found = 3 material_not_found = 4 meinh_not_found = 5 bad_params = 6 debitor_not_found = 7 no_round = 8 rdprf_not_found = 9 error = 10 OTHERS = 11.
ME_CHECK_BMEIN CALL FUNCTION 'ME_CHECK_BMEIN' EXPORTING bmein = ekpo-meins lmein = ekpo-lmein matnr = ekpo-matnr noinf = 'X' IMPORTING umren = ch_umren umrez = ch_umrez EXCEPTIONS OTHERS = 0.
MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = ls_mtcom IMPORTING matdaten = ls_menge EXCEPTIONS OTHERS = 1.
UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = lf_ntgew "648916 no_type_check = 'X' round_sign = ' ' unit_in = ch_gewei unit_out = ls_menge-gewei IMPORTING output = l_ntgew EXCEPTIONS OTHERS = 01.
UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = lf_brgew "648916 no_type_check = 'X' round_sign = ' ' unit_in = ch_gewei unit_out = ls_menge-gewei IMPORTING output = l_brgew EXCEPTIONS OTHERS = 0.
MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = ls_mtcom IMPORTING matdaten = ls_menge EXCEPTIONS OTHERS = 1.
ME_CONVERSION_BPRME CALL FUNCTION 'ME_CONVERSION_BPRME' EXPORTING i_matnr = ekpo-matnr i_mein1 = imp_meins_fr i_mein2 = imp_meins_to i_meins = ekpo-lmein i_menge = chp_menge IMPORTING menge = chp_menge EXCEPTIONS error_in_conversion = 01 no_success = 02 OTHERS = 03.
SD_VBAP_SELECT CALL FUNCTION 'SD_VBAP_SELECT' EXPORTING i_document_number = lf_vbeln i_item_number = lf_vbelp IMPORTING e_vbap = ls_vbap EXCEPTIONS item_not_found = 1 OTHERS = 2.
MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = lf_f1 matnr = if_matnr meinh = if_meins meins = if_lmein charge = if_batch werks = if_plant IMPORTING output = lf_f1 umren = lf_umren umrez = lf_umrez kzwso = lf_kzwso EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
MM06EF0M_MENGENUMRECHNUNG - MM06EF0MMENGENUMRECHNUNG MM06EF0M_MENGENEINHEITEN - MM06EF0MMENGENEINHEITEN MM06EF0M_MENGE - MM06EF0MMENGE MM06EF0M_MATERIAL_LESEN_AENDER - MM06EF0MMATERIALLESENAENDER MM06EF0M_MATERIAL_CHECK_LOEKZ - MM06EF0MMATERIALCHECKLOEKZ MM06EF0M_MASS_LMEIN_BPRME - MM06EF0MMASSLMEINBPRME