<?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 the baclground job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067189#M93630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, when I want to debbug um backgroung, I always make it like this:&lt;/P&gt;&lt;P&gt;At first I put a DO into the code, for the program to stop there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: vl_1.&lt;/P&gt;&lt;P&gt;DO .&lt;/P&gt;&lt;P&gt;if v_1 = 'X'. exit. endif .&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;So, the program is gonna stop in this loop, and you know the exactly point that you will deddug, because the deddug in background stops in anywhere into the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So You go to the SM50, find out your procces, and select the following menu Program/Mode --&amp;gt; Program --&amp;gt; debbug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it help you.&lt;/P&gt;&lt;P&gt;Alexandre Nogueira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2005 12:22:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-25T12:22:16Z</dc:date>
    <item>
      <title>Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067182#M93623</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;Greetings!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to debug the background job? If anyone knows please let me know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more doubt i have if we put the &amp;lt;b&amp;gt;BREAK-POINT&amp;lt;/b&amp;gt;in code and once we execute that job in background then the program will stop at that particular breakpoint level or it will execute without stopping at the breakpoint level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: satish chowdary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 12:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067182#M93623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T12:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067183#M93624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In transaction sm37 you can mark your job. In the command field you can enter the command jdbg (jobdebugging) without a /h. Then you come into your program and system beheaves as it does in background. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wbr&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 12:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067183#M93624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T12:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067184#M93625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is to build an endless loop in your program. Then use transaction SM50, select the workprocess and go via the menu program/session-&amp;gt;program-&amp;gt;debugging. Set the variable to leave the loop and enjoy the 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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2005 12:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067184#M93625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-24T12:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067185#M93626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my answer in this thread for your first question. For the second, in background, program will not stop at BREAK-POINT statement or a soft breakpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="81889"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 01:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067185#M93626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T01:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067186#M93627</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 see note 573128 - Debugging programs in the background: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symptom&lt;/P&gt;&lt;P&gt;How can you debug a program that runs in the background?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other terms&lt;/P&gt;&lt;P&gt;Background, job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason and Prerequisites&lt;/P&gt;&lt;P&gt;Information on troubleshooting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;There are 3 options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In SM37, select a job that has not yet been started (status 'planned' or 'released'). In addition, set a breakpoint at the point in the source code that you want to analyze when debugging. In SM37, enter JDBG in the OK code field, and select ENTER. The selected job is now started in debug mode, and the debugger initially stops in a system program. Select F8 to continue the job up to the next breakpoint.&lt;/P&gt;&lt;P&gt;               Caution: After debugging, the job still appears in SM37 as 'planned' or 'released', but the entire job (or, more specifically, a copy of it) ran during debugging, and possible database changes are effective as a result of the job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can catch a current batch job by using SM37 (Catch active job) or SM50 (Debug program). To do this, you must be logged on to the instance on which the job is running. The job is then stopped, and you can keep it running in the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use SM36 to create a job with two steps, step 1 with the BTCLOOP report and step 2 with the report to be debugged. Then release the job.&lt;/P&gt;&lt;P&gt;               You can then debug the job in Transaction SM50. To do this, exit the endless loop in the BTCLOOP report by changing the variable i. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maria João Rocha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 10:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067186#M93627</guid>
      <dc:creator>MariaJooRocha</dc:creator>
      <dc:date>2005-11-25T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067187#M93628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use "jdbg" instead of "/h".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Amey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 10:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067187#M93628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T10:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067188#M93629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Select the corresponding job and type jdbg in the command window for debugging...&lt;/P&gt;&lt;P&gt;The system will not stop at the static break points / dynamic break points while processing in background...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 10:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067188#M93629</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2005-11-25T10:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Debug the baclground job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067189#M93630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, when I want to debbug um backgroung, I always make it like this:&lt;/P&gt;&lt;P&gt;At first I put a DO into the code, for the program to stop there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: vl_1.&lt;/P&gt;&lt;P&gt;DO .&lt;/P&gt;&lt;P&gt;if v_1 = 'X'. exit. endif .&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;So, the program is gonna stop in this loop, and you know the exactly point that you will deddug, because the deddug in background stops in anywhere into the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So You go to the SM50, find out your procces, and select the following menu Program/Mode --&amp;gt; Program --&amp;gt; debbug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it help you.&lt;/P&gt;&lt;P&gt;Alexandre Nogueira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 12:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-the-baclground-job/m-p/1067189#M93630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T12:22:16Z</dc:date>
    </item>
  </channel>
</rss>

