<?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 Re: Debug Long running job ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092066#M1971972</link>
    <description>&lt;P&gt;Thanks for your response. I understand this. If we do this way, it takes more than an hour to reach the point where i need to debug. Hence, thought of asking the experts for alternate thoughts.!&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 05:22:49 GMT</pubDate>
    <dc:creator>former_member293462</dc:creator>
    <dc:date>2019-10-22T05:22:49Z</dc:date>
    <item>
      <title>Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092061#M1971967</link>
      <description>&lt;P&gt;How to debug a long running job ? is there any way ? yes. I am aware that we can debug via JDBG command in SM37. My issue is we have a program which runs for an hour or two. We are getting an error message after an hour of job execution.&lt;/P&gt;
  &lt;P&gt;If i give JDBG and press F8 debugger gets timed out in 10 minutes. I also thought of placing breakpoints in multiple intermediate places so that debugger will not time out, but there are few loops in standard program which takes more than 10 minutes to execute due to huge volume of data.&lt;/P&gt;
  &lt;P&gt;Is there any suggested way to do this ?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092061#M1971967</guid>
      <dc:creator>former_member293462</dc:creator>
      <dc:date>2019-10-21T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092062#M1971968</link>
      <description>&lt;P&gt;is it possible to run this program/job on development? Because then you might insert an endless loop at the point you would like to debug (after these loops you are talking about). The endless loop you can catch in SM50. And do not forget to remove the loop afterwards....&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092062#M1971968</guid>
      <dc:creator>former_member259807</dc:creator>
      <dc:date>2019-10-21T10:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092063#M1971969</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;b.wallagh&lt;/SPAN&gt; Thanks a lot for your response. Issue is in quality system. Process team is not able to replicate the issue in Dev system so we are not able to do this. Kindly let me know if any alternatives are there. Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092063#M1971969</guid>
      <dc:creator>former_member293462</dc:creator>
      <dc:date>2019-10-21T10:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092064#M1971970</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;As far as I know there is no other way to avoid long running jobs timeouts than debugging and setting breakpoints. for the long loops you can set intermediate breaks by settnig break point condition for different sy-tabix.&lt;/P&gt;&lt;P&gt;Also if the error is not due to the data size, you can reduce the data size by running the program for smaller scopes untill identifying which scope is triggering the error.&lt;/P&gt;&lt;P&gt;Also you can analyze the error or the dump.&lt;/P&gt;&lt;P&gt;Hope this is help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yassine&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092064#M1971970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-21T10:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092065#M1971971</link>
      <description>&lt;P&gt;SM50 or SM66, select the BGD workprocess corresponding to your job, menu Administration -&amp;gt; Program -&amp;gt; Debugging. Sometimes it doesn't work because in the middle of a database operation, or other reasons.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092065#M1971971</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-10-21T19:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092066#M1971972</link>
      <description>&lt;P&gt;Thanks for your response. I understand this. If we do this way, it takes more than an hour to reach the point where i need to debug. Hence, thought of asking the experts for alternate thoughts.!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 05:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092066#M1971972</guid>
      <dc:creator>former_member293462</dc:creator>
      <dc:date>2019-10-22T05:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092067#M1971973</link>
      <description>&lt;P&gt;Could you perhaps give some information about the program? What is it processing, also what is the error you receive? Is it a dump in ST22, or is it a message from a message class? Maybe we can help out in that way&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092067#M1971973</guid>
      <dc:creator>YorRombaut</dc:creator>
      <dc:date>2019-10-22T13:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092068#M1971974</link>
      <description>&lt;P&gt;Can you post the ST22 screen shot. As  &lt;SPAN class="mention-scrubbed"&gt;yassine.nejmy2&lt;/SPAN&gt; said you can reduce the size of internal table, may be you can take 10 records from internal table and analyze the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 13:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092068#M1971974</guid>
      <dc:creator>srikanthnalluri</dc:creator>
      <dc:date>2019-10-22T13:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092069#M1971975</link>
      <description>&lt;P&gt;SM50 -&amp;gt; Debugging of running Job&lt;/P&gt;&lt;P&gt; You can Close Debugger any time and Programm continues&lt;/P&gt;&lt;P&gt; and you can reenter Debugger as you wish.&lt;/P&gt;&lt;P&gt; regards Stefan&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092069#M1971975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-24T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Long running job ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092070#M1971976</link>
      <description>&lt;P&gt;Here is something else you can try to at least narrow down where the issue happens:&lt;/P&gt;&lt;P&gt;Go to SM50 to make sure that you are looking at the server where your long-running batch-job is getting executed. From there go to &lt;STRONG&gt;transaction SAT&lt;/STRONG&gt; (performance analysis) and make use of the "Run in parallel session":&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1740491-sat-switchonparallelsession-01.jpg" /&gt;&lt;/P&gt;&lt;P&gt;There you can switch on the measurement:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1740492-sat-switchonparallelsession-02.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Count to e.g. 10 and switch it off again:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1740493-sat-switchonparallelsession-03.jpg" /&gt;&lt;/P&gt;&lt;P&gt;If
 SAT was able to capture anything during the time it was active, the 
measurement will be opened straight away and you can check it out. &lt;/P&gt;&lt;P&gt;Note:
 You have to make sure to be on the server the process is actually 
running on. One option which usually works for me is to first go to SM50
 (possibly via SM51) to find out which server it is and then open a new 
session for SAT from there. Or, use the "Server Selection" button to 
find the correct one from within SAT.&lt;/P&gt;&lt;P&gt;To begin with, you shouldn't
 have the measurement active for more than a few second (hence "counting
 to 10") as the log can get pretty big very quickly!&lt;/P&gt;&lt;P&gt;If you are not familiar with what all you can do with SAT, please check Olga Dolinskaja's blog series about this very neat transaction: &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2011/01/18/next-generation-abap-runtime-analysis-sat-introduction/" target="_blank"&gt;Next Generation ABAP Runtime Analysis (SAT) &amp;#150; Introduction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Bärbel&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-long-running-job/m-p/12092070#M1971976</guid>
      <dc:creator>BaerbelWinkler</dc:creator>
      <dc:date>2019-10-24T14:19:29Z</dc:date>
    </item>
  </channel>
</rss>

