‎2010 Jun 23 4:49 AM
Hi All,
I have a program that when run in background generates a spool for some users but to others don't (SM37).
i have used the same test data in executing the program, had copied the user profile parameter of the working user account but nothing works.
It also sometimes generate spool in SP01 but this is not for always.
Hope you could help me with this.
Edited by: navi on Jun 23, 2010 1:21 PM
‎2010 Jun 23 6:40 AM
Hi ,
are you hardcoding the user name value in Spool generation. Just get user name from SYST structure and populate that in spool generation.It should resolve the problem.
Regards,
Uma Dave
‎2010 Jun 23 6:40 AM
Hi ,
are you hardcoding the user name value in Spool generation. Just get user name from SYST structure and populate that in spool generation.It should resolve the problem.
Regards,
Uma Dave
‎2010 Jun 23 7:04 AM
Nope. We just use F9 when executing the program in background. No coding on our end.
‎2010 Jun 23 7:08 AM
Okey ,
then can you check out the setting done for this JOB In sm36 , have you specified the user there.
Regards,
Uma Dave
‎2010 Jun 23 7:12 AM
‎2010 Jun 23 7:16 AM
what is that user , is it the one for which your job gets spool generated ? if thatz the case then it straight forward that it is as good as you are hard coding the user.
See what you have specified under Spool list recipient.
Hope you understand.
Regards,
Uma Dave
Edited by: UmaDave on Jun 23, 2010 8:16 AM
‎2010 Jun 23 7:22 AM
‎2010 Jun 23 7:26 AM
Hi ,
There needs to be proper settings done for Background Job scheduling and remotely I cant see them.
Kindly refer this link below and see if you can reconfigure your Job if something is missing
http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
I hope it will help you.
Regards,
Uma Dave
‎2010 Jun 23 8:14 AM
Hi navi,
Have youc hecked the spool setting for the following users..?
hav they been set tp print immediately..?
Best Regards,
Navin Fernandes
‎2010 Jun 23 8:19 AM
‎2010 Jun 23 9:24 AM
You can go to SU01 and go to tab DEFAULTS. If you do not have authorization to use this transaction, go to table USR01.
‎2010 Jun 23 1:35 PM
‎2010 Jun 23 2:56 PM
It not print immediately, goes to spool. If printed immediately, your user would have to set switch to also retain spool.
Before printing, this can be set in "properties" , "output options"... right after user presses print when running online...when running in background, can be set same way right after selection of execute in background or execute and print. They probably need to turn that delete immediately off...try it you'll figure out what to tell them to do.
‎2010 Jun 24 5:08 AM
‎2010 Jun 23 4:18 PM
This is probably due to authorization. After you do F9 and schedule the job, execute SU53 transaction and check if there is any authorization failure.
If you don't see any, ask your SAP security to start a security trace for the user. Then, perform the F9 and background scheduling. As soon as the job is complete, ask the SAP security to stop the security trace, and then check the trace. If this is an authorization issue, the authorization failure should show up in the trace.
If there is no authorization failure, it can be because of the application server where the job runs (you can have multiple application servers for the same system). Possibly, those users are routed to a specific application server while others are routed to a different one. So, the jobs may be running in different application server and the spool are not getting generated for some application servers. If this is the case, check with Basis why this is happening. Until the problem is resolved, you can temporarily make settings in the load balancer to route those users to the app server that can generate spool.
‎2010 Jun 23 4:47 PM
Also, just checked with my Basis teammate. If the problem is not authorization, you can use the below method to check if the problem is with the application server. Go to sm51. It will list all your application servers on that system. Double click on the one that your users are being routed to. You can see all the processes in that app server. There should be a process with type "SPO". If that process is not there, no spools will be generated from that app server.
Also, just FYI. The application server may be chosen for a user by the load balancer based on the user group. Check with Basis on the settings of your application server.
‎2010 Jun 24 5:04 AM