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

COKPR003 SAP ABAP Report - Process CO Resource Prices







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


Text pool values


Process CO Resource Prices
Title: Process CO Resource Prices
Text Symbol: 022 = Change the resource price?
Text Symbol: 023 = Process CO Resource Prices
Text Symbol: 024 = The resource prices selected are to be changed
Text Symbol: 030 = The resource prices for your entries on the selection screen
Text Symbol: 031 = will be changed
Text Symbol: 033 = Change the resource prices from selection screen
Text Symbol: 101 = Selection (Target)
Text Symbol: 102 = Controlling Area:
Text Symbol: 103 = Fiscal Year:
Text Symbol: 104 = Version:
Text Symbol: 105 = Sel.List
Text Symbol: 109 = Selection (Template)
Text Symbol: 190 = Do you really want to interrupt the processing?
Text Symbol: 191 = Y
Text Symbol: 192 = No
Text Symbol: 193 = Choose
Text Symbol: 201 = Cond. Pricing Unit
Text Symbol: 202 = Condition Pricing Unit
Text Symbol: 210 = CUn
Text Symbol: 211 = Condition Unit
Text Symbol: 212 = Condition Unit
Text Symbol: 020 = The selected resource prices are changed
Text Symbol: 250 = Crcy
Text Symbol: 500 = Resource price could not be copied
Text Symbol: 410 = Processing Opts
Text Symbol: 407 = Online Processing
Text Symbol: 406 = Background Processing
Text Symbol: 404 = Detail List
Text Symbol: 403 = Upd. Run
Text Symbol: 402 = Test Run
Text Symbol: 401 = Percentage:
Text Symbol: 400 = Absol.Value:
Text Symbol: 354 = How should revaluation take place in the test run?
Text Symbol: 353 = Absolute
Text Symbol: 352 = Percentage
Text Symbol: 351 = How do you want to revaluate?





Text Symbol: 350 = Revaluation of Resource Prices
Text Symbol: 291 = Valid To
Text Symbol: 281 = Valid From
Text Symbol: 270 = Amount
Text Symbol: 260 = Name
Text Symbol: 251 = Currncy


INCLUDES used within this REPORT COKPR003

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' EXPORTING display = ' ' IMPORTING e_kokrs = g_kokrs EXCEPTIONS not_found = 01.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'W' arbgb = 'KM' txtnr = '025' msgv1 = g_kokrs.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' arbgb = 'K8' txtnr = '146' msgv1 = cskr-resrc msgv2 = p_syear.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = g_kokrs IMPORTING e_tka01 = l_tka01 EXCEPTIONS not_found = 1 not_found_gjahr = 2 OTHERS = 3.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

GET_ACCOUNT_OF_PERIODS CALL FUNCTION 'GET_ACCOUNT_OF_PERIODS' EXPORTING i_gjahr = p_syear i_periv = l_tka01-lmona IMPORTING e_anzbuper = l_anzbp EXCEPTIONS input_false = 1 t009b_notfound = 2 t009_notfound = 3 OTHERS = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = rt_events.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_slist_top_of_page.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_dlist_top_of_page.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-020 textline1 = text-022 titel = text-023 IMPORTING answer = answer.

RV_KONDITION_SICHERN_V13A CALL FUNCTION 'RV_KONDITION_SICHERN_V13A' IN UPDATE TASK EXPORTING * no change documents change_docs_write = change_docs TABLES * new sentences db_time = time_vake_db db_xkonh = xkonh db_xkonp = xkonp * scales (not used) db_xstaf = xstaf * old sentences db_ykonh = ykonh db_ykonp = ykonp * change documents (not used) db_xkondat = xkondat db_ykondat = ykondat.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'S' arbgb = 'SV' txtnr = '018'.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'I' arbgb = 'SV' txtnr = '154'.






MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FIRST_AND_LAST_DAY_IN_YEAR_GET CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET' EXPORTING i_gjahr = p_syear i_periv = g_tka01-lmona IMPORTING e_first_day = g_date_from_s e_last_day = g_date_to_s EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

FIRST_AND_LAST_DAY_IN_YEAR_GET CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET' EXPORTING i_gjahr = p_tyear i_periv = g_tka01-lmona IMPORTING e_first_day = g_date_from_t e_last_day = g_date_to_t "HpM 4.6B

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

