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

MKKPAF01 SAP ABAP INCLUDE - Check Routine Screen







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


Text pool values


Title: Check Routine Screen


INCLUDES used within this REPORT MKKPAF01

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:

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'KV' msgnr = '059' msgty = 'E' msgv1 = kkp_ch-perio 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 = cmf-kk msgnr = '401' msgty = 'E' msg_on_screen = 'X' object_dependent = space EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = h_gjahr i_periv = tka01-lmona i_poper = h_perio IMPORTING e_date = kkp_ch-wsdat.

K_DATE_TO_PERIOD_CONVERT CALL FUNCTION 'K_DATE_TO_PERIOD_CONVERT' EXPORTING i_date = kkp_ch-wsdat i_kokrs = kkp_ch-kokrs IMPORTING e_gjahr = h_gjahr e_perio = h_perio.

K_DATE_TO_PERIOD_CONVERT CALL FUNCTION 'K_DATE_TO_PERIOD_CONVERT' EXPORTING i_date = kkp_ch-wsdat i_kokrs = f_ckph-kokrs IMPORTING e_gjahr = h_gjahr e_perio = h_perio.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = cmf-kk msgnr = '406' msgty = 'E' msg_on_screen = 'X' object_dependent = space EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = h_gjahr i_periv = tka01-lmona i_poper = h_perio IMPORTING e_date = bg_datab.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = h_gjahr i_periv = tka01-lmona i_poper = h_perio IMPORTING e_date = bg_datbi.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = cmf-kk msgnr = '302' msgty = 'E' msg_on_screen = 'X' object_dependent = space EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING gjahr = ca_kkph-gjahr kokrs = ca_kkph-kokrs IMPORTING e_tka00 = tka00 e_tka01 = tka01 EXCEPTIONS not_found = 1 "Kokrs nicht vorhanden not_found_gjahr = 2 "Gjahr nicht vorhanden OTHERS = 9.

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

K_KSTRG_CHECK CALL FUNCTION 'K_KSTRG_CHECK' EXPORTING kstrg = ca_kstrg datum = ca_datbi vrgng = ca_activity spras = sy-langu * v_kokrs = ca_kkph-kokrs IMPORTING e_ckphv = ca_ckphv EXCEPTIONS activity_not_allowed = 01 katyp_not_allowed = 02 not_found = 03 posting_not_allowed = 04 wrong_bukrs = 05 wrong_gsber = 06 wrong_kokrs = 07 error_message = 08 kstrg_not_activ = 09 OTHERS = 99.

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

BSV_GET_TEXT_VRGNG CALL FUNCTION 'BSV_GET_TEXT_VRGNG' EXPORTING langu = sy-langu vrgng = ca_activity IMPORTING txt = ca_txt.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = cmf-kk msgnr = '062' msgty = 'E' msgv1 = ca_txt msgv2 = ca_kstrg msg_on_screen = ca_msg object_dependent = 'X' EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = cmf-kk msgnr = '002' msgty = 'E' msgv1 = ca_kstrg msg_on_screen = ca_msg object_dependent = 'X' 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 = ca_activity IMPORTING txt = ca_txt.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = cmf-kk msgnr = '062' msgty = 'E' msgv1 = ca_txt msgv2 = ca_kstrg msg_on_screen = ca_msg object_dependent = 'X' EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

CM_F_MESSAGE





CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = cmf-kk msgnr = '405' msgty = 'E' msgv1 = ca_kkph-kokrs msgv2 = ca_ckphv-kokrs msgv3 = ca_kkph-kstrg msg_on_screen = 'X' object_dependent = 'X' EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

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

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = sy-msgid msgnr = ca_msgno msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 msg_on_screen = ' ' object_dependent = 'X' EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = gp_date i_periv = gp_periv IMPORTING e_buper = gp_buper e_gjahr = gp_gjahr EXCEPTIONS input_false = 01 t009_notfound = 02 t009b_notfound = 03.

K_OBJECT_SELECTION_CRIT_GET CALL FUNCTION 'K_OBJECT_SELECTION_CRIT_GET' EXPORTING transparent = 'X' TABLES it_seltab = t_selpa.

CM_F_STORE CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = 'KKP' in_update_task = ' ' i_cmf_nr = h_cmfnr IMPORTING e_cmf_nr = h_cmfnr EXCEPTIONS not_active = 1 store_and_load_not_activ = 2 OTHERS = 3.

CO_APPL_LOG_PUT CALL FUNCTION 'CO_APPL_LOG_PUT' TABLES parameter = t_al_param EXCEPTIONS exception_from_call_function = 1 OTHERS = 2.

