ML01AFCD2 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 ML01AFCD2 into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
FUNCTION_EXECUTE CALL FUNCTION 'FUNCTION_EXECUTE' EXPORTING programm = t180-agidv kopfgruppe = t185-kopgr positionsgruppe = t185-posgr funktion = fcode IMPORTING cua_status = t185v-status cua_titel = t185v-ctitel cua_para1 = t185v-para1 cua_para2 = t185v-para2 cua_para3 = t185v-para3 cua_para4 = t185v-para4 folgefunktion = fcode dunkel = t185-dunkel leave = flag_leave leave_screen = flag_leave_screen.
FUNCTION_EXECUTE CALL FUNCTION 'FUNCTION_EXECUTE' EXPORTING programm = t180-agidv kopfgruppe = t185-kopgr positionsgruppe = t185-posgr funktion = 'ENDE' IMPORTING cua_status = t185v-status cua_titel = t185v-ctitel cua_para1 = t185v-para1 cua_para2 = t185v-para2 cua_para3 = t185v-para3 cua_para4 = t185v-para4 folgefunktion = fcode dunkel = t185-dunkel leave = flag_leave leave_screen = flag_leave_screen.
SCREEN_SEQUENCE_CONTROL CALL FUNCTION 'SCREEN_SEQUENCE_CONTROL' EXPORTING programm = t180-agidv kopfgruppe = t620-kogrp positionsgruppe = t621-posgr funktion = fcode IMPORTING cua_status = t185v-status cua_titel = t185v-ctitel cua_para1 = t185v-para1 cua_para2 = t185v-para2 cua_para3 = t185v-para3 cua_para4 = t185v-para4 folgefunktion = fcode dunkel = t185-dunkel leave = flag_leave.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.