<?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 Debugging in back ground in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036541#M418357</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;How to debugg a program which is run in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2007 04:27:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-08T04:27:52Z</dc:date>
    <item>
      <title>Debugging in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036541#M418357</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;How to debugg a program which is run in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 04:27:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036541#M418357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T04:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036542#M418358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto TCode - SM50 , You can debug the Background program.&lt;/P&gt;&lt;P&gt;Select the program from the list using the check box and then &lt;/P&gt;&lt;P&gt;Go to menu Program/Mode -&amp;gt;Debugging -&amp;gt;Debug program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Yes. It takes you to debugging mode.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;***Reward Points if Useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 04:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036542#M418358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T04:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036543#M418359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is tip.  Put an endless loop in your program which is running in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHILE Sy-SubRc = 0.
 Check SY-SUBRC = 0.
ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now run the program in background.&lt;/P&gt;&lt;P&gt;Go to SM50 and find which background process is running your program.&lt;/P&gt;&lt;P&gt;Select it and choose from the menu, Program/Session-&amp;gt;Program-&amp;gt;Debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The debugger will lauch and and most likely it will be stuck in your endless loop, change the value of SY-SUBRC within the debugger and continue debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 04:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036543#M418359</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-08T04:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036544#M418360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can debugg the program using &amp;lt;b&amp;gt;'/JDBG'&amp;lt;/b&amp;gt;. This command has to be types in the command box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 04:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036544#M418360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T04:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036545#M418361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;look at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tips/ABAP/InfiniteLoopPrg.htm" target="test_blank"&gt;http://www.saptechnical.com/Tips/ABAP/InfiniteLoopPrg.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 04:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036545#M418361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T04:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036546#M418362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    GOTO tcode SM50 ---&amp;gt;  select your session  &lt;DEL&gt;&amp;gt;ON menu bar    "program/session"  -&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;&amp;gt;program--&amp;gt; Debugging.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 05:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036546#M418362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T05:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036547#M418363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it in either of two ways, which method to use depends on problem at hand, whether you need to debug in a place where you have no developer access (for example test SAP system)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Put an infinite loop in the program at a point from which you want to debug, so you would need to either change/copy modify the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;IF FLAG = 'X'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you schedule that program in bg, it will run indefinitely allowing you to see its process running in SM50, you can see program name there. In the menu goto Program -&amp;gt; debugging. You will get into your program at the code you just entered. Change variable FLAG = 'X'. Continue debugging. Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you cannot change the program with inserting a infinite loop as above, you can schedule the program and while it executes catch it in SM37, select the job line and in OK code field type JDBG and enter. It should take you into debugger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 05:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-back-ground/m-p/2036547#M418363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-08T05:11:15Z</dc:date>
    </item>
  </channel>
</rss>

