SAP Reports / Programs | Logistics - General | Merchandise Distribution | Allocation(LO-MDS-AL) SAP LO

ML01AF0X SAP ABAP INCLUDE - Include LV56EF05







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

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:

WAVI_READ_TABLE_AVIS_TYPE CALL FUNCTION 'WAVI_READ_TABLE_AVIS_TYPE' EXPORTING * fbi_avis_type = xaupo-aavit "auft*5 / 99A fbi_avis_type = up_aupo-aavit "auft*5 / 99A IMPORTING fbe_avis_type_data = t626 EXCEPTIONS fba_error_read_avis_type = 01 fba_avis_type_invalid = 02.

WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = up_aupo-apstp IMPORTING ex_t621 = t621.

WAVI_READ_TABLE_AVIS_TYPE CALL FUNCTION 'WAVI_READ_TABLE_AVIS_TYPE' EXPORTING fbi_avis_type = ut_aufi-aavit IMPORTING fbe_avis_type_data = t626 EXCEPTIONS fba_error_read_avis_type = 01 fba_avis_type_invalid = 02.

WAUF_SEASONAL_SCHED_DC_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' IMPORTING et_messg = lt_messg CHANGING ch_auvw = ut_auvw.

WAUF_SEASONAL_SCHED_DC_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' EXPORTING is_t621 = t621 im_matnr = xaupo-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 = xauvw.

WAUF_SEASONAL_SCHED_SITE_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_SITE_DARK' IMPORTING et_messg = lt_messg CHANGING ch_aulw = xaulw .

WAUF_SEASONAL_SCHED_DC_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' IMPORTING et_messg = lt_messg CHANGING ch_auvw = xauvw.

WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = up_aupo-apstp IMPORTING ex_t621 = t621 EXCEPTIONS no_record_found = 1.

WAUF_STOCK_PLANT_MATERIAL_DET CALL FUNCTION 'WAUF_STOCK_PLANT_MATERIAL_DET' EXPORTING fbi_plant = up_aufi-fiwrk fbi_material = up_aupo-matnr fbi_alloc_unit = up_aupo-aufme fbi_base_unit = up_aupo-meins IMPORTING fbe_stock_plant_mat = up_aufi-labst fbe_return_code = rcode.

WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = xaupo-apstp IMPORTING ex_t621 = t621_struc.

WAUF_SCHEDULE_GENERATION_DATE * CALL FUNCTION 'WAUF_SCHEDULE_GENERATION_DATE' * EXPORTING * im_trmar = trmar-bedat * im_werks = up_vzwrk * im_wedat = xauvw-wevdt * im_plifz = xauvz-plifz "? * im_webaz = xauvz-webaz "? * CHANGING * ex_bedat = up_xauvw-bedat * ex_wedat = up_xauvw-wedtb * EXCEPTIONS * importparameter_unvollstaendig = 1 * betriebskalender_nicht_lesbar = 2 * terminierungsart_falsch = 3 * OTHERS = 4.

WAUF_SEASONAL_SCHED_DC_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' EXPORTING is_t621 = t621 im_matnr = xaupo-matnr im_uptyp = l_uptyp im_satnr = l_satnr is_auvz = xauvz * IT_AUVW = IMPORTING et_messg = lt_messg CHANGING ch_auvw = up_xauvw.

WAUF_DETERMINE_GENERAT_DATE_DC CALL FUNCTION 'WAUF_DETERMINE_GENERAT_DATE_DC' EXPORTING * FBI_CALLED_BY_ALLOC_GENERATION = ' ' fbi_material = xaupo-matnr fbi_vzwrk = up_vzwrk * FBI_FABKL = fbi_plifz = xauvz-plifz fbi_webaz = xauvz-webaz fbi_wedat = up_xauvw-wevdt fbi_header_po_gen_date = xauko-fbdat * FBI_DC_DP_PO_GEN_DATE = fbi_t621 = t621_struc fbi_no_message = kreuz IMPORTING fbo_po_gen_date = up_xauvw-bedat fbo_wedat_neu = up_xauvw-wedtb EXCEPTIONS determination_gen_date_failed = 1 OTHERS = 2.

WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = xaupo-apstp IMPORTING ex_t621 = t621_struc.

WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = up_apstp IMPORTING ex_t621 = h_t621.

WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_aufi-pmngu fbi_alloc_unit = up_aufi-aufme fbi_order_quantity = up_aufi-bstmg fbi_order_unit = up_aufi-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 = xaulw-menge fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = xaulw-weprz.

WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = up_matnr fbi_base_unit = up_meins fbi_quantity = up_aufi-imngu fbi_alloc_unit = up_aufi-aufme fbi_order_quantity = up_aufi-bstmg fbi_order_unit = up_aufi-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 = xaulw-imngl fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = h_prozent.

WAUF_SEASONAL_SCHED_SITE_DARK CALL FUNCTION 'WAUF_SEASONAL_SCHED_SITE_DARK' EXPORTING is_t621 = h_t621 im_matnr = up_matnr is_aufi = up_aufi IMPORTING ET_MESSG = lt_messg CHANGING ch_aulw = xaulw .

WAUF_DETERMINE_GENERATION_DATE





CALL FUNCTION 'WAUF_DETERMINE_GENERATION_DATE' EXPORTING fbi_material = up_matnr fbi_fiwrk = up_aufi-fiwrk fbi_filnr = up_aufi-filnr fbi_vzwrk = up_aufi-vzwrk fbi_plifz = up_aufi-plifz fbi_webaz = up_aufi-webaz fbi_wedat = xaulw-wedat fbi_header_po_gen_date = xauko-fbdat fbi_header_wo_gen_date = xauko-fudat fbi_header_dl_gen_date = xauko-fldat fbi_t621 = h_t621 IMPORTING fbo_po_gen_date = xaulw-bedat fbo_wo_gen_date = xaulw-umdat fbo_dl_gen_date = xaulw-ledat fbo_wedat_neu = xaulw-wedtb.

WAUF_QUANTITY_FROM_PERCENTAGE * CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' * EXPORTING * FBI_MATERIAL = XAUPO-MATNR * FBI_BASE_UNIT = XAUPO-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 = XAUVW-MENGE * FBO_ORDER_QUANTITY_DELIVERY_PH = H_BESTELLMENGE * CHANGING * FBC_PERCENTAGE = XAUVW-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_AUVZ-BSTME * UNIT_OUT = UP_AUVZ-BSTME * IMPORTING * ADD_CONST = * DECIMALS = * DENOMINATOR = * NUMERATOR = * OUTPUT = XAUVW-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 = XAUPO-MATNR * FBI_BASE_UNIT = XAUPO-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 = XAUVW-IMNGL * FBO_ORDER_QUANTITY_DELIVERY_PH = H_BESTELLMENGE * CHANGING * FBC_PERCENTAGE = H_PROZENT.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = atxt-diagnose1 diagnosetext2 = atxt-diagnose2 textline1 = atxt-textline1 titel = atxt-titel cancel_display = space IMPORTING answer = answer.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = atxt-diagnose1 diagnosetext2 = atxt-diagnose2 textline1 = atxt-textline1 titel = atxt-titel cancel_display = space IMPORTING answer = answer.

WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = xaupo-apstp IMPORTING ex_t621 = t621_struc.

WAUF_SCHEDULE_GENERATION_DATE * CALL FUNCTION 'WAUF_SCHEDULE_GENERATION_DATE' * EXPORTING * im_trmar = trmar-bedat * im_werks = xauvz-vzwrk * im_wedat = xauvw-wevdt * im_plifz = xauvz-plifz "? * im_webaz = xauvz-webaz "? * CHANGING * ex_bedat = xauvw-bedat * ex_wedat = xauvw-wedtb * EXCEPTIONS * importparameter_unvollstaendig = 1 * betriebskalender_nicht_lesbar = 2 * terminierungsart_falsch = 3 * OTHERS = 4.

WAUF_DETERMINE_GENERAT_DATE_DC CALL FUNCTION 'WAUF_DETERMINE_GENERAT_DATE_DC' EXPORTING * FBI_CALLED_BY_ALLOC_GENERATION = ' ' fbi_material = xaupo-matnr fbi_vzwrk = xauvz-vzwrk * FBI_FABKL = fbi_plifz = xauvz-plifz fbi_webaz = xauvz-webaz fbi_wedat = xauvw-wevdt fbi_header_po_gen_date = xauko-fbdat * fbi_dc_dp_po_gen_date = fbi_t621 = t621_struc fbi_no_message = kreuz IMPORTING fbo_po_gen_date = xauvw-bedat fbo_wedat_neu = xauvw-wedtb EXCEPTIONS determination_gen_date_failed = 1 OTHERS = 2.



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