SAP Reports / Programs | Controlling | Product Cost Controlling | Cost Object Controlling(CO-PC-OBJ) SAP CO

MKKP2F20 SAP ABAP INCLUDE - Form Routines E to L







MKKP2F20 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 MKKP2F20 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 MKKP2F20. "Basic submit
SUBMIT MKKP2F20 AND RETURN. "Return to original report after report execution complete
SUBMIT MKKP2F20 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Form Routines E to L


INCLUDES used within this REPORT MKKP2F20

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_VARIANCES_DEQUEUE CALL FUNCTION 'K_VARIANCES_DEQUEUE' TABLES tenq_ccss = tab_sav_ccss.

K_VARIANCES_ENQUEUE CALL FUNCTION 'K_VARIANCES_ENQUEUE' EXPORTING enq_gjahr = gjahr enq_kokrs = kokrs enq_objnr = objnr TABLES tenq_ccss = tab_sav_ccss EXCEPTIONS wrong_input = 1 foreign_lock = 2 system_failure = 4.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING object_dependent = 'X' arbgb = 'KV' msgnr = '030' msgty = 'E' EXCEPTIONS OTHERS = 9.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING object_dependent = 'X' arbgb = 'KV' msgnr = '028' msgty = 'E' msgv1 = syst-msgv1 EXCEPTIONS OTHERS = 9.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING object_dependent = 'X' arbgb = 'KV' msgnr = '029' msgty = 'E' msgv1 = syst-msgv1 EXCEPTIONS OTHERS = 9.

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

K_OBJECT_SELECTION_CRIT_FILL CALL FUNCTION 'K_OBJECT_SELECTION_CRIT_FILL' EXPORTING selart = hlp_selart TABLES it_cosel2 = pt_selpa EXCEPTIONS OTHERS = 3.

K_OBJECT_SELECTION_RUN CALL FUNCTION 'K_OBJECT_SELECTION_RUN' EXPORTING i_kokrs = kkp_ch-kokrs i_vrgng = 'KVAR' TABLES it_objnr = tab_selected_objects EXCEPTIONS OTHERS = 4.

K_KSTRG_LINK_CHECK CALL FUNCTION 'K_KSTRG_LINK_CHECK' EXPORTING aufnr = tab_selected_objects-objnr+2(12) top_read = 'X' IMPORTING e_ckph = ckph EXCEPTIONS no_link = 1 no_root = 2 OTHERS = 3 .

K_CKPH_GET_ROOT_PATH CALL FUNCTION 'K_CKPH_GET_ROOT_PATH' EXPORTING kstrg = tab_selected_objects-objnr+2(12) TABLES ckph_path = ckph_root_path EXCEPTIONS not_found = 01 no_root = 02 OTHERS = 03.

CM_F_PROTOCOL_PRINT CALL FUNCTION 'CM_F_PROTOCOL_PRINT' EXPORTING aplid = 'KKP' headline = ' ' new_list_id = 'X' only_msgtyp = ' ' EXCEPTIONS not_active = 01 no_protocol = 02.

K_OBJECT_SELECTION_SCREEN_SET CALL FUNCTION 'K_OBJECT_SELECTION_SCREEN_SET' EXPORTING selart = hlp_control-selart oneobject = ld_selection-one i_vrgng = ld_selection-vrgng IMPORTING repid_sub = hlp_progn dynnr_sub = hlp_dynnr * selart_txt = EXCEPTIONS not_supported = 1 OTHERS = 2.

KPEP_WLA_CHECK_ACTIVE CALL FUNCTION 'KPEP_WLA_CHECK_ACTIVE' IMPORTING is_active = ld_worklist_active .

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING gjahr = kfk_kkpch-gjahr kokrs = kfk_kkpch-kokrs IMPORTING e_tka00 = tka00 e_tka01 = tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3 .

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = kfk_kkpch-gjahr i_periv = tka01-lmona i_poper = kfk_kkpch-perio IMPORTING e_date = ld_datbi.

