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

Turn on trace in ABAP Program

Former Member
0 Likes
1,752

Dear Gurus ,

Due to some reason ST05 is not supporting our cause and making us turning toward developing our own program where we trun the trace on,call the program - rsarfcex and turn off the trace and schedule the same as batch job .

Appricate If you can help me out to achive the same .In short I would like build program where i turn on/off the trace .

Thanks in Advance

Sameer

Dear Gurus ,

Due to some reason ST05 is not supporting our cause and making us turning toward developing our own program where we trun the trace on,call the program - rsarfcex and turn off the trace and schedule the same as batch job .

Appricate If you can help me out to achive the same .In short I would like build program where i turn on/off the trace .

Thanks in Advance

Sameer

8 REPLIES 8
Read only

Former Member
0 Likes
1,272

hi,

i am not sure sure but check for syntax-trace statement.

Read only

Former Member
0 Likes
1,272

hi ,

what u can do to on or off a trace through a program you call function module

/SDF/ACTIVATE_ABAP_TRACE to activate trace

/SDF/DEACTIVATE_ABAP_TRACE to deactivate trace

/SDF/DISPLAY_PERF_TRACE to display it

/SDF/GET_ABAP_TRACE_STATUS status of the tace

for any quary i ll welcome you.

regards,

mohit

Read only

0 Likes
1,272

Thanks Mohit . I found some more similer FM SQLT_TRACE_ON and SQLT_TRACE_OFF

Regards

Sameer

Read only

Former Member
0 Likes
1,272

Hi,

check below link,

/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy

Regards,

Madhu

Read only

Former Member
0 Likes
1,272

>>> Due to some reason ST05 is not supporting our cause

what do you mean????

Is it generally not working, are you not allowed to use it, or is it not the appropriate tool?

Read only

0 Likes
1,272

This is the production issues and it is not advisable to use ST05 in production . So Just built BAP program to turn on the SQL and then call a specific program then turn off the trace . Thanks for asking . Program has been built and under testing now .

Thanks

Sameer

Read only

0 Likes
1,272

You should be careful running ST05 in production, but I've never heard that it's generally not advisable to use it.

Rob

Read only

Former Member
0 Likes
1,272

> This is the production issues and it is not advisable to use ST05 in production . So Just built BAP

> program to turn on the SQL and then call a specific program then turn off the trace . Thanks for

> asking . Program has been built and under testing now .

that is nonsense !!

you can run SQL, if you are allowed and carefu, at any time. I have done it probably more often than

you will do in the rest of your life.

Siegfried