2024 Jun 12 9:12 AM
Hi Folks,
is there an exit or enhancement where I can set the authority of a spool file. Always if the system creates a spool file I will set the authority. There is a user parameter SAU which trigger this but it seems that not all programmings set this or there is still an error in SAP ;-). My idea is to set the authority depending of the printer.
Thanks and regards
Roland
2024 Jun 12 1:25 PM
2024 Jun 13 1:45 PM
Hi Nic,
this is no solution for me because I want to catch all spool files not depending which program create a spool in which technology.
2024 Jun 14 9:40 AM
Hello,
somehow interesting request.
You can enhance function module RSPO_SR_OPEN like following:
Of course the assignment to the AUTHORITY field could be done more sophisticated, in this example the DEST (printer) is used in case the AUTHORITY field is empty.
I am not sure that this function module is the one and only way when in the system spool lists are created (ADS maybe uses another way?), but the usual print operations should be covered with this.
Kind regards
Jan
2024 Jun 14 10:24 AM
Hello,
I found that this worked for spool requests of type SAP Script (OTF) but not for ABAP List. With an enhancement in GET_PRINT_PARAMETERS (at the end) it worked also for ABAP List. I did not try whether this makes the enhancement in RSPO_SR_OPEN obsolete.
Kind regards
Jan
2024 Jun 14 11:00 AM
Hi Jan,
many thanks for the hint but I tried to debug to see what's happens but nothing happens (I printed the printer list with the TA SPAD)
Regards
Roland
2024 Jun 14 2:04 PM
Hello @rowag,
did you implement the enhancement? In my test system it worked, the spool requests came with a filled authorization field.
Kind regards
Jan
2024 Jun 17 12:49 PM
Hi Jan,
when I print a HU with the e.g. VL74 the system doesn't use the FU. No breakpoint doesn't work.
Cheers
Roland
2024 Jun 17 1:06 PM
Hello @rowag,
on my test system I don't have a VL74. I suggest to do a trace recording (e.g. via ST12) and have a look into the trace whether one or both of the function modules is called. Or maybe if there is another function module used for creating the spool output.
Kind regards
Jan
2024 Jun 17 1:08 PM - edited 2024 Jun 17 1:16 PM
2024 Jun 17 5:23 PM
Hello,
printing the device list with SPAD worked with the enhancement in GET_PRINT_PARAMETERS. I found the list with a filled authorization field in the spool output.
Kind regards
Jan
2024 Jun 18 9:43 AM
Hi Jan,
I found afunction for my label printouts: ADS_SR_OPEN. In the debugger I always come along.
Yes, it's for label printing out of the WM but it seems it is my solution. I didn't found an universal solution (function) for all printouts.
Many thanks for you help and kind regards
Roland