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

SQL statement

Former Member
0 Likes
408

Hi Abapers,

I have a requirement where i have to store the SQL statement running behind any customized tcode.I need this one to save the SQL staments for the transaction log .

How should i capture the SQL statement.

Please help me

Regards

Debjani

2 REPLIES 2
Read only

former_member195698
Active Contributor
0 Likes
384

You have to Log the Information within the Custom Transaction at all places where the select query is being fired.

If the Logging is not periodic and is used only for some cases. Then you can keep the Trace on for the Transaction Code through ST05 and then List the Trace whenever Required.

Regards,

Abhishek

Read only

0 Likes
384

Hi Abhishek,

Thanks for reply.

I understand what you are saying.But My requiremnet is CODE to fetch the SQL statement.

Regards

Debjani