SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost by Period(CO-PC-OBJ-PER) SAP CO

MKKPAF05 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

K_KKHIE_HIERARCHY_SHOW CALL FUNCTION 'K_KKHIE_HIERARCHY_SHOW' EXPORTING i_level = ld_level i_anw = '4' i_init = h_init i_program = 'SAPMKKPA' i_form = 'FCODE_EXTERN' i_kokrs = kkp_ch-kokrs IMPORTING e_tabix = ld_tabix e_function = ld_function TABLES t_excl_func = t_func_workset t_kkhie = t_kkhie EXCEPTIONS invalid_input = 01 no_hierarchy = 02.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING display = ks_display i_kokrs = ks_kokrs popup = ks_popup IMPORTING e_kokrs = ks_kokrs e_action = ks_action EXCEPTIONS not_found = 01.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING display = ks_display i_kokrs = ks_kokrs popup = ks_popup IMPORTING e_kokrs = ks_kokrs e_action = ks_action EXCEPTIONS not_found = 01.

K_VARIANCES_FILL_TABLE_KSS03 CALL FUNCTION 'K_VARIANCES_FILL_TABLE_KSS03' EXPORTING i_kv20a = lrf_kv20a i_objnr = lrf_coiob-objnr i_owaer = lrf_coiob-owaer i_aufnr = lrf_coiob-aufnr i_autyp = lrf_coiob-autyp i_safnr = lrf_coiob-aufnr i_matnr = ld_kkhie-umatn i_procnr = ld_kkhie-uproc i_kstrg = lrf_coiob-kstrg i_werks = lrf_coiob-werks i_user = con_user_kkpx TABLES t_var = lrf_var t_act = ld_bc_alloc t_tar = ld_tc_rollup t_kss03 = lrf_kss03 EXCEPTIONS error_message = 01.

K_VARIANCES_FILL_TABLE_KSS04 CALL FUNCTION 'K_VARIANCES_FILL_TABLE_KSS04' EXPORTING i_kv20a = lrf_kv20a i_step = lrf_step i_user = con_user_kkpx i_no_output = 'X' i_owaer = lrf_owaer TABLES t_var = lrf_var t_act = lrf_bc_alloc t_tar = lrf_targetcosts t_kss04 = ld_kss04_extract EXCEPTIONS error_message = 01.

K_VARIANCES_LIST_WRITE_DETAIL CALL FUNCTION 'K_VARIANCES_LIST_WRITE_DETAIL' EXPORTING i_data_saved = h_buchen i_err_count = ld_err_count i_err_max = ld_err_max i_gjahr1 = kkp_ch-gjahr i_gjahr2 = kkp_ch-gjahr i_user = con_user_kkpx i_objnr = ls_objnr i_perio1 = kkp_ch-perio i_perio2 = kkp_ch-perio i_kokrs = kkp_ch-kokrs i_aufnr = ls_kkhie-aufnr i_safnr = ls_kkhie-saufn i_matnr = ls_kkhie-matnr i_verid = ls_kkhie-verid i_procnr = ls_kkhie-procnr i_kstrg = ls_kkhie-kstrg i_werks = ls_kkhie-werks i_cumul = space TABLES detail = t_kss04_extract t_kss05 = t_kss05 t_kv20a = t_kv20a EXCEPTIONS OTHERS = 99.

K_VARIANCES_LIST_WRITE_RESULT CALL FUNCTION 'K_VARIANCES_LIST_WRITE_RESULT' EXPORTING i_data_saved = h_buchen i_err_count = ld_err_count i_err_max = ld_err_max i_gjahr1 = kkp_ch-gjahr i_gjahr2 = kkp_ch-gjahr i_user = con_user_kkpx i_perio1 = kkp_ch-perio i_perio2 = kkp_ch-perio i_kokrs = kkp_ch-kokrs i_cumul = space i_report = con_prog_kkpx IMPORTING e_objnr_tbx = h_index TABLES result = t_kss03 t_kv20a = t_kv20a EXCEPTIONS OTHERS = 99.

K_VARIANCES_BATCH_LIST_WRITE CALL FUNCTION 'K_VARIANCES_BATCH_LIST_WRITE' EXPORTING i_batch_sum = ' ' i_data_saved = h_buchen i_err_count = ld_err_count i_err_max = ld_err_max i_gjahr1 = kkp_ch-gjahr i_gjahr2 = kkp_ch-gjahr i_perio1 = kkp_ch-perio i_perio2 = kkp_ch-perio i_sortfname_1 = kkp_ch-srtf1 i_sortfname_2 = kkp_ch-srtf2 i_sortfname_3 = kkp_ch-srtf3 i_varnr = kkp_ch-varnr i_xdesc = kkp_ch-xdesc i_user = con_user_kkpx i_filter = kkp_ch-filtn i_filter_val = kkp_ch-filtw i_cumul = space i_report = con_prog_kkpx i_listparam = listparam TABLES result = t_kss03 t_kv20a = t_kv20a.

K_VARIANCE_VERSION_SELECT CALL FUNCTION 'K_VARIANCE_VERSION_SELECT' EXPORTING par_spras = sy-langu par_kokrs = kkp_ch-kokrs par_awoba = 'HP' par_voklk = 'X' par_awvkz = 'X' par_vindx = 'X' par_tcode = h_tcode par_radio = 'X' TABLES tab_kv20a1 = t_kv20a tab_kv20b1 = t_kv20b EXCEPTIONS object_type_invalid = 01.



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