SAP Reports / Programs | Controlling | Overhead Cost Controlling | Cost Center Accounting(CO-OM-CCA) SAP CO

MKPT5F01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' IMPORTING e_kokrs = cd_kokrs.

K_OBJECT_SELECTION_ECODE CALL FUNCTION 'K_OBJECT_SELECTION_ECODE' EXPORTING ecode = ld_okcode EXCEPTIONS not_found = 1.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING popup = '1' IMPORTING e_kokrs = rkpt5_dynp-kokrs.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = cd_kokrs IMPORTING e_tka01 = ls_tka01.

K_LOGSYSTEM_CHECK CALL FUNCTION 'K_LOGSYSTEM_CHECK' EXPORTING i_kokrs = cd_kokrs.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING gjahr = id_gjahr kokrs = id_kokrs IMPORTING e_tka00 = ls_tka00 e_tka01 = ls_tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.

K_PERIODS_GET_FOR_KOKRS CALL FUNCTION 'K_PERIODS_GET_FOR_KOKRS' EXPORTING gjahr = id_gjahr kokrs = id_kokrs i_check_periods = true IMPORTING anzbp = cd_anzbp EXCEPTIONS OTHERS = 1.

K_VERSN_READ CALL FUNCTION 'K_VERSN_READ' EXPORTING i_kokrs = id_kokrs i_versn = id_versn i_gjahr = id_gjahr i_actvt = '72' bypassing_buffer = true IMPORTING e_tka09 = ls_tka09 e_tkt09 = ls_tkt09 EXCEPTIONS no_authority = 1 OTHERS = 2.

K_PLAN_CHECK_PLANVALUES CALL FUNCTION 'K_PLAN_CHECK_PLANVALUES' EXPORTING i_kokrs = is_dynp-kokrs i_versn = is_dynp-versn i_gjahr = is_dynp-gjahr i_check_cca = is_dynp-flg_ks i_check_orders = is_dynp-flg_or i_check_projects = is_dynp-flg_pr i_check_bps = is_dynp-flg_bp * I_CHECK_HP missing, but function in KPU1 i_plint_only = false IMPORTING e_values_found = lb_values_found.

K_OBJECT_SELECTION_FCODE CALL FUNCTION 'K_OBJECT_SELECTION_FCODE' EXPORTING fcode = ld_okcode EXCEPTIONS not_found = 1.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = cs_dynp-versn IMPORTING output = cs_dynp-versn.

F4IF_FIELD_VALUE_REQUEST CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST' EXPORTING tabname = 'CCSS' fieldname = 'VERSN' searchhelp = 'CO_VERSN_GJAHR' shlpparam = 'VERSN' value = ld_versn_value callback_program = 'SAPMKPT5' callback_form = 'CALLBACK_F4_VERSN' TABLES return_tab = lt_return_tab EXCEPTIONS OTHERS = 1.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog "#EC DOM_EQUAL dynumb = sy-dynnr TABLES dynpfields = lt_dynpfields.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog "#EC DOM_EQUAL dynumb = sy-dynnr TABLES dynpfields = lt_dynpfields.

G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = ld_period variant = id_lmona year = id_gjahr IMPORTING from_date = ld_datab to_date = ld_datbi last_normal_period = ld_last_normal_period EXCEPTIONS OTHERS = 4.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING no_dialog = true mode = 'CURRENT' immediately = false line_count = 65 line_size = 80 list_text = ld_prtxt new_list_id = true report = 'SAPMKPT5' IMPORTING out_parameters = ls_priparamx.

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' EXPORTING par_dialg = true par_nsm37 = false par_print = is_dynp-flg_proto par_pripa = ls_priparamx par_rname = 'RKPT5BAT' par_pname = lc_dummyrep par_sdmsg = true TABLES tab_selpa = lt_selpa.

K_OBJECT_SELECTION_CRIT_GET CALL FUNCTION 'K_OBJECT_SELECTION_CRIT_GET' IMPORTING variant = ld_variant TABLES it_seltab = lt_seltab.

K_OBJECT_SELECTION_CRIT_GET





CALL FUNCTION 'K_OBJECT_SELECTION_CRIT_GET'.

K_OBJECT_SELECTION_CRIT_FILL CALL FUNCTION 'K_OBJECT_SELECTION_CRIT_FILL' EXPORTING selart = is_info-selart variant = id_variant TABLES it_cosel2 = it_seltab.

K_OBJECT_SELECTION_RUN CALL FUNCTION 'K_OBJECT_SELECTION_RUN' EXPORTING i_kokrs = is_dynp-kokrs i_date_from = is_info-datab "#EC DOM_EQUAL i_date_to = is_info-datbi "#EC DOM_EQUAL i_vrgng = is_info-kass_vrgng TABLES it_objnr = ct_objnr.

OBJECTS_GET_FOR_KOKRS_KS CALL FUNCTION 'OBJECTS_GET_FOR_KOKRS_KS'.

OBJECTS_GET_FOR_KOKRS_KL CALL FUNCTION 'OBJECTS_GET_FOR_KOKRS_KL'.

OBJECTS_GET_FOR_KOKRS_OR CALL FUNCTION 'OBJECTS_GET_FOR_KOKRS_OR'.

OBJECTS_GET_FOR_KOKRS_BP CALL FUNCTION 'OBJECTS_GET_FOR_KOKRS_BP'.

OBJECTS_GET_FOR_KOKRS_PR CALL FUNCTION 'OBJECTS_GET_FOR_KOKRS_PR'.

OBJECTS_GET_FOR_KOKRS_HP CALL FUNCTION 'OBJECTS_GET_FOR_KOKRS_HP'.

K_PLAN_TO_PLAN_COPY CALL FUNCTION 'K_PLAN_TO_PLAN_COPY' EXPORTING id_kokrs = is_dynp-kokrs is_sinfo = cs_sinfo is_tinfo = cs_tinfo is_ctrl = cs_ctrl id_bltxt = is_info-bltxt id_revaluation = true IMPORTING es_result = cs_result TABLES ct_objnr = lt_objnr ct_vrgng = ct_vrgng ct_vrgng_txt = ct_vrgng_txt et_mesg = ct_mesg et_list = ct_list * ct_callback = EXCEPTIONS OTHERS = 1.

OBJECT_IDENTIFICATION_GET CALL FUNCTION 'OBJECT_IDENTIFICATION_GET' EXPORTING objnr = id_objnr no_kokrs = true IMPORTING ident_obart = cd_obart ident_objid = ld_objid.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING show_linno = false EXCEPTIONS no_messages = 1.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-023 diagnosetext2 = text-024 * diagnosetext3 = textline1 = text-025 * textline2 = titel = text-026 IMPORTING answer = ld_answer.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = it_mesg-arbgb msgty = it_mesg-msgty msgv1 = it_mesg-msgv1 msgv2 = it_mesg-msgv2 msgv3 = it_mesg-msgv3 msgv4 = it_mesg-msgv4 txtnr = it_mesg-txtnr zeile = it_mesg-zeile.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = it_mesg-arbgb msgty = it_mesg-msgty msgv1 = it_mesg-msgv1 msgv2 = it_mesg-msgv2 msgv3 = it_mesg-msgv3 msgv4 = it_mesg-msgv4 txtnr = it_mesg-txtnr zeile = it_mesg-zeile.

K_GET_ACTIVE_APPLICATIONS_EHP5 CALL FUNCTION 'K_GET_ACTIVE_APPLICATIONS_EHP5' IMPORTING fm_active = gb_fund_active cogs_active = gb_funct_active grant_active = gb_grant_active budget_period_active = gb_bud_per_active_enhp5.



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