CM_F_STORE CALL FUNCTION 'CM_F_STORE' EXPORTING aplid = 'KKP' in_update_task = ' ' i_cmf_nr = h_cmfnr IMPORTING e_cmf_nr = h_cmfnr EXCEPTIONS not_active = 1 store_and_load_not_activ = 2 OTHERS = 3.

CO_APPL_LOG_PUT CALL FUNCTION 'CO_APPL_LOG_PUT' TABLES parameter = t_al_param EXCEPTIONS exception_from_call_function = 1 OTHERS = 2.

POPUP_GET_VALUES_USER_HELP CALL FUNCTION 'POPUP_GET_VALUES_USER_HELP' EXPORTING popup_title = text-brp TABLES fields = t_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

CO_APPL_LOG_DISPLAY CALL FUNCTION 'CO_APPL_LOG_DISPLAY' EXPORTING subobject = 'KKKH' extnumber = 'DISTRIBUTION*' EXCEPTIONS exception_from_call_function = 1 OTHERS = 2.

POPUP_GET_VALUES_USER_HELP CALL FUNCTION 'POPUP_GET_VALUES_USER_HELP' EXPORTING popup_title = text-avl IMPORTING returncode = h_answer TABLES fields = t_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

APPL_LOG_READ_DB CALL FUNCTION 'APPL_LOG_READ_DB' EXPORTING object = 'COAC' subobject = 'KKKH' external_number = 'DISTRIBUTION*' date_from = '00000000' date_to = h_al_ddat log_class = '1' * PROGRAM_NAME = '*' * TRANSACTION_CODE = '*' * USER_ID = ' ' * MODE = '+' IMPORTING number_of_logs = h_al_dnum TABLES header_data = t_header_data header_parameters = t_header_para messages = t_av_messages message_parameters = t_av_messages_para EXCEPTIONS OTHERS = 1.

CM_F_DELETE_LOG_ON_DB CALL FUNCTION 'CM_F_DELETE_LOG_ON_DB' EXPORTING aplid = 'KKP' cmf_nr = h_cmfnr EXCEPTIONS OTHERS = 1.

CO_APPL_LOG_DELETE CALL FUNCTION 'CO_APPL_LOG_DELETE' EXPORTING subobject = 'KKKH' extnumber = 'DISTRIBUTION*' date_to = h_al_ddat log_class = '1' IMPORTING number_of_deleted_logs = h_al_dnum EXCEPTIONS exception_from_call_function = 1 OTHERS = 2.

TH_SAPREL CALL FUNCTION 'TH_SAPREL' EXPORTING dynpro = 'P' EXCEPTIONS OTHERS = 99.

K_DATE_TO_PERIOD_CONVERT CALL FUNCTION 'K_DATE_TO_PERIOD_CONVERT' EXPORTING i_date = sy-datlo i_kokrs = ws_kkph-kokrs IMPORTING e_gjahr = ws_kkph-gjahr e_perio = ws_kkph-perio.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = ws_kkph-gjahr i_periv = ws_lmona i_poper = ws_kkph-perio IMPORTING e_date = ws_kkph-wsdat.

K_BULK_PROCESSING_CURR_POPUP CALL FUNCTION 'K_BULK_PROCESSING_CURR_POPUP' EXPORTING trancur = ws_waers trancur_flag = '1' typecur = '001D' typecur_flag = '0' valuta = ws_kkph-wsdat valuta_flag = '2' IMPORTING valuta = ws_kkph-wsdat.

MB_ALL_MOVEMENTS_VALUATED CALL FUNCTION 'MB_ALL_MOVEMENTS_VALUATED' EXPORTING i_budat = kkp_ch-wsdat * I_BUKRS = i_kokrs = kkp_ch-kokrs * I_WERKS = i_objnr = objnr i_bypassing_buffer = bypb * IMPORTING * E_STATUS = EXCEPTIONS exception_internal_error = 1 non_valuated_record_found = 2 OTHERS = 3 .




CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = arbgb msgnr = msgnr msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 msg_on_screen = ' ' object_dependent = space EXCEPTIONS mesage_type_not_valid = 01 no_sy_message = 02.

KPEP_WLA_CHECK_ACTIVE CALL FUNCTION 'KPEP_WLA_CHECK_ACTIVE' IMPORTING is_active = ld_worklist_active.

KPEP_WLA_ADD_MESSAGE CALL FUNCTION 'KPEP_WLA_ADD_MESSAGE' EXPORTING msgty = sy-msgty msgid = sy-msgid msgno = sy-msgno msgv1 = sy-msgv1 EXCEPTIONS OTHERS = 99 .



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