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

ML01AF2X SAP ABAP INCLUDE - documentation and ABAP source code







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

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_V_T629_LESEN CALL FUNCTION 'WAUF_V_T629_LESEN' EXPORTING im_sperr = hauvz-sperr IMPORTING ex_v_t629 = htab EXCEPTIONS no_record_found = 01.

WAUF_DETERMINE_QUANTITY_DC CALL FUNCTION 'WAUF_DETERMINE_QUANTITY_DC' EXPORTING im_material = up_matnr im_item_category = up_t621-apstp im_rounding = up_rundg im_contract_no = xaupo-rfktn "auft*5 / 99A im_base_unit = xaupo-meins "auft*5 / 99A * auft*1/Rel.99: Reduzierte Bestellmenge

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mt06e return = mtcor TABLES seqmat01 = tdummy EXCEPTIONS *auft*2 * material_not_found = 04 material_not_found = 11 * TEXT_NOT_FOUND = 08.

WALL_DETERMINE_REF_MARC CALL FUNCTION 'WALL_DETERMINE_REF_MARC' EXPORTING im_matnr = up_matnr im_wrk = l_werks IMPORTING EX_MARC = l_ref_marc .

WAUF_PROCESS_TYPE_DC_DETERMINE CALL FUNCTION 'WAUF_PROCESS_TYPE_DC_DETERMINE' EXPORTING fbi_t621 = t621 fbi_plant = xauvz-vzwrk fbi_material = xaupo-matnr fbi_art_type = xaupo-attyp fbi_vendor = xauvz-lifnr fbi_item_no = xauvz-abelp fbi_display_info_msg = kreuz IMPORTING fbo_process_type = xauvz-waflu_vz.

WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING IM_PLANT = xauvz-vzwrk IM_PROMOTION = xaupo-aktnr IM_MATERIAL = xaupo-matnr IM_FOR_DC = kreuz IM_WAFLU_VZ = xauvz-waflu_vz IMPORTING EX_STORAGE_LOC = xauvz-lgort EXCEPTIONS NO_STORAGE_LOC_FOUND = 1.

WAUF_DETERMINE_QUANTITY_DC CALL FUNCTION 'WAUF_DETERMINE_QUANTITY_DC' EXPORTING im_material = up_matnr im_item_category = up_t621-apstp im_rounding = up_rundg im_contract_no = xaupo-rfktn "auft*5 / 99A im_base_unit = xaupo-meins "auft*5 / 99A * auft*1/Rel.99: Reduzierte Bestellmenge

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

WALL_DETERMINE_REF_MARC CALL FUNCTION 'WALL_DETERMINE_REF_MARC' EXPORTING im_matnr = up_matnr im_wrk = l_werks IMPORTING EX_MARC = l_ref_marc .

WAUF_PROCESS_TYPE_DC_DETERMINE CALL FUNCTION 'WAUF_PROCESS_TYPE_DC_DETERMINE' EXPORTING fbi_t621 = t621 fbi_plant = xauvz-vzwrk fbi_material = xaupo-matnr fbi_art_type = xaupo-attyp fbi_vendor = xauvz-lifnr fbi_item_no = xauvz-abelp fbi_display_info_msg = kreuz IMPORTING fbo_process_type = xauvz-waflu_vz.

WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING IM_PLANT = xauvz-vzwrk IM_PROMOTION = xaupo-aktnr IM_MATERIAL = xaupo-matnr IM_FOR_DC = kreuz IM_WAFLU_VZ = xauvz-waflu_vz IMPORTING EX_STORAGE_LOC = xauvz-lgort EXCEPTIONS NO_STORAGE_LOC_FOUND = 1.

WAUF_DETERMINE_QUANTITY_DC CALL FUNCTION 'WAUF_DETERMINE_QUANTITY_DC' EXPORTING im_material = up_matnr im_item_category = up_t621-apstp im_rounding = up_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_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

WAUF_PROCESS_TYPE_DC_DETERMINE CALL FUNCTION 'WAUF_PROCESS_TYPE_DC_DETERMINE' EXPORTING fbi_t621 = t621 fbi_plant = xauvz-vzwrk fbi_material = xaupo-matnr fbi_art_type = xaupo-attyp fbi_vendor = xauvz-lifnr fbi_item_no = xauvz-abelp fbi_display_info_msg = kreuz IMPORTING fbo_process_type = xauvz-waflu_vz.

WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING IM_PLANT = xauvz-vzwrk IM_PROMOTION = xaupo-aktnr IM_MATERIAL = xaupo-matnr IM_FOR_DC = kreuz IM_WAFLU_VZ = xauvz-waflu_vz IMPORTING EX_STORAGE_LOC = xauvz-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

WAUF_PROCESS_TYPE_DC_DETERMINE CALL FUNCTION 'WAUF_PROCESS_TYPE_DC_DETERMINE' EXPORTING fbi_t621 = t621 fbi_plant = xauvz-vzwrk fbi_material = xaupo-matnr fbi_art_type = xaupo-attyp fbi_vendor = xauvz-lifnr fbi_item_no = xauvz-abelp fbi_display_info_msg = kreuz IMPORTING fbo_process_type = xauvz-waflu_vz.

WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING IM_PLANT = xauvz-vzwrk IM_PROMOTION = xaupo-aktnr IM_MATERIAL = xaupo-matnr IM_FOR_DC = kreuz IM_WAFLU_VZ = xauvz-waflu_vz IMPORTING EX_STORAGE_LOC = xauvz-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

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

WALL_DETERMINE_REF_MARC CALL FUNCTION 'WALL_DETERMINE_REF_MARC' EXPORTING im_matnr = xaupo-matnr im_wrk = l_werks IMPORTING EX_MARC = l_ref_marc .



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