SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | ArchiveLink(BC-SRV-ARL) SAP BC

OAARCHLOG04 SAP ABAP Report - Write Program for Log Entries of Documents







OAARCHLOG04 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 OAARCHLOG04 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 OAARCHLOG04. "Basic submit
SUBMIT OAARCHLOG04 AND RETURN. "Return to original report after report execution complete
SUBMIT OAARCHLOG04 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: TESTRUN = Test Run
Selection Text: S_USER = User Name of Recording
Selection Text: S_TIME = Time of Recording
Selection Text: S_OBJID = Object Key
Selection Text: S_OBJECT = Business Object
Selection Text: S_FCT = Log Function
Selection Text: S_DDATE = Delete Date
Selection Text: S_DCLASS = Document Class
Selection Text: S_DATUM = Storage Date
Selection Text: S_DATE = Date of Recording
Selection Text: S_BAR = Bar Code
Selection Text: S_AROBJ = Document Type
Selection Text: S_AREA = Log Area
Selection Text: S_AID = Content Repository
Selection Text: S_ADI = Document Key
Selection Text: DEL_FLAG = Deletion Indicator
Selection Text: BLK_SIZE = Block Size
Selection Text: ARC_FILE = Archive File
Title: Write Program for Log Entries of Documents
Text Symbol: 003 = Processing Options
Text Symbol: 002 = Selection
Text Symbol: 001 = ArchiveLink Logging Entries for Documents


INCLUDES used within this REPORT OAARCHLOG04

INCLUDE OAARCHLOGPARAM.


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-001 * 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 .

ALINK_READ_LOG call function 'ALINK_READ_LOG' IMPORTING count = count TABLES logconn = i_doc parameter = p EXCEPTIONS error_parameter = 1 others = 2.

ARCHIVELOG_ARCHIVE_OBJECT call function 'ARCHIVELOG_ARCHIVE_OBJECT' EXPORTING archive_handle = handle link_entry = wai_doc 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 OAARCHLOG04 or its description.