SAP Reports / Programs

OAARCH04PRI SAP ABAP Report - documentation and ABAP source code







OAARCH04PRI 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 OAARCH04PRI 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 OAARCH04PRI. "Basic submit
SUBMIT OAARCH04PRI AND RETURN. "Return to original report after report execution complete
SUBMIT OAARCH04PRI 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: ARCHDATE = Storage Date
Selection Text: ARCHIV = Content Repository
Selection Text: ARC_FILE = Write Archive File
Selection Text: BLK_SIZE = Number of Links per Object
Selection Text: DELDATE = Delete Date
Selection Text: DEL_FLAG = Delete
Selection Text: DOKART = Document Type
Selection Text: MANDANT = Client
Selection Text: OBJECT = Business Object
Selection Text: REPORT = Report Name
Selection Text: TESTRUN = Deletion Program as Test Run
Text Symbol: 002 = Selection
Text Symbol: 003 = Control
Text Symbol: 004 = Archiving Session


INCLUDES used within this REPORT OAARCH04PRI

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_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = testrun create_archive_file = arc_file object = adk_object comments = text-004 * DO_NOT_DELETE_DATA = ' ' * OUTPUT_SEL_SCREEN_WHEN_DIALOG = 'X' * OUTPUT_SEL_SCREEN_WHEN_BATCH = ' ' importing archive_handle = handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 others = 5 .

ARCHIV_GET_CONNECTIONS_PRINTLI call function 'ARCHIV_GET_CONNECTIONS_PRINTLI' TABLES parameter = parameter connections = itoadl.

ARCHIVEPRI_ARCHIVE_OBJECT call function 'ARCHIVEPRI_ARCHIVE_OBJECT' EXPORTING archive_handle = handle link_entry = wa_itoadl object_delete_flag = del_flag.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 1 others = 2.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = handle * OBJECT_ID = ' ' exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3 .

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = handle * IMPORTING * OBJECT_OFFSET = * ARCHIVE_NAME = exceptions file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 others = 6 .



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