K_OBJECT_ID_GET CALL FUNCTION 'K_OBJECT_ID_GET' EXPORTING par_objnr = -objnr IMPORTING par_objid = kkp_cm-objid EXCEPTIONS wrong_object_type = 1 OTHERS = 99.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = kkp_cm subobj = kkp_cm_sub object_id = 'KKP' EXCEPTIONS OTHERS = 1.

K_KSTRG_CHECK CALL FUNCTION 'K_KSTRG_CHECK' EXPORTING kstrg = -kstrg datum = ld_datbi vrgng = con_vrgng-abwei IMPORTING e_ckphv = ckphv e_ckphs = ckphs EXCEPTIONS not_found = 1 activity_not_allowed = 2 posting_not_allowed = 3 OTHERS = 9.

CM_F_MESSAGE





CALL FUNCTION 'CM_F_MESSAGE' EXPORTING object_dependent = 'X' arbgb = 'KZ' msgnr = '310' msgty = sy-msgty msgv1 = kfk_tabktr-kstrg EXCEPTIONS OTHERS = 9.

KPEP_WLA_CHECK_ACTIVE CALL FUNCTION 'KPEP_WLA_CHECK_ACTIVE' IMPORTING is_active = flg_wl_active .

K_OBJECT_ID_GET CALL FUNCTION 'K_OBJECT_ID_GET' EXPORTING par_objnr = ld_objnr IMPORTING par_objid = kkp_cm-objid EXCEPTIONS wrong_object_type = 1 OTHERS = 99.

CM_F_SET_OBJECT CALL FUNCTION 'CM_F_SET_OBJECT' EXPORTING object = kkp_cm subobj = kkp_cm_sub object_id = 'KKP' EXCEPTIONS OTHERS = 1.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING gjahr = kfs_kkpch-gjahr kokrs = kfs_kkpch-kokrs IMPORTING e_tka00 = tka00 e_tka01 = tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3 .

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = kfs_kkpch-gjahr i_periv = tka01-lmona i_poper = kfs_kkpch-perio IMPORTING e_date = ld_datbi.

K_KSTRG_CHECK CALL FUNCTION 'K_KSTRG_CHECK' EXPORTING kstrg = kfs_kkpch-kstrg datum = ld_datbi vrgng = con_vrgng-abwei spras = sy-langu * v_kokrs = kfs_kkpch-kokrs IMPORTING e_ckphv = ckphv e_ckphs = ckphs EXCEPTIONS not_found = 1 activity_not_allowed = 2 posting_not_allowed = 3 wrong_kokrs = 7 kstrg_not_activ = 8 OTHERS = 9.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING object_dependent = 'X' arbgb = 'KZ' msgnr = '303' msgty = 'E' msgv1 = kkp_ch-kstrg EXCEPTIONS OTHERS = 9.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING display = 'X' i_kokrs = ckphv-kokrs IMPORTING e_kokrs = kfs_kkpch-kokrs EXCEPTIONS not_found = 01.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING object_dependent = 'X' arbgb = 'KZ' msgnr = '310' msgty = sy-msgty msgv1 = kfs_kkpch-kstrg EXCEPTIONS OTHERS = 9.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'KZ' msgnr = '405' msgty = 'E' msgv1 = kfs_kkpch-kokrs msgv2 = ckphv-kokrs msgv3 = kfs_kkpch-kstrg msg_on_screen = 'X' object_dependent = space EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'KZ' msgnr = '408' msgty = 'E' msgv1 = kfs_kkpch-kokrs msgv2 = kfs_kkpch-gjahr msg_on_screen = 'X' object_dependent = space EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

BSV_GET_TEXT_VRGNG CALL FUNCTION 'BSV_GET_TEXT_VRGNG' EXPORTING langu = sy-langu vrgng = con_vrgng-abwei IMPORTING txt = kf_txt.



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