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

ML01AF4H SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

WAUF_KNA1_READ CALL FUNCTION 'WAUF_KNA1_READ' EXPORTING im_kunnr = aufi-filnr IMPORTING ex_kna1 = kna1 EXCEPTIONS no_kunnr = 01 no_record_found = 02.

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

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mt06e return = mtcor TABLES seqmat01 = tdummy EXCEPTIONS lock_on_material = 05 material_not_found = 11 plant_not_found = 12.

WALL_DETERMINE_REF_MARC CALL FUNCTION 'WALL_DETERMINE_REF_MARC' EXPORTING im_matnr = haupo-matnr im_wrk = haufi-fiwrk IMPORTING EX_MARC = l_ref_marc .

WAUF_DETERMINE_QUANTITY_PLANT CALL FUNCTION 'WAUF_DETERMINE_QUANTITY_PLANT' EXPORTING im_material = haupo-matnr im_item_category = haupo-apstp im_rounding = haupo-rundg im_min_max_qty = xaupo-bermima im_ausb = xausb im_contract_no = haupo-rfktn "auft*5 / 99A im_base_unit = haupo-meins "auft*5 / 99A * auft*1/Rel.99: falsche ME in Lieferung (Bestellmengenoptimierung)

WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING im_plant = haufi-fiwrk im_promotion = xaupo-aktnr im_material = xaupo-matnr IMPORTING ex_storage_loc = haufi-lgort EXCEPTIONS no_storage_loc_found = 1.

WAUF_KNA1_READ CALL FUNCTION 'WAUF_KNA1_READ' EXPORTING im_kunnr = aufi-filnr IMPORTING ex_kna1 = kna1 EXCEPTIONS no_kunnr = 01 no_record_found = 02.

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

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mt06e return = mtcor TABLES seqmat01 = tdummy EXCEPTIONS lock_on_material = 05 material_not_found = 11 plant_not_found = 12.

WALL_DETERMINE_REF_MARC CALL FUNCTION 'WALL_DETERMINE_REF_MARC' EXPORTING im_matnr = haupo-matnr im_wrk = haufi-fiwrk IMPORTING EX_MARC = l_ref_marc .

WAUF_DETERMINE_QUANTITY_PLANT CALL FUNCTION 'WAUF_DETERMINE_QUANTITY_PLANT' EXPORTING im_material = haupo-matnr im_item_category = haupo-apstp im_rounding = haupo-rundg im_min_max_qty = haupo-bermima im_ausb = xausb im_contract_no = haupo-rfktn "auft*5 / 99A im_base_unit = haupo-meins "auft*5 / 99A * auft*1/Rel.99: falsche ME in Lieferung (Bestellmengenoptimierung)

WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING im_plant = haufi-fiwrk im_promotion = xaupo-aktnr im_material = xaupo-matnr IMPORTING ex_storage_loc = haufi-lgort EXCEPTIONS no_storage_loc_found = 1.

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

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

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.

WAUF_DETERMINE_QUANTITY_DC 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



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