K_PERIODS_GET_FOR_KOKRS CALL FUNCTION 'K_PERIODS_GET_FOR_KOKRS' EXPORTING gjahr = p_tyear i_tka01 = g_tka01 IMPORTING anzbp = g_maxper_t EXCEPTIONS OTHERS = 1.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_callback_pf_status_set = l_pf_status_set i_callback_user_command = l_user_command is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_sort = gt_sort it_events = gt_events[] i_tabname_header = 'GT_HEADER' i_tabname_item = 'LT_RESRC_VW' i_structure_name_header = 'GT_HEADER' i_structure_name_item = 'LT_RESRC_VW' is_keyinfo = gs_keyinfo is_variant = ls_variant IMPORTING e_exit_caused_by_caller = g_exit_caused_by_caller es_exit_caused_by_user = g_exit_caused_by_user TABLES t_outtab_header = gt_header t_outtab_item = gt_resrc_vw EXCEPTIONS program_error = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING defaultoption = '1' textline1 = text-190 text_option1 = text-191 text_option2 = text-192 titel = text-193 IMPORTING answer = answer.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING * no message counter show_linno = space EXCEPTIONS no_messages = 0 inconsistent_range = 0 OTHERS = 0.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' "#EC DOM_EQUAL EXPORTING tabname = l_cond_tab TABLES dfies_tab = lt_nametab EXCEPTIONS not_found = 1 OTHERS = 2.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = p_tversn IMPORTING output = konv_versn.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' arbgb = 'KM' txtnr = '333' msgv1 = text-500.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = p_tyear i_periv = g_tka01-lmona i_poper = f_lt_resrc_vw-pguab IMPORTING e_date = f_konh-datab.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '01' object = 'KONH' IMPORTING number = f_konh-knumh.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = h_datbi i_periv = h_periv IMPORTING e_buper = h_buper e_gjahr = h_gjahr EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = p_tyear i_periv = h_periv i_poper = h_buper IMPORTING e_date = h_datum EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

DATE_TO_PERIOD_CONVERT



CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = h_datab i_periv = h_periv IMPORTING e_buper = h_buper e_gjahr = h_gjahr EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING i_gjahr = p_tyear i_periv = h_periv i_poper = h_buper IMPORTING e_date = h_datum EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' "#EC DOM_EQUAL EXPORTING i_date = l_wa-datab i_periv = g_tka01-lmona IMPORTING e_gjahr = lc_gjahr e_buper = ld_pguab EXCEPTIONS OTHERS = 1.

K_VERSN_READ CALL FUNCTION 'K_VERSN_READ' EXPORTING i_gjahr = p_pyear i_kokrs = p_pkokrs i_versn = p_pversn IMPORTING e_tka07 = g_tka07 EXCEPTIONS OTHERS = 1.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = sy-msgty arbgb = sy-msgid txtnr = sy-msgno msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' arbgb = 'GP' txtnr = '629' msgv1 = p_pversn msgv2 = p_pyear msgv3 = p_pkokrs.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING no_value_check = space popup_title = text-350 IMPORTING returncode = l_returncode TABLES fields = l_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING no_value_check = gc-blank popup_title = text-350 IMPORTING returncode = l_returncode TABLES fields = l_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = ld_tabname TABLES * x031l_tab = lt_nametab " OSS 0001473580 dfies_tab = lt_nametab " OSS 0001473580 EXCEPTIONS OTHERS = 1.

K_BATCH_REQUEST CALL FUNCTION 'K_BATCH_REQUEST' "#EC DOM_EQUAL EXPORTING par_dialg = gc-cross par_nsm37 = gc-blank par_rname = gc-batch_report par_print = gc-blank par_sdmsg = gc-cross TABLES tab_selpa = lt_selpa EXCEPTIONS OTHERS = 01.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' arbgb = 'K8' txtnr = '708'.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING diagnosetext1 = text-030 diagnosetext2 = text-031 textline1 = text-022 titel = text-033 IMPORTING answer = answer.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' arbgb = 'SV' txtnr = '004'.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING textline1 = text-020 textline2 = text-351 text_option1 = text-352 text_option2 = text-353 titel = text-350 IMPORTING answer = answer.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING textline1 = text-024 textline2 = text-354 text_option1 = text-352 text_option2 = text-353 titel = text-350 IMPORTING answer = answer.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' arbgb = 'K8' txtnr = '708'.



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