Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Spool file authority setting

rowag
Explorer
0 Kudos
1,906

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

11 REPLIES 11
Read only

NTeunckens
Active Contributor
0 Kudos
1,865

Hello Roland

Please Check the BAdI "EFG_PRINT_PARAMS" or "BADI_RE_CP_SF", depending on which Form-technology you are using (SmartForms / Adobe or PDF-generated Forms) ... Check the BAdI-Documentation to get an understanding of the possibilities ...

Hope this helps

Nic T.

Read only

0 Kudos
1,811

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.

Read only

jmodaal
Active Contributor
0 Kudos
1,791

Hello,

somehow interesting request.

You can enhance function module RSPO_SR_OPEN like following:jmodaal_0-1718354290041.png
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

 

Read only

jmodaal
Active Contributor
0 Kudos
1,782

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.

jmodaal_0-1718357047137.png

Kind regards

Jan

Read only

0 Kudos
1,775

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

 

Read only

jmodaal
Active Contributor
0 Kudos
1,739

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

Read only

0 Kudos
1,708

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

Read only

jmodaal
Active Contributor
0 Kudos
1,704

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 

Read only

0 Kudos
1,704

Which value is saved in tne Output definition (NACE, VOFM, NAST-TDAUTORITY)

Read only

jmodaal
Active Contributor
0 Kudos
1,658

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. 

jmodaal_0-1718641318439.pngjmodaal_1-1718641382549.png

Kind regards

Jan

Read only

0 Kudos
1,631

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