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

St05 SQl Trace Analysis

Former Member
0 Likes
921

Hello All,

We have background jobs those run with user ID MAESTRO. I want to analyse the SQL trace for these jobs, however from ST05 I see we can enable the jobs for different user using the option activate Trace with Filter. I have activated using this option for user MAESTRO but after the finish of jobs, I have deactivated the trace and tried to list the trace for user MAESTRO.When ever I do this it always says Trace doesn't exist.Could you kindly let me know how can I enable the sql trace for the jobs running on different user.

Regards,

Sai

1 ACCEPTED SOLUTION
Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
778

Hi,

are you sure you activated the SQL trace on the same application server where the job was running?

(ST05 is application server dependent)

Another hint: the user that scheduled a job is not necessarily the user that executes a step in the job.

Make sure to trace the right user on the right server.

Kind regards,

Hermann

4 REPLIES 4
Read only

JL23
Active Contributor
0 Likes
778

moved to ABAP Testing and Troubleshooting

Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
779

Hi,

are you sure you activated the SQL trace on the same application server where the job was running?

(ST05 is application server dependent)

Another hint: the user that scheduled a job is not necessarily the user that executes a step in the job.

Make sure to trace the right user on the right server.

Kind regards,

Hermann

Read only

adam_krawczyk1
Contributor
0 Likes
778

Hi Sandeep,

You have already good suggestions from Hermann what is probably the root cause.

Message that you are getting means that no action was registered for tracing. To check on which server and what user is running the job, start the batch job, go to SM51 and choose server to see list of jobs in progress with user name. In general you can switch between application server with SM51.

The easiest thing to do is to assign batch job run to specific server and run ST05 from same server. Then you are sure that logs will be collected, assuming you know the right user.

Regards,

Adam

Read only

Former Member
0 Likes
778

Thank you Hermann and Adam. The issue is solved.