SAP Reports / Programs

ROIJATKW SAP ABAP Report - IS-Oil TSW Archiving of tickets - write program







ROIJATKW is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program carries out archiving for object OIJ_TICKET...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 ROIJATKW 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 ROIJATKW. "Basic submit
SUBMIT ROIJATKW AND RETURN. "Return to original report after report execution complete
SUBMIT ROIJATKW 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_COMMEN = Text
Selection Text: P_CREATE = Generate archive file
Selection Text: P_TESTMO = Delete in test mode
Selection Text: SO_LOCID = Location ID
Selection Text: SO_NOMNR = Nomination number
Selection Text: SO_TKMON = Ticket month
Selection Text: SO_TKNUM = Ticket number
Selection Text: SO_TKYR = Ticket year
Title: IS-Oil TSW Archiving of tickets - write program
Text Symbol: 010 = No tickets found for archiving
Text Symbol: 020 = Ticket & retention time not reached
Text Symbol: 030 = Nominations are open for all tickets, no archiving possible
Text Symbol: 040 = & ticket(s) could not be archived
Text Symbol: 050 = Ticket & not archived(customer-exit)
Text Symbol: 060 = Ticket & not processed completely
Text Symbol: 070 = Retention time not specified for tickets in customizing
Text Symbol: 080 = Ticket & not archived because of errors in previous tickets


INCLUDES used within this REPORT ROIJATKW

INCLUDE: ROIJAALI,
ROIJATKI.


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_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING CALL_DELETE_JOB_IN_TEST_MODE = P_TESTMO CREATE_ARCHIVE_FILE = P_CREATE COMMENTS = P_COMMEN OBJECT = G_OBJECT IMPORTING ARCHIVE_HANDLE = G_ARCHIVE_HANDLE.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = G_ARCHIVE_HANDLE * object_id = g_oijhct01_tab-ticketnr.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING ARCHIVE_HANDLE = G_ARCHIVE_HANDLE RECORD = G_OIJHCT01_TAB RECORD_STRUCTURE = C_OIJHCT01.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = G_ARCHIVE_HANDLE.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = G_ARCHIVE_HANDLE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = G_ARCHIVE_HANDLE.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING ARCHIVE_HANDLE = G_ARCHIVE_HANDLE RECORD_STRUCTURE = PI_STRUC TABLES TABLE = PX_ITAB.

SELECT_TEXT * call function 'SELECT_TEXT' * exporting * id = '*' * language = '*' * name = g_text_key-tdname * object = g_text_key-tdobject * tables * selections = g_header_tab.

TEXT_ARCHIVE_OBJECT * call function 'TEXT_ARCHIVE_OBJECT' * exporting * archive_handle = g_archive_handle * id = g_header_tab-tdid * language = g_header_tab-tdspras * name = g_header_tab-tdname * object = g_header_tab-tdobject * object_delete_flag = 'X'.



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