For purposes accounting, the spool system maintains detailed usage statistics. The spool system does not provide an accounting tool, but instead makes this data available by way of the spool accounting user exit. You can address the exit using the enhancement SPOOACC.
The task of the exit is to evaluate and store the accounting information before all the information is deleted.
The exit is called when the report RSPO1041 is run to delete spool requests. An internal table of type TSPJSTAT is transferred. This table contains the information about all print requests to be deleted.
Only those records not processed elsewhere are transferred (see documentation for TSPJSTAT).
Use the following profile parameters to activate spool accounting:
· rspo/stat/jobs: An entry is written to the table TSPJSTAT for every output request.
· rspo/stat/query: Every time a printer is queried, data about the queue is written to table TSPQSTAT.
For an example of the analysis of the spool data statistics, see report RSPOSTAT.
For general information about SAP function exits, see The SAP Enhancement Concept and transaction cmod.