SAP Reports / Programs

RKACOR04_OLD SAP ABAP Report - Adjustment Betw. Line Items and Totals Records (Act.Cost + Commitment)







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


Text pool values


Selection Text: P_ACTUAL = Actual
Selection Text: P_OBLIGO = Commitments
Selection Text: P_KOKRS = D .
Selection Text: P_UPDATE = D .
Selection Text: S_GJAHR = D .
Selection Text: S_KSTAR = D .
Selection Text: S_OBJNR = D .
Selection Text: S_PERIO = D .
Selection Text: S_WRTTP = D .
Title: Adjustment Betw. Line Items and Totals Records (Act.Cost + Commitment)
Text Symbol: 001 = Select at least one: actual or commitment
Text Symbol: 002 = Error while reading period date
Text Symbol: 003 = Confirmatn Prompt
Text Symbol: 004 = Update Selected Lines
Text Symbol: 005 = No line selected
Text Symbol: 120 = The selection contains objects with a converted local currency. These objects are not processed
Text Symbol: LG1 = If selected, only line
Text Symbol: LG2 = items with same log. system as this
Text Symbol: LG3 = one contribute to the total
Text Symbol: LOG = Check logical system


INCLUDES used within this REPORT RKACOR04_OLD

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:

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.

MESSAGE_SET_DEFAULTLINE CALL FUNCTION 'MESSAGE_SET_DEFAULTLINE' EXPORTING arbgb = 'KZ' msgty = 'I' msgv1 = 'errors of objects that are not processed:' 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.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' "1466369 EXCEPTIONS "1540202 OTHERS = 1. "1540202

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 = ps_its-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 = disp-objnr i_gjahr = disp-gjahr IMPORTING e_owaer = disp-owaer.

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_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.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-003 text_question = text-004 display_cancel_button = ' ' IMPORTING answer = ld_answer.

OBJECT_TYPES_GET CALL FUNCTION 'OBJECT_TYPES_GET' EXPORTING i_co_relevant_only = 'X' TABLES t_obart = lt_obtypes.

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.



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