SAP Reports / Programs

RSPO0041 SAP ABAP Report - Delete Old Spool Requests







RSPO0041 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You should schedule this report periodically to delete old spool 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 RSPO0041 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 RSPO0041. "Basic submit
SUBMIT RSPO0041 AND RETURN. "Return to original report after report execution complete
SUBMIT RSPO0041 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: SEL_PRIN = Completed req. with min. age
Selection Text: SEL_OLDI = Requests past expiration date
Selection Text: SEL_ALL = All requests with min. age
Selection Text: MIN_ALT = Minimum age in days
Selection Text: LISTONLY = Log only without deletion?
Selection Text: ERR_PROT = Log instead of dialog boxes?
Selection Text: COMMIT_A = COMMIT all ... Spool requests
Selection Text: CLIENT = Client
Selection Text: ALL_PROT = Do you want to log everything?
Title: Delete Old Spool Requests
Text Symbol: 064 = &1 spool requests qualify by &2 date of creation.
Text Symbol: 061 = client and
Text Symbol: 060 = &1 spool requests qualify by &2 date of creation.
Text Symbol: 050 = Nothing was found to be deleted.
Text Symbol: 044 = ? &1 (&2) deleted.
Text Symbol: 042 = **** &1 can not be deleted (&2/&3)
Text Symbol: 040 = ? &1 (&2) would be deleted
Text Symbol: 034 = and log all problems.
Text Symbol: 032 = and generate complete log.
Text Symbol: 030 = Only log requests, do not delete.
Text Symbol: 028 = which are older than &1 days
Text Symbol: 027 = Delete all (!) requests
Text Symbol: 025 = which are older than &1 days
Text Symbol: 024 = Delete all completed requests
Text Symbol: 022 = Delete all obsolete requests
Text Symbol: 021 = - Delete spool requests in all clients
Text Symbol: 020 = - Delete spool requests in client &
Text Symbol: 002 = &1 orphaned logs found
Text Symbol: 001 = Delete orphaned logs
Text Symbol: 066 = &1 printed spool requests qualify by &2 creation date.
Text Symbol: 068 = &1 spool requests qualify by &2 expiry date.
Text Symbol: 080 = You do not have authorization &1 or &2
Text Symbol: 090 = You do not have authorization &1
Text Symbol: 093 = That is why you can only delete in your own client.
Text Symbol: 100 = Criteria for selecting spool requests for deletion
Text Symbol: 101 = Expiry Date
Text Symbol: 102 = Search from minimum age
Text Symbol: 103 = Warnings as popups or log lists





INCLUDES used within this REPORT RSPO0041

INCLUDE RSPOTIME.


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:

RSPO_CLEAN_STATISTIC CALL FUNCTION 'RSPO_CLEAN_STATISTIC' * EXPORTING * GENERAL_AGE = 7 * PROCESSED_AGE = 1 * IMPORTING * UNFINISHED_JOBS = * OLD_JOBS = * PROCESSED_JOBS = * OLD_QUERY = * PROCESSED_QUERY = EXCEPTIONS OTHERS = 1.

RSPO_DELETE_LOMS_EVENTS CALL FUNCTION 'RSPO_DELETE_LOMS_EVENTS' EXPORTING LOMS = itsploms-name DAYS = 7 EXCEPTIONS UNKNOWN_LOMS = 1 OTHERS = 2.



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