ML01AF1M 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 ML01AF1M 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!
WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_auvz-pmngv fbi_alloc_unit = up_auvz-aufme fbi_order_quantity = up_auvz-bstmg fbi_order_unit = up_auvz-bstme fbi_quantity_remainder = h_restmenge_p fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_quantity_delivery_ph = upt_auvw-menge fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = upt_auvw-weprz.
UNIT_CONVERSION_SIMPLE * CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' * EXPORTING * input = h_red_bestellmenge * round_sign = '+' "immer aufrunden ! * unit_in = up_auvz-bstme * unit_out = up_auvz-bstme * IMPORTING * output = upt_auvw-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_auvz-imngv fbi_alloc_unit = up_auvz-aufme fbi_order_quantity = up_auvz-bstmg fbi_order_unit = up_auvz-bstme fbi_quantity_remainder = h_restmenge_b fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent IMPORTING fbo_quantity_delivery_ph = upt_auvw-imngl fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = h_prozent.
WAUF_QUANTITY_FROM_PERCENTAGE * CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' * EXPORTING * fbi_material = up_matnr * fbi_base_unit = up_meins * fbi_quantity = up_auvz-imngv * fbi_alloc_unit = up_auvz-aufme * fbi_order_quantity = up_auvz-bstmg * fbi_order_unit = up_auvz-bstme * fbi_quantity_remainder = h_restmenge_b * fbi_order_quantity_remainder * = h_restmenge_bestellung * fbi_percentage_remainder = h_rest_prozent * IMPORTING * fbo_quantity_delivery_ph = upt_auvw-imngl * fbo_order_quantity_delivery_ph = upt_auvw-bstmg * CHANGING * fbc_percentage = h_prozent.
WAUF_SCHEDULE_GENERATION_DATE * CALL FUNCTION 'WAUF_SCHEDULE_GENERATION_DATE' * EXPORTING * im_trmar = trmar-bedat * im_werks = upt_auvw-vzwrk * im_wedat = upt_auvw-wevdt * im_plifz = up_auvz-plifz * im_webaz = up_auvz-webaz * CHANGING * ex_bedat = upt_auvw-bedat * ex_wedat = upt_auvw-wedtb * EXCEPTIONS * importparameter_unvollstaendig = 1 * betriebskalender_nicht_lesbar = 2 * terminierungsart_falsch = 3 * OTHERS = 4.
WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = up_apstp IMPORTING ex_t621 = h_t621 * EX_T621T = * EXCEPTIONS * NO_RECORD_FOUND = 1 * DB_ERROR = 2 * OTHERS = 3.
WAUF_SEASONAL_SCHED_DC_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' EXPORTING is_t621 = h_t621 im_matnr = up_matnr im_uptyp = l_uptyp im_satnr = l_satnr is_auko = xauko is_auvz = up_auvz * IT_AUVW = IMPORTING et_messg = lt_messg CHANGING ch_auvw = upt_auvw.
WAUF_DETERMINE_GENERAT_DATE_DC CALL FUNCTION 'WAUF_DETERMINE_GENERAT_DATE_DC' EXPORTING * FBI_CALLED_BY_ALLOC_GENERATION = ' ' fbi_material = up_matnr fbi_vzwrk = up_auvz-vzwrk * FBI_FABKL = fbi_plifz = up_auvz-plifz fbi_webaz = up_auvz-webaz fbi_wedat = upt_auvw-wevdt fbi_header_po_gen_date = xauko-fbdat * FBI_DC_DP_PO_GEN_DATE = fbi_t621 = h_t621 fbi_no_message = kreuz IMPORTING fbo_po_gen_date = upt_auvw-bedat fbo_wedat_neu = upt_auvw-wedtb EXCEPTIONS determination_gen_date_failed = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.