<?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: How to debug a program running in background ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004199#M77260</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;Go to SM37.Choose the job once it is completed.Then just type JDBG [ no /].Then you can debug the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2005 10:30:04 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2005-07-27T10:30:04Z</dc:date>
    <item>
      <title>How to debug a program running in background ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004197#M77258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we debug a prorgram running in the background ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is BREAK-POINT statement is used for this or ne other method exists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone thr the standard documentation help for BREAK-POINT Statement, but not getting it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004197#M77258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T10:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program running in background ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004198#M77259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can debug backgroung program with break-point statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try tcode SM51 then look for the process that running your program. Then goto Program/Mode=&amp;gt;Program=&amp;gt;Debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it's usefull for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004198#M77259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T10:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program running in background ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004199#M77260</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;Go to SM37.Choose the job once it is completed.Then just type JDBG [ no /].Then you can debug the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004199#M77260</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-07-27T10:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program running in background ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004200#M77261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin, try to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. use the following code instead of break-point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   data a type c.&lt;/P&gt;&lt;P&gt;   do.&lt;/P&gt;&lt;P&gt;     if a = 'X'.&lt;/P&gt;&lt;P&gt;       exit.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;   enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. while the program is running in background, launch transaction SM50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. select the program in the list and choose Program/Mode -&amp;gt; Program -&amp;gt; Debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. at this point the program should stop in the infinite loop. to exit from the loop, set the variable a to 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004200#M77261</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2005-07-27T10:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program running in background ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004201#M77262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nitin,&lt;/P&gt;&lt;P&gt;Joseph is correct.&lt;/P&gt;&lt;P&gt;Goto SM51-&amp;gt; keep a cursor on user running program in background.&lt;/P&gt;&lt;P&gt;Then program/mode -&amp;gt;program -&amp;gt;debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively what you can do it.. add few WRITE statements in your program where you want to check your values. Once program is finished.&lt;/P&gt;&lt;P&gt;Goto SM37 and check spool for the user. You will see value populated in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help. Do award few points if this resolves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pras Durafe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004201#M77262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T10:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program running in background ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004202#M77263</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;1. Go to SE38&lt;/P&gt;&lt;P&gt;2. Type this pgm name "LFKKAKTIV2F01"&lt;/P&gt;&lt;P&gt;3. Go to line number "1983" containing the statement &lt;/P&gt;&lt;P&gt;  "IF g_debug IS INITIAL"...&lt;/P&gt;&lt;P&gt;4. Keep the break point at this statement "IF g_debug IS INITIAL" and also in your code.&lt;/P&gt;&lt;P&gt;5. While running your pgm the control will come here.&lt;/P&gt;&lt;P&gt;6. Change the value of this g_debug = 'X' and press "Copy" button at run time.&lt;/P&gt;&lt;P&gt;7. Now slowly debug ( It may take time ).&lt;/P&gt;&lt;P&gt;8. Atlast it will come to your piece of code where u marked to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2005 10:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-program-running-in-background/m-p/1004202#M77263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-27T10:45:48Z</dc:date>
    </item>
  </channel>
</rss>

