<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Find source code from SQL trace in ST01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-source-code-from-sql-trace-in-st01/m-p/1797499#M342602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any and all help will be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2006 08:17:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-07T08:17:01Z</dc:date>
    <item>
      <title>Find source code from SQL trace in ST01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-source-code-from-sql-trace-in-st01/m-p/1797499#M342602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any and all help will be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 08:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-source-code-from-sql-trace-in-st01/m-p/1797499#M342602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T08:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find source code from SQL trace in ST01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-source-code-from-sql-trace-in-st01/m-p/1797500#M342603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u double client on the Line of the Trace , then it will goes to program itself. U have to cliec @ OPEN Commands only.&lt;/P&gt;&lt;P&gt;SAPLITSR TPS01      PREPARE 88                    0 R/3   SELECT FROM "TPS01" ORDER BY "PROCS"&lt;/P&gt;&lt;P&gt;SAPLITSR TPS01      OPEN    88                    0 R/3   SELECT FROM "TPS01" ORDER BY "PROCS"&lt;/P&gt;&lt;P&gt;SAPLITSR TPS01      FETCH   88     755   276   1403 R/3&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 08:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-source-code-from-sql-trace-in-st01/m-p/1797500#M342603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find source code from SQL trace in ST01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-source-code-from-sql-trace-in-st01/m-p/1797501#M342604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can view the SQL trace through ST01, so ST05 would make no difference. What I need to do is find the source code &amp;lt;i&amp;gt;programmatically&amp;lt;/i&amp;gt;, which means I can't just view ST01 or ST05 - I need to run through the actual trace file in code and find the point where it originated in the program ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 09:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-source-code-from-sql-trace-in-st01/m-p/1797501#M342604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-07T09:16:05Z</dc:date>
    </item>
  </channel>
</rss>

