MKKP2F40 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 MKKP2F40 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.
Title: Form Routines for Background Processing
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
K_VARIANCES_BATCH_CONFIG CALL FUNCTION 'K_VARIANCES_BATCH_CONFIG' EXPORTING i_user = con_user_kkp5 IMPORTING e_varnr = par_kkp_ch-varnr e_sortfname_1 = par_kkp_ch-srtf1 e_sortfname_2 = par_kkp_ch-srtf2 e_sortfname_3 = par_kkp_ch-srtf3 e_xdesc = par_kkp_ch-xdesc e_filter = par_filter e_filter_val = par_filter_val TABLES t_kv20a = pta_kv20a EXCEPTIONS no_configuration = 01.
K_VARIANCES_BATCH_CONFIG_46A CALL FUNCTION 'K_VARIANCES_BATCH_CONFIG_46A' EXPORTING I_USER = con_user_kkp5 "note1309799 CHANGING C_LIST_PARAM = ls_kks00c.
GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING mode = 'CURRENT' data_set = ld_prdsn layout = ld_paart line_count = ld_linct line_size = ld_linsz list_name = ld_plist list_text = ld_prtxt no_dialog = con_x " Kein Dialog ( ,X) IMPORTING out_archive_parameters = fdl_arcpa out_parameters = fdl_pripa. " Druck-Parameter
K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING par_dialg = 'X' par_jname = fdl_bjob-jobname par_nonow = ' ' par_nsm37 = 'X' par_nsp01 = ' ' par_print = 'X' par_pripa = fdl_pripa par_rname = con_repid par_pname = 'RKKP2B00' par_sdmsg = 'X' par_stnow = ' ' par_rfcgn = ld_rfcgn IMPORTING par_jname = fdl_bjob-jobname "Job-Name par_jnumm = fdl_bjob-jobcount "Job-Nummer TABLES tab_selpa = tab_selpa EXCEPTIONS delete_report_incorrect = 01 edlin_too_long = 02 generate_report_incorrect = 03 insert_report_incorrect = 04 jname_missing = 05 job_close_incorrect = 06 job_open_incorrect = 07 lock_report_impossible = 08 option_wrong = 09 pname_missing = 10 read_report_incorrect = 11 report_in_trdir_missing = 12 rname_missing = 13 sign_wrong = 14 start_date_impossible = 15 start_date_missing = 16 submit_incorrect = 17.
K_OBJECT_SELECTION_CRIT_GET CALL FUNCTION 'K_OBJECT_SELECTION_CRIT_GET' EXPORTING transparent = 'X' short_field_names = 'X' TABLES it_seltab = t_selpa.
K_VARIANCE_VERSION_SELECT CALL FUNCTION 'K_VARIANCE_VERSION_SELECT' EXPORTING par_spras = sy-langu par_awoba = con_oa_kstrg par_voklk = ' ' par_awvkz = 'X' par_vindx = 'X' par_kokrs = par_kkp_ch-kokrs par_tcode = par_tcode par_radio = ' ' TABLES tab_kv20a1 = pta_kv20a tab_kv20b1 = pta_kv20b EXCEPTIONS object_type_invalid = 1 OTHERS = 2.
POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING defaultoption = '1' textline1 = text-050 textline2 = text-051 textline3 = text-052 text_option1 = text-053 text_option2 = text-054 titel = text-055 IMPORTING answer = hlp_answer EXCEPTIONS OTHERS = 1.
CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING object_id = con_msgoid aplid = 'KKP' EXCEPTIONS message_type_not_valid = 1 unknown_aplid = 2 unknown_object_id = 3 OTHERS = 4.
CM_F_LOAD CALL FUNCTION 'CM_F_LOAD' EXPORTING cmf_nr = hlp_cmfnr EXCEPTIONS not_active = 1 protocol_not_found = 2 wrong_object_id = 3 OTHERS = 4.
CM_F_ANALYSIS CALL FUNCTION 'CM_F_ANALYSIS' EXPORTING aplid = 'KKP' EXCEPTIONS not_active = 1 OTHERS = 2.
K_KKB_LIST_FOR_ITEM_SELECTION CALL FUNCTION 'K_KKB_LIST_FOR_ITEM_SELECTION' EXPORTING i_title = text-nbv i_selection = 'X' "i_screen_start_column = 3 "i_screen_start_line = 1 "i_screen_end_column = 33 "i_screen_end_line = 10 i_checkbox_fieldname = 'VBELN' i_tabname = 'AP_T_OBJ_MOD' it_fieldcat = ap_t_fieldcat IMPORTING es_selfield = ap_selfield e_exit = ap_exit TABLES t_outtab = ap_t_obj_mod EXCEPTIONS OTHERS = 1.
K_KKP_PROC_PARAM_GET CALL FUNCTION 'K_KKP_PROC_PARAM_GET' EXPORTING i_user = con_user_kkp5 i_hibea = kkp_ch-hibea i_batch = kkp_ch-batch i_testl = kkp_ch-testl i_list = kkp_ch-list i_avflg = kkp_ch-avflg IMPORTING e_hibea = kkp_ch-hibea e_batch = kkp_ch-batch e_testl = kkp_ch-testl e_list = kkp_ch-list e_avflg = kkp_ch-avflg EXCEPTIONS OTHERS = 1.
CO_APPL_LOG_INIT CALL FUNCTION 'CO_APPL_LOG_INIT' EXPORTING subobject = 'KKKH' extnumber = 'VARIANCE' exitprog = 'SAPMKKP2' exitform = 'VARIANCES_PROC_BY_AL' *-----fill at PUT at earliest, otherwise doubled * tables * parameter = t_spar EXCEPTIONS exception_from_call_function = 1 OTHERS = 2.
APPL_LOG_WRITE_MESSAGE_PARAMS CALL FUNCTION 'APPL_LOG_WRITE_MESSAGE_PARAMS' EXPORTING message = fdl_message update_or_insert = 'I' TABLES parameters = t_spar EXCEPTIONS object_not_found = 1 subobject_not_found = 2 no_text_and_no_userexit = 3 OTHERS = 4.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.