MKAUFO01_D650_INIT 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 MKAUFO01_D650_INIT 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!
KAUF_ORDER_RESET CALL FUNCTION 'KAUF_ORDER_RESET' EXPORTING i_aufnr = wl_aufnr-aufnr EXCEPTIONS order_not_in_buffer = 1 illegal_input = 2 OTHERS = 3.
K_ORDER_SELECTION_SET_KOKRS CALL FUNCTION 'K_ORDER_SELECTION_SET_KOKRS' "Hw411765 EXPORTING i_kokrs = coas-kokrs .
K_KOKRS_SET * CALL FUNCTION 'K_KOKRS_SET' * IMPORTING * e_kokrs = coas-kokrs * EXCEPTIONS * OTHERS = 1.
RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' "reads last selection IMPORTING act_plvar = ld_plvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.
K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' IMPORTING e_kokrs = coas-kokrs EXCEPTIONS OTHERS = 1.
KAUF_ORDER_READ CALL FUNCTION 'KAUF_ORDER_READ' EXPORTING i_actvt = mkauf_modus i_aufnr = coas-aufnr i_autyp_erl = autyp_erl i_coas = *coas i_afko = afko i_afpo = afpo IMPORTING e_afko = afko e_afpo = afpo e_coas = coas e_kauf = kauf EXCEPTIONS auart_not_found = 1 foreign_lock = 2 no_authority = 3 order_not_found = 4 order_type_not_valid = 5 wrong_input = 6 logsystem_inconsistent = 7 error_message = 8 OTHERS = 9.
KAUF_ORDER_RESET CALL FUNCTION 'KAUF_ORDER_RESET' EXPORTING i_aufnr = coas-aufnr EXCEPTIONS order_not_in_buffer = 0 "should not be a problem illegal_input = 2 OTHERS = 3.
KAUF_ORDER_RESET CALL FUNCTION 'KAUF_ORDER_RESET' EXPORTING i_aufnr = coas-aufnr * "Hw562515 >> EXCEPTIONS order_not_in_buffer = 1 illegal_input = 2 OTHERS = 3.
KAUF_ORDER_RESET CALL FUNCTION 'KAUF_ORDER_RESET' EXPORTING i_index = kauf-auf_index EXCEPTIONS order_not_in_buffer = 1 illegal_input = 2 OTHERS = 3.
K_ORDER_SELECTION_DIALOG CALL FUNCTION 'K_ORDER_SELECTION_DIALOG' EXPORTING init = ' ' IMPORTING variant = codia-variant EXCEPTIONS dialog_cancelled = 1 OTHERS = 2.
RS_VARIANT_CHANGE CALL FUNCTION 'RS_VARIANT_CHANGE' EXPORTING report = 'RKOSEL00' variant = codia-variant EXCEPTIONS not_authorized = 1 not_executed = 2 no_report = 3 report_not_existent = 4 report_not_supplied = 5 variant_locked = 6 variant_not_existent = 7 variant_protected = 8 OTHERS = 9.
RS_VARIANT_DISPLAY CALL FUNCTION 'RS_VARIANT_DISPLAY' EXPORTING report = 'RKOSEL00' variant = codia-variant EXCEPTIONS no_report = 1 report_not_existent = 2 report_not_supplied = 3 variant_not_existent = 4 variant_not_supplied = 5 variant_protected = 6 OTHERS = 7.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.