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

RKCOITS4 SAP ABAP Report - Line Item Report from Archive (CO_ITEM)







RKCOITS4 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archive Evaluation of CO Line Items (Archiving Object CO_ITEM) You can use this program to evaluate files for the archiving object "CO line items"...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 RKCOITS4 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 RKCOITS4. "Basic submit
SUBMIT RKCOITS4 AND RETURN. "Return to original report after report execution complete
SUBMIT RKCOITS4 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: BUDAT = D .
Selection Text: KOKRS = D .
Selection Text: KSTAR = D .
Title: Line Item Report from Archive (CO_ITEM)
Text Symbol: 001 = Archive Sel.
Text Symbol: 002 = Object Selection
Text Symbol: 003 = No Object Selected
Text Symbol: 004 = Incomplete CO Object
Text Symbol: 005 = Additional Data in Non-Selected Files


INCLUDES used within this REPORT RKCOITS4

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:

ARCHIVE_ADMIN_POPUP_DOCUMENTS CALL FUNCTION 'ARCHIVE_ADMIN_POPUP_DOCUMENTS' EXPORTING object = 'CO_ITEM' TABLES selected_files = lt_admi_files EXCEPTIONS cancelled_by_user = 1 no_files_selected = 2.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = 'CO_ITEM' IMPORTING archive_handle = l_handle TABLES archive_files = lt_files.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_handle EXCEPTIONS end_of_file = 1.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.

ARCHIVE_READ_OBJECT CALL FUNCTION 'ARCHIVE_READ_OBJECT' EXPORTING object = 'CO_ITEM' archivkey = arkey offset = offset IMPORTING archive_handle = l_handle.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = l_handle IMPORTING record_structure = l_structure record_ref = l_dataref EXCEPTIONS end_of_object = 1.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_handle EXCEPTIONS end_of_file = 1.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = v_handle record_structure = 'COIT_TEXT' all_records_of_object = 'X' TABLES table = lt_coit_text EXCEPTIONS end_of_object = 0.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = v_handle record_structure = 'COEP' all_records_of_object = 'X' TABLES table = lt_coep EXCEPTIONS end_of_object = 0.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = v_handle record_structure = 'COBK' all_records_of_object = 'X' TABLES table = lt_cobk EXCEPTIONS end_of_object = 0.

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING i_kokrs = gt_coep-kokrs popup = '0'.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING no_dialog = 'X' mode = 'CURRENT' IMPORTING out_archive_parameters = l_arc_params out_parameters = l_pri_params.

HELP_VALUES_GET_NO_DD_NAME CALL FUNCTION 'HELP_VALUES_GET_NO_DD_NAME' EXPORTING selectfield = 'OBJNR' IMPORTING ind = l_index TABLES fields = lt_fields full_table = gt_object.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = 'CO_ITEM' IMPORTING archive_handle = l_handle TABLES archive_files = lt_new_files.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_handle IMPORTING object_offset = l_offset archive_name = ld_archive_name_new EXCEPTIONS end_of_file = 1.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = l_handle IMPORTING record_structure = l_structure record_ref = l_dataref EXCEPTIONS end_of_object = 1.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = l_handle IMPORTING archive_document = l_object-document archive_name = l_object-archiv_key.

ARCHIVE_GET_INFORMATION





CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = l_handle IMPORTING archive_document = l_object-document archive_name = l_object-archiv_key.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = l_percentage text = l_text.

CONVERSION_EXIT_OBART_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_OBART_OUTPUT' EXPORTING input = objnr(2) IMPORTING txt10 = l_txt10.



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