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

MKKPAF07 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

ENQUEUE_EKACTVE CALL FUNCTION 'ENQUEUE_EKACTVE' EXPORTING kokrs = ea_kokrs activity = ea_actty _scope = '3' EXCEPTIONS foreign_lock = 1.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'KZ' msgnr = '460' msgty = 'E' msgv1 = ea_actty msgv2 = sy-msgv1 msg_on_screen = 'X' object_dependent = space EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

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 = h_answer EXCEPTIONS OTHERS = 1.

CM_F_INITIALIZE CALL FUNCTION 'CM_F_INITIALIZE' EXPORTING object_id = 'KKP' 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 = h_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_kkpx 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 EXCEPTIONS OTHERS = 1.

CO_APPL_LOG_INIT CALL FUNCTION 'CO_APPL_LOG_INIT' EXPORTING subobject = 'KKKH' extnumber = text exitprog = 'SAPMKKPA' exitform = 'ALLOC_PROC_BY_AL' *----> Parameter werden erst beim Put mitgegeben, da sonst doppelt * 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 = f_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.



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