Skip to Content
0
Former Member
Dec 07, 2006 at 08:17 AM

Find source code from SQL trace in ST01

109 Views

Hi All

I'm trying to find the source code for select statements found through a trace in ST01 programmatically. When you run a trace and analyse it through ST01, you can view individual select statements and when you click on a button SAP will forward navigate to the OpenSQL statement somewhere in the code. I want to be able to do this through code, in other words load the trace file, loop over it, find these "references" and then find the OpenSQL code.

I already have code to open the trace files and load the individual records, but I can't find a way to get back to the source code of each record. Each record contains the name of the program which contains the code, but that is about it.

Any and all help will be appreciated!