RSPO1042 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report checks whether spool requests still exist in the DIR_GLOBAL directory (ADS and SAP GUI for HTML print requests)...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 RSPO1042 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: KEEPDAYS = Delete if Older Than (Days):
Selection Text: SIMONLY = Simulation Only
Selection Text: WEBGUI = Check WebGUI Print Requests
Title: Consistency Check for Spool Files
Text Symbol: 001 = Delete Orphaned Spool Files in GLOBAL_DIR
Text Symbol: 700 = Directory Name
Text Symbol: 710 = File Name
Text Symbol: 720 = Created On
Text Symbol: 730 = Created At
Text Symbol: 740 = Deleted
Text Symbol: 750 = Spool Request No.
Text Symbol: 760 = Error Message
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
AUTHORITY_CHECK_DATASET * CALL FUNCTION 'AUTHORITY_CHECK_DATASET' * EXPORTING ** PROGRAM = * activity = sabc_act_delete * filename = dirname * EXCEPTIONS * no_authority = 1 * OTHERS = 2.
RSPO_FILENAME_TO_NUMBER CALL FUNCTION 'RSPO_FILENAME_TO_NUMBER' EXPORTING tmp_filename = tmp_filename IMPORTING sponum = rspoid pjnum = pjnum.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = grid_title is_layout = gs_layout it_fieldcat = gt_fieldcat[] it_excluding = gt_exclude[] i_default = 'X' i_save = 'A' TABLES t_outtab = del_files EXCEPTIONS program_error = 1 OTHERS = 2.
TZON_GET_OS_TIMEZONE CALL FUNCTION 'TZON_GET_OS_TIMEZONE' IMPORTING ef_timezone = tz ef_not_unique = unique ef_not_found = not_found.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.