SAP Reports / Programs

S_AUT_ARCH_PRE SAP ABAP Report - Audit Trail (ILM): Preprocessing Program for Archiving Long Text Logs







S_AUT_ARCH_PRE 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 S_AUT_ARCH_PRE 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 S_AUT_ARCH_PRE. "Basic submit
SUBMIT S_AUT_ARCH_PRE AND RETURN. "Return to original report after report execution complete
SUBMIT S_AUT_ARCH_PRE 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: CMT_CNT = Package Size
Selection Text: DATE_H = To Date
Selection Text: PARAL = Parallel Processing
Selection Text: P_PREPRD = D .
Selection Text: P_PRETST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: RFCGROUP = D .
Title: Audit Trail (ILM): Preprocessing Program for Archiving Long Text Logs
Text Symbol: 003 = Preprocessing Program
Text Symbol: 004 = -Records
Text Symbol: 005 = started
Text Symbol: 006 = completed
Text Symbol: 009 = With this option, note the maximum runtime
Text Symbol: 010 = Current Value in Seconds:
Text Symbol: 011 = Long Text Logs


INCLUDES used within this REPORT S_AUT_ARCH_PRE

INCLUDE ARCH_PREPROC_PRG_STANDARD2. "#EC INCL_OK


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:

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING mode_rstable = 'E' tabname = cl_s_aut_arc=>gc_arch_hist EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot i_protocol_output = p_prot_o i_context = gs_context.

S_AUT_STXH_COPY CALL FUNCTION 'S_AUT_STXH_COPY' STARTING NEW TASK 'STXH' DESTINATION IN GROUP rfcgroup PERFORMING receiver ON END OF TASK EXPORTING iv_id = gs_new_arch_hist-id iv_end_date = gs_new_arch_hist-date_to iv_counter = gs_arch_hist-max_stxh_id iv_package_size = cmt_cnt EXCEPTIONS communication_failure = 1 system_failure = 2 resource_failure = 3 OTHERS = 4.

S_AUT_STXL_COPY CALL FUNCTION 'S_AUT_STXL_COPY' STARTING NEW TASK 'STXL' DESTINATION IN GROUP rfcgroup PERFORMING receiver ON END OF TASK EXPORTING iv_id = gs_new_arch_hist-id iv_end_date = gs_new_arch_hist-date_to iv_counter = gs_arch_hist-max_stxl_id iv_package_size = cmt_cnt EXCEPTIONS communication_failure = 1 system_failure = 2 resource_failure = 3 OTHERS = 4.

S_AUT_STXH_COPY CALL FUNCTION 'S_AUT_STXH_COPY' EXPORTING iv_id = gs_new_arch_hist-id iv_end_date = gs_new_arch_hist-date_to iv_counter = gs_arch_hist-max_stxh_id iv_package_size = cmt_cnt IMPORTING ev_max_counter = gv_max_stxh_counter EXCEPTIONS no_history = 1 invalid_history = 2 not_authorized = 3 database_locked = 4 internal_error = 5 conversion_error = 6 OTHERS = 7.

S_AUT_STXL_COPY CALL FUNCTION 'S_AUT_STXL_COPY' EXPORTING iv_id = gs_new_arch_hist-id iv_end_date = gs_new_arch_hist-date_to iv_counter = gs_arch_hist-max_stxl_id iv_package_size = cmt_cnt IMPORTING ev_max_counter = gv_max_stxl_counter EXCEPTIONS no_history = 1 invalid_history = 2 not_authorized = 3 database_locked = 4 internal_error = 5 conversion_error = 6 OTHERS = 7.



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