RKACOR04 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program RKACOR04 compares CO totals files COSP and COSS with line item file COEP...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RKACOR04 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: S_WRTTP = D .
Selection Text: S_PERIO = D .
Selection Text: S_OBJNR = D .
Selection Text: S_KSTARS = D .
Selection Text: S_GJAHR = D .
Selection Text: P_UPDATE = D .
Selection Text: P_KOKRS = D .
Selection Text: S_PRCENT = Variance (greater val. = 100%)
Selection Text: P_SYSCHK = Check logical system
Selection Text: P_SHOWAL = Also list correct entries
Selection Text: P_OBLIGO = Commitments
Selection Text: P_KSTLGP = Cost Center Group
Selection Text: P_FILTER = No totals records without LIs
Selection Text: P_ACTUAL = Actual
Title: Adjustment Betw. Line Items and Totals Records (Act.Cost + Commitment)
Text Symbol: 122 = -> No Update
Text Symbol: 121 = Period with currency converted data.
Text Symbol: 120 = The selection contains objects with a converted local currency. These objects are not processed
Text Symbol: 053 = See SAP Note 430527.
Text Symbol: 052 = Object:
Text Symbol: 051 = Table:
Text Symbol: 050 = Company code not entered in totals record.
Text Symbol: 040 = No objects found
Text Symbol: 031 = Cost Elem
Text Symbol: 030 = Cost Elem. Group
Text Symbol: 020 = Max. Percentage: 100
Text Symbol: 015 = No archived line items
Text Symbol: 013 = Lines:
Text Symbol: 012 = Incorrect objects:
Text Symbol: 011 = Correct objects:
Text Symbol: 010 = Objects:
Text Symbol: 008 = Incorrect objects that are not processed:
Text Symbol: 007 = Enter an object no. or cost center group
Text Symbol: 006 = Enter an object number
Text Symbol: 005 = No line selected
Text Symbol: 004 = Update Selected Lines
Text Symbol: 003 = Confirmation Prompt
Text Symbol: 002 = Error while reading period date
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
G_POSTING_DATE_OF_PERIOD_GET CALL FUNCTION 'G_POSTING_DATE_OF_PERIOD_GET' EXPORTING period = p_perio variant = ld_lmona year = p_gjahr IMPORTING from_date = p_from_date EXCEPTIONS period_not_defined = 2 "n 862763 OTHERS = 1.
EWU_GET_CUKEY_ORG CALL FUNCTION 'EWU_GET_CUKEY_ORG' EXPORTING waehrungsursprung = '20' auspraegung = p_kokrs gueltigkeitsdatum = p_from_date EXCEPTIONS type_not_found = 1 no_conversion_found = 2 object_not_found = 3 OTHERS = 4.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' EXPORTING line_from = 200.
MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' ##fm_subrc_ok "1466369 EXCEPTIONS "1540202 OTHERS = 1. "1540202
MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'KZ' msgty = 'I' msgv1 = text-008 txtnr = 555 zeile = 10.
MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'KZ' msgty = 'I' txtnr = 555 zeile = 5.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'RU' exception_if_not_active = ' ' msgty = 'S' txtnr = 463.
K_TOTALS_TABLE_DETERMINE CALL FUNCTION 'K_TOTALS_TABLE_DETERMINE' EXPORTING eptab = con_eptab vrgng = coep-vrgng IMPORTING sumtb = hlp_sumtb EXCEPTIONS error_message = 1 OTHERS = 1.
K_TOTALS_TABLE_DETERMINE CALL FUNCTION 'K_TOTALS_TABLE_DETERMINE' EXPORTING eptab = con_eptab vrgng = pd_vrgng IMPORTING sumtb = wa_sumtb-tabname EXCEPTIONS error_message = 1 OTHERS = 1.
K_OBJECT_INFORMATION_GET CALL FUNCTION 'K_OBJECT_INFORMATION_GET' EXPORTING i_objnr = ls_disp-objnr i_gjahr = ls_disp-gjahr IMPORTING e_owaer = ls_disp-owaer *----------------------- begin note 1697559 ---------------------------* EXCEPTIONS OTHERS = 2.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = sy-msgid exception_if_not_active = ' ' msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 txtnr = sy-msgno.
K_DOCUMENT_UPDATE CALL FUNCTION 'K_DOCUMENT_UPDATE' EXPORTING i_totals_update = 'X' i_rcl_update = ' ' i_items_insert = ' ' TABLES t_coepr = lt_itr.
K_DOCUMENT_UPDATE CALL FUNCTION 'K_DOCUMENT_UPDATE' EXPORTING i_totals_update = 'X' i_rcl_update = ' ' i_items_insert = ' ' TABLES t_coep = lt_ite.
K_DOCUMENT_UPDATE CALL FUNCTION 'K_DOCUMENT_UPDATE' EXPORTING i_totals_update = 'X' i_rcl_update = ' ' i_items_insert = ' ' TABLES t_coepl = lt_itl.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * i_interface_check = 'X' "debug i_callback_program = ld_repid i_callback_pf_status_set = 'SET_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = ls_layout it_fieldcat = lt_fieldcat it_sort = lt_sort i_save = 'X' is_variant = ls_variant it_events = lt_events it_event_exit = ls_event_exit TABLES t_outtab = disp.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'COEP' langu = sy-langu TABLES dfies_tab = lt_dfiescoep.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'COSP' langu = sy-langu TABLES dfies_tab = lt_dfiescosp.
CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-003 text_question = text-004 display_cancel_button = ' ' IMPORTING answer = ld_answer.
CO_COMMITMENT_RECORD CALL FUNCTION 'CO_COMMITMENT_RECORD' EXPORTING i_awtyp = ls_cooi-rftyp i_awref = ls_cooi-refbn i_aworg = ' ' TABLES t_documents = lt_cooi_docs.
CO_COMMITMENT_RECORD CALL FUNCTION 'CO_COMMITMENT_RECORD' EXPORTING i_awtyp = 'PREQ' i_awref = ls_cooi-refbn i_aworg = ' ' TABLES t_documents = lt_cooi_docs.
REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING et_marked_columns = lt_fieldcat.
REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING et_fieldcat = lt_fieldcat.
REUSE_ALV_LIST_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_SET' EXPORTING it_fieldcat = lt_fieldcat.
REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' ##fm_subrc_ok EXPORTING i_list_type = 1 IMPORTING et_events = xt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_list_top.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'M5' exception_if_not_active = ' ' msgty = 'S' txtnr = 369 msgv1 = gd_update.
K_OBJECT_INFORMATION_GET CALL FUNCTION 'K_OBJECT_INFORMATION_GET' EXPORTING i_objnr = pt_onr00-objnr IMPORTING e_kokrs = ld_kokrs EXCEPTIONS OTHERS = 2.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = sy-msgid exception_if_not_active = ' ' msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4 txtnr = sy-msgno.
EWU_GET_CUKEY_CO CALL FUNCTION 'EWU_GET_CUKEY_CO' EXPORTING objnr = p_objnr gjahr = p_gjahr gueltigkeitsdatum = p_from_date IMPORTING waehrungsschluessel = ld_curkey EXCEPTIONS no_conversion_found = 1 object_not_found = 2 OTHERS = 3.
MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = gt_mesg.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'KZ' msgty = 'I' msgv1 = '-------------------------------------------' txtnr = 555.
MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb =
-arbgb msgty = 'I' msgv1 = -msgv1 msgv2 = -msgv2 msgv3 = -msgv3 msgv4 = -msgv4 txtnr = -txtnr zeile = 5.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb =
-arbgb msgty = -msgty msgv1 = -msgv1 msgv2 = -msgv2 msgv3 = -msgv3 msgv4 = -msgv4 txtnr = -txtnr.
K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING kokrs = v_kokrs IMPORTING e_tka01 = ls_tka01.
OBJECT_TYPES_GET CALL FUNCTION 'OBJECT_TYPES_GET' EXPORTING i_co_relevant_only = 'X' TABLES t_obart = lt_obtypes.
DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = ld_dyname dynumb = ld_dynumb TABLES dynpfields = lt_dynpfields EXCEPTIONS OTHERS = 11.
K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING field_name = v_field searchfld = ld_searchfield kokrs = p_kokrs searchfld_input = space set = c_group IMPORTING set_name = c_group EXCEPTIONS no_set_picked = 1 OTHERS = 2.
G_SET_GET_ID_FROM_NAME CALL FUNCTION 'G_SET_GET_ID_FROM_NAME' EXPORTING shortname = pd_set tabname = ld_table fieldname = v_field kokrs = pd_kokrs ktopl = pd_ktopl setclass = v_setclass check_set_empty = 'X' IMPORTING new_setid = ld_setid set_info = ls_setinfo EXCEPTIONS no_set_found = 1 table_field_not_found = 3 fields_dont_match = 4 wrong_subclass = 5 error_message = 9.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'KB' exception_if_not_active = ' ' msgty = 'E' txtnr = ld_msgnr msgv1 = pd_set.
K_FIELD_TEXT_READ CALL FUNCTION 'K_FIELD_TEXT_READ' EXPORTING field = ls_setinfo-fld tab = ld_table with_dots = space IMPORTING ex_kdfit = ls_kdfit EXCEPTIONS OTHERS = 1.
G_SET_GET_ALL_VALUES CALL FUNCTION 'G_SET_GET_ALL_VALUES' EXPORTING setnr = ld_setid no_descriptions = space TABLES set_values = lt_setvalues EXCEPTIONS set_not_found = 1.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = 'KZ' exception_if_not_active = ' ' msgty = 'I' txtnr = 555 msgv1 = ls_text1 msgv2 = ls_text2.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = '00' exception_if_not_active = ' ' msgty = 'I' txtnr = 368 msgv1 = text-040.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = '00' exception_if_not_active = ' ' msgty = 'E' txtnr = 208: msgv1 = text-050, msgv1 = ls_msg1, msgv1 = ls_msg2, msgv1 = text-053.
POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-v04 IMPORTING returncode = ls_char1 TABLES fields = lt_fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.
RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING report = varid_tab-report variant = varid_tab-variant IMPORTING r_c = rc EXCEPTIONS not_authorized = 01 no_report = 02 report_not_existent = 03 report_not_supplied = 04.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-v12 text_question = text-v10 text_button_1 = text-v11 text_button_2 = text-v13 display_cancel_button = ' ' IMPORTING answer = ls_char1.
RS_CHANGE_CREATED_VARIANT CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT' EXPORTING curr_report = varid_tab-report curr_variant = varid_tab-variant vari_desc = varid_tab TABLES vari_contents = lt_params vari_text = varit_tab EXCEPTIONS illegal_report_or_variant = 01 illegal_variantname = 02 not_authorized = 03 not_executed = 04 report_not_existent = 05 report_not_supplied = 06 variant_doesnt_exist = 07 variant_locked = 08 selections_no_match = 09.
RS_CREATE_VARIANT CALL FUNCTION 'RS_CREATE_VARIANT' EXPORTING curr_report = varid_tab-report curr_variant = varid_tab-variant vari_desc = varid_tab TABLES vari_contents = lt_params vari_text = varit_tab EXCEPTIONS illegal_report_or_variant = 01 illegal_variantname = 02 not_authorized = 03 not_executed = 04 report_not_existent = 05 report_not_supplied = 06 variant_exists = 07 variant_locked = 08.
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 RKACOR04 or its description.
RKACOR04 - Adjustment Betw. Line Items and Totals Records (Act.Cost + Commitment) RKACOR04 - Adjustment Betw. Line Items and Totals Records (Act.Cost + Commitment) RKACOR00 - Correction of Reversal Postings Made in Wrong Period RKACOR00 - Correction of Reversal Postings Made in Wrong Period RKACOPER - documentation and ABAP source code RKACOKB9 - Account Assignment Determination: Call Back Routines