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

ML01AFCD1 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_ALLOCATION_TABLE_CHECK CALL FUNCTION 'WAUF_ALLOCATION_TABLE_CHECK' IMPORTING ex_aenderung_pstap = h_aenderung_pstap ex_error_msg = h_error_msg TABLES im_ex_aupo = xaupo im_ex_aufi = xaufi im_ex_aulw = xaulw im_ex_auvz = xauvz im_ex_auvw = xauvw im_ex_auvt = xauvt ex_messg = messg im_kontrakt_pos = kontrakt_pos_tab "auft*5/99A CHANGING im_ex_auko = xauko.

WALL_COLLECT_AND_DISPLAY_PROT CALL FUNCTION 'WALL_COLLECT_AND_DISPLAY_PROT' EXPORTING fbi_name = b fbi_msg_id = prot-msgcl fbi_msg_no = '466' TABLES fbt_msg_tab = messg.

WAUF_T001W_LESEN CALL FUNCTION 'WAUF_T001W_LESEN' EXPORTING im_werks = xaufi-fiwrk IMPORTING ex_t001w = t001w EXCEPTIONS no_valid_input = 1 no_record_found = 2.

WAUF_V_T629_LESEN CALL FUNCTION 'WAUF_V_T629_LESEN' EXPORTING im_sperr = xaufi-sperr IMPORTING ex_v_t629 = l_v_t629 EXCEPTIONS no_record_found = 1 OTHERS = 2.

WAUF_KNA1_READ CALL FUNCTION 'WAUF_KNA1_READ' EXPORTING im_kunnr = xaufi-vzent IMPORTING ex_kna1 = *kna1 EXCEPTIONS no_kunnr = 1 no_record_found = 2 OTHERS = 3.

VENDOR_MASTER_DATA_SELECT_00 CALL FUNCTION 'VENDOR_MASTER_DATA_SELECT_00' EXPORTING i_lfa1_lifnr = xaufi-lfnru IMPORTING a_lfa1 = *lfa1 EXCEPTIONS vendor_not_found = 1 OTHERS = 2.

WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = haupo-matnr fbi_base_unit = haupo-meins fbi_quantity = xaufi-pmngu fbi_alloc_unit = xaufi-aufme fbi_order_quantity = xaufi-bstmg fbi_order_unit = xaufi-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 = haulw-menge fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = haulw-weprz.

WAUF_QUANTITY_FROM_PERCENTAGE CALL FUNCTION 'WAUF_QUANTITY_FROM_PERCENTAGE' EXPORTING fbi_material = haupo-matnr fbi_base_unit = haupo-meins fbi_quantity = xaufi-wmnge fbi_alloc_unit = xaufi-aufme fbi_order_quantity = xaufi-bstmg fbi_order_unit = xaufi-bstme fbi_quantity_remainder = h_restmenge_w fbi_order_quantity_remainder = h_restmenge_bestellung fbi_percentage_remainder = h_rest_prozent fbi_no_order_optimization = kreuz IMPORTING fbo_quantity_delivery_ph = haulw-wmnge 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 = haupo-matnr * fbi_base_unit = haupo-meins * fbi_quantity = xaufi-imngu * fbi_alloc_unit = xaufi-aufme * fbi_order_quantity = xaufi-bstmg * fbi_order_unit = xaufi-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 = haulw-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 = haupo-matnr fbi_base_unit = haupo-meins fbi_quantity = xaufi-imngu fbi_alloc_unit = xaufi-aufme fbi_order_quantity = xaufi-bstmg fbi_order_unit = xaufi-bstme fbi_quantity_remainder = h_restmenge_b fbi_order_quantity_remainder = h_restmenge_bestellung * auft*5/note 675952 * fbi_percentage_remainder = h_rest_prozent fbi_percentage_remainder = h_rest_prozent_w fbi_percentage_decimals_5 = h_prozent_dec_5 IMPORTING fbo_quantity_delivery_ph = haulw-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 = haupo-matnr fbi_base_unit = haupo-meins fbi_quantity = xaufi-imngu fbi_alloc_unit = xaufi-aufme fbi_order_quantity = xaufi-bstmg fbi_order_unit = xaufi-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 = haulw-imngl fbo_order_quantity_delivery_ph = h_bestellmenge CHANGING fbc_percentage = h_prozent.



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