ML01AF0H 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 ML01AF0H 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!
WALL_TC_RESET CALL FUNCTION 'WALL_TC_RESET' EXPORTING fbi_tc_lines = tc_1401_anz_lines_auvw CHANGING fbc_tc_lines = tc_1401-lines fbc_tc_top_line = tc_1401-top_line.
WALL_TC_RESET CALL FUNCTION 'WALL_TC_RESET' EXPORTING fbi_tc_lines = tc_1401_anz_lines_auvw CHANGING fbc_tc_lines = tc_1401-lines fbc_tc_top_line = tc_1401-top_line.
WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = haupo-apstp IMPORTING ex_t621 = t621_struc.
WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_pmngv fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_mg fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_restmenge_p fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_quantity_delivery_ph = hauvw-menge fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = hauvw-weprz.
UNIT_CONVERSION_SIMPLE * CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' * EXPORTING * INPUT = H_RED_BESTELL_MENGE * NO_TYPE_CHECK = 'X' * ROUND_SIGN = '+' "immer aufrunden ! * UNIT_IN = UP_BESTELL_ME * UNIT_OUT = UP_BESTELL_ME * IMPORTING * ADD_CONST = * DECIMALS = * DENOMINATOR = * NUMERATOR = * OUTPUT = HAUVW-UMLMG * EXCEPTIONS * CONVERSION_NOT_FOUND = 1 * DIVISION_BY_ZERO = 2 * INPUT_INVALID = 3 * OUTPUT_INVALID = 4 * OVERFLOW = 5 * TYPE_INVALID = 6 * UNITS_MISSING = 7 * UNIT_IN_NOT_FOUND = 8 * UNIT_OUT_NOT_FOUND = 9 * OTHERS = 10.
WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_imngv fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_mg fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_restmenge_b fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_quantity_delivery_ph = hauvw-imngl fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = h_prozent.
WAUF_SEASONAL_SCHED_DC_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' EXPORTING is_t621 = t621 im_matnr = up_matnr im_uptyp = l_uptyp * im_simulate = kreuz im_satnr = l_satnr is_auko = xauko is_auvz = hauvz * IT_AUVW = IMPORTING et_messg = lt_messg CHANGING ch_auvw = hauvw.
WAUF_SEASONAL_SCHED_DC_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' IMPORTING et_messg = lt_messg CHANGING ch_auvw = hauvw.
WAUF_PERCENTAGE_FROM_QUANTITY CALL FUNCTION 'WAUF_PERCENTAGE_FROM_QUANTITY' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_pmngv fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_mg fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_restmenge_p fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_order_quantity_delivery_ph = h_bestellmenge fbo_percentage = hauvw-weprz CHANGING fbc_quantity_delivery_ph = hauvw-menge.
UNIT_CONVERSION_SIMPLE * CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' * EXPORTING * INPUT = H_RED_BESTELL_MENGE * NO_TYPE_CHECK = 'X' * ROUND_SIGN = '+' "immer aufrunden ! * UNIT_IN = UP_BESTELL_ME * UNIT_OUT = UP_BESTELL_ME * IMPORTING * ADD_CONST = * DECIMALS = * DENOMINATOR = * NUMERATOR = * OUTPUT = HAUVW-UMLMG * EXCEPTIONS * CONVERSION_NOT_FOUND = 1 * DIVISION_BY_ZERO = 2 * INPUT_INVALID = 3 * OUTPUT_INVALID = 4 * OVERFLOW = 5 * TYPE_INVALID = 6 * UNITS_MISSING = 7 * UNIT_IN_NOT_FOUND = 8 * UNIT_OUT_NOT_FOUND = 9 * OTHERS = 10.
WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_imngv fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_mg fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_restmenge_b fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_quantity_delivery_ph = hauvw-imngl fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = h_prozent.
WAUF_PERCENTAGE_FROM_QUANTITY CALL FUNCTION 'WAUF_PERCENTAGE_FROM_QUANTITY' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_imngv fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_mg fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_restmenge_b fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_order_quantity_delivery_ph = h_bestellmenge fbo_percentage = h_prozent CHANGING fbc_quantity_delivery_ph = hauvw-imngl.
UNIT_CONVERSION_SIMPLE * CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' * EXPORTING * INPUT = H_RED_BESTELL_MENGE * NO_TYPE_CHECK = 'X' * ROUND_SIGN = '+' "immer aufrunden ! * UNIT_IN = UP_BESTELL_ME * UNIT_OUT = UP_BESTELL_ME * IMPORTING * ADD_CONST = * DECIMALS = * DENOMINATOR = * NUMERATOR = * OUTPUT = HAUVW-UMLMG * EXCEPTIONS * CONVERSION_NOT_FOUND = 1 * DIVISION_BY_ZERO = 2 * INPUT_INVALID = 3 * OUTPUT_INVALID = 4 * OVERFLOW = 5 * TYPE_INVALID = 6 * UNITS_MISSING = 7 * UNIT_IN_NOT_FOUND = 8 * UNIT_OUT_NOT_FOUND = 9 * OTHERS = 10.
UNIT_CONVERSION_SIMPLE * CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' * EXPORTING * INPUT = H_RED_BESTELL_MENGE * NO_TYPE_CHECK = 'X' * ROUND_SIGN = '+' "immer aufrunden ! * UNIT_IN = UP_BESTELL_ME * UNIT_OUT = UP_BESTELL_ME * IMPORTING * ADD_CONST = * DECIMALS = * DENOMINATOR = * NUMERATOR = * OUTPUT = HAUVW-UMLMG * EXCEPTIONS * CONVERSION_NOT_FOUND = 1 * DIVISION_BY_ZERO = 2 * INPUT_INVALID = 3 * OUTPUT_INVALID = 4 * OVERFLOW = 5 * TYPE_INVALID = 6 * UNITS_MISSING = 7 * UNIT_IN_NOT_FOUND = 8 * UNIT_OUT_NOT_FOUND = 9 * OTHERS = 10.
WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_plan_menge fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_menge fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_rest_planmenge fbi_order_quantity_remainder = h_rest_bestellmenge fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_quantity_delivery_ph = ut_aulw-menge fbo_order_quantity_delivery_ph = h_bestmenge CHANGING fbc_percentage = ut_aulw-weprz.
WAUF_PERCENTAGE_FROM_QUANTITY CALL FUNCTION 'WAUF_PERCENTAGE_FROM_QUANTITY' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_plan_menge fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_menge fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_rest_planmenge fbi_order_quantity_remainder = h_rest_bestellmenge fbi_percentage_remainder = h_rest_prozent IMPORTING *auft*1/Rel.99: AULW-BSTMG darf nur dann gefüllt werden, wenn die
WAUF_PERCENTAGE_FROM_QUANTITY CALL FUNCTION 'WAUF_PERCENTAGE_FROM_QUANTITY' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_bestaetigte_menge fbi_alloc_unit = up_aufteil_me fbi_order_quantity = up_bestell_menge fbi_order_unit = up_bestell_me fbi_quantity_remainder = h_rest_bestaetigtemenge fbi_order_quantity_remainder = h_rest_bestellmenge fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_order_quantity_delivery_ph = h_bestmenge fbo_percentage = h_prozent CHANGING fbc_quantity_delivery_ph = ut_aulw-imngl.
WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING im_plant = hauvz-vzwrk im_promotion = xaupo-aktnr im_material = xaupo-matnr im_for_dc = kreuz im_waflu_vz = hauvz-waflu_vz IMPORTING ex_storage_loc = hauvz-lgort EXCEPTIONS no_storage_loc_found = 1.
CALL FUNCTION 'WAUF_DETERMINE_QUANTITY_DC' EXPORTING im_material = xaupo-matnr im_item_category = xaupo-apstp im_rounding = xaupo-rundg im_contract_no = xaupo-rfktn "auft*5 / 99A im_base_unit = xaupo-meins "auft*5 / 99A * auft*1/Rel.99: Reduzierte Bestellmenge
WAUF_DETERMINE_QUANTITY_PLANT CALL FUNCTION 'WAUF_DETERMINE_QUANTITY_PLANT' EXPORTING im_material = xaupo-matnr im_item_category = xaupo-apstp im_rounding = xaupo-rundg im_min_max_qty = xaupo-bermima im_ausb = xausb im_contract_no = xaupo-rfktn "auft*5 / 99A im_base_unit = xaupo-meins "auft*5 / 99A * auft*1/Rel.99: falsche ME in Lieferung (Bestellmengenoptimierung)
WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = aupo-apstp IMPORTING ex_t621 = t621 ex_t621t = t621t EXCEPTIONS no_record_found = 1 db_error = 2 OTHERS = 3.
WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = up_aupo-apstp IMPORTING ex_t621 = t621 ex_t621t = t621t EXCEPTIONS no_record_found = 1.
WAUF_KNA1_READ CALL FUNCTION 'WAUF_KNA1_READ' EXPORTING im_kunnr = up_aufi-vzent IMPORTING ex_kna1 = kna1 EXCEPTIONS no_kunnr = 01 no_record_found = 02.
WAUF_T001W_LESEN CALL FUNCTION 'WAUF_T001W_LESEN' EXPORTING im_werks = up_aufi-vzwrk IMPORTING ex_t001w = t001w EXCEPTIONS no_valid_input = 01 no_record_found = 02.
WAUF_KNA1_READ CALL FUNCTION 'WAUF_KNA1_READ' EXPORTING im_kunnr = up_aufi-vzent IMPORTING ex_kna1 = kna1 EXCEPTIONS no_kunnr = 01 no_record_found = 02.
WAUF_T001W_LESEN CALL FUNCTION 'WAUF_T001W_LESEN' EXPORTING im_werks = up_aufi-vzwrk IMPORTING ex_t001w = t001w EXCEPTIONS no_valid_input = 01 no_record_found = 02.
WAUF_KNA1_READ CALL FUNCTION 'WAUF_KNA1_READ' EXPORTING im_kunnr = up_aufi-vzent IMPORTING ex_kna1 = kna1 EXCEPTIONS no_kunnr = 01 no_record_found = 02.
WAUF_T001W_LESEN CALL FUNCTION 'WAUF_T001W_LESEN' EXPORTING im_werks = up_aufi-vzwrk IMPORTING ex_t001w = t001w EXCEPTIONS no_valid_input = 01 no_record_found = 02.
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 ML01AF0H or its description.