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

ML01AF0S SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

DD_DOMA_GET * call function 'DD_DOMA_GET' * exporting * domain_name = up_stanam * langu = sy-langu * prid = 0 * withtext = kreuz * importing * dd01v_wa_a = dd01v_a * dd01v_wa_n = dd01v_n * got_state = got_state * tables * dd07v_tab_a = dd07v_a * dd07v_tab_n = dd07v_n * exceptions * illegal_value = 01 * op_failure = 02.

DD_DTEL_GET CALL FUNCTION 'DD_DTEL_GET' EXPORTING get_state = h_get_state langu = sy-langu * PRID = 0 * WITHTEXT = 'X' roll_name = 'SPERR_A' * IMPORTING * GOT_STATE = * DD04L_WA_A = * DD04L_WA_N = * DD01L_WA = * TPARA_WA = TABLES dd04t_tab_a = ht_datel_tab_a dd04t_tab_n = ht_datel_tab_n.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING no_value_check = ' ' popup_title = h_text start_column = '5' start_row = '5' IMPORTING returncode = h_antwort TABLES fields = hsval EXCEPTIONS error_in_fields = 01.

WAUF_V_T629_LESEN CALL FUNCTION 'WAUF_V_T629_LESEN' EXPORTING im_sperr = h_sperr IMPORTING ex_v_t629 = htab EXCEPTIONS no_record_found = 01.

WMOD_GENERIC_ARTICLE_ADAPTION CALL FUNCTION 'WMOD_GENERIC_ARTICLE_ADAPTION' EXPORTING generic_article_abelp = xaupo-sapos TABLES im_ex_aupo = xaupo im_ex_aufg = xaufg im_ex_aufi = xaufi im_ex_auvz = xauvz.

WMOD_GENERIC_ARTICLE_ADAPTION CALL FUNCTION 'WMOD_GENERIC_ARTICLE_ADAPTION' EXPORTING generic_article_abelp = xaupo-abelp TABLES im_ex_aupo = xaupo im_ex_aufg = xaufg im_ex_aufi = xaufi im_ex_auvz = xauvz.

WAUF_T621_LESEN CALL FUNCTION 'WAUF_T621_LESEN' EXPORTING im_apstp = up_aupo-apstp IMPORTING ex_t621 = t621 * EX_T621T = EXCEPTIONS no_record_found = 1 db_error = 2 OTHERS = 3.

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

PROMOTION_CHK_UPD_GLBL_BUFFER CALL FUNCTION 'PROMOTION_CHK_UPD_GLBL_BUFFER' EXPORTING aktnr = up_aupo-aktnr artnr = up_aupo-matnr auft_nr = up_aupo-abeln auft_pos = up_aupo-abelp * ONLY_CHECK = x IMPORTING aenderung_erlaubt = g_aenderung_erlaubt TABLES t_betriebe = gt_waled EXCEPTIONS foreign_lock = 1 system_failure = 2 not_found = 3 OTHERS = 4.

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

WAUF_SEASONAL_SCHED_DC_DARK * CALL FUNCTION 'WAUF_SEASONAL_SCHED_DC_DARK' * EXPORTING * is_t621 = t621 * im_matnr = up_aupo-matnr * im_uptyp = l_uptyp * im_satnr = l_satnr * is_auko = xauko * is_auvz = upt_auvz ** IT_AUVW = * IMPORTING * et_messg = lt_messg * CHANGING * ch_auvw = upt_auvw.

WAUF_PROCESS_TYPE_DC_CHECK CALL FUNCTION 'WAUF_PROCESS_TYPE_DC_CHECK' EXPORTING fbi_plant = upt_auvz-vzwrk fbi_material = up_aupo-matnr fbi_process_type = rw11a-waflu_vz fbi_display_error_msg = ' ' IMPORTING fbo_process_type_ok = h_waflu_vz_ok.

WAUF_DETERMINE_STORAGE_LOC CALL FUNCTION 'WAUF_DETERMINE_STORAGE_LOC' EXPORTING im_plant = upt_auvz-vzwrk im_promotion = up_aupo-aktnr im_material = up_aupo-matnr im_for_dc = kreuz im_waflu_vz = upt_auvz-waflu_vz IMPORTING ex_storage_loc = upt_auvz-lgort EXCEPTIONS no_storage_loc_found = 1.

WAUF_DETERMINE_DELIV_PHASE_DC CALL FUNCTION 'WAUF_DETERMINE_DELIV_PHASE_DC' EXPORTING fbi_t621 = t621 fbi_auko = xauko fbi_aupo = up_aupo fbi_auvz = upt_auvz * FBI_NO_I_MSG = ' ' * wegen des bisher bestehenden Codings kann an dieser * stelle nur eine (!) Lieferwelle angelegt werden !!! fbi_nur_1_termin_zulassen = 'X' TABLES fbt_auvw_default = lt_auvw_popup fbt_auvw_current = lt_auvw_vz EXCEPTIONS fbe_no_default_date_available = 1 OTHERS = 2.

WAUF_SCHEDULE_GENERATION_DATE * CALL FUNCTION 'WAUF_SCHEDULE_GENERATION_DATE' * EXPORTING * im_trmar = trmar-bedat * im_werks = upt_auvz-vzwrk * im_wedat = upt_auvw-wevdt * im_plifz = upt_auvz-plifz * im_webaz = upt_auvz-webaz * CHANGING * ex_bedat = upt_auvw-wedtb * 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_aupo-apstp * IMPORTING * ex_t621 = 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 = t621 im_matnr = up_aupo-matnr im_uptyp = l_uptyp im_satnr = l_satnr is_auvz = upt_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_aupo-matnr fbi_vzwrk = upt_auvz-vzwrk * FBI_FABKL = fbi_plifz = upt_auvz-plifz fbi_webaz = upt_auvz-webaz fbi_wedat = upt_auvw-wevdt fbi_header_po_gen_date = xauko-fbdat * FBI_DC_DP_PO_GEN_DATE = fbi_t621 = 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.

SHOP_ITEM_LISTING_RULES_CHECK





CALL FUNCTION 'SHOP_ITEM_LISTING_RULES_CHECK' EXPORTING date = up_listungs_start item = up_aupo-matnr listing_method = l_verfahren * shop = up_aufi-filnr shop = up_werk_kunnr type_f = alle * sales_unit = up_aufi-aufme IMPORTING wscor = l_wscor TABLES layout_groups = l_t_item_classification err_details = l_t_err_details EXCEPTIONS no_multiple_listing = 01 rules_matching_not_ok = 02 wrong_type = 03 wrong_listing_method = 04.



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