You can replace the checks implemented in the authorization object S_SPO_ACT (Spool: Actions) with your own authorization checks. An exit is provided for this purpose through the enhancement SPOOAUTH. If the enhancement is activated, the function module EXIT_SAPLSPOR_001 is used for the check.
When this function module is called, the general authorizations SP01 and SP0R are checked centrally. You can use this function to tailor additional checks, such as checking the authorization field of a spool request, to your own needs.
The parameters that are passed are the type of access (ACCESS) and the header information for a spool request (SPOOLREQ).
This enhancement mechanism is only used if the spool authorization check is set to the new procedure using the CUSTOM option. To do this, set the parameter AUTHORITY to the value CUSTOM in table TSPOPTIONS.
For general information about SAP function exits, see The SAP Enhancement Concept and transaction cmod.