<?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 background job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492720#M229097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for FI-CA T-Code "FPB7" (Report RFKKKA00):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;set an external breakpoint in line 68 (IF g_debug ist initial.)&lt;/LI&gt;&lt;LI&gt;start FPB7 report in debugging mode (/h in command line)&lt;/LI&gt;&lt;LI&gt;at your breakpoint, set variable "d_debug" to "X" and save&lt;/LI&gt;&lt;LI&gt;then you can debug the job, it will not run as background job&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2016 09:08:24 GMT</pubDate>
    <dc:creator>former_member302974</dc:creator>
    <dc:date>2016-01-28T09:08:24Z</dc:date>
    <item>
      <title>how to debug background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492716#M229093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to debugg a background job&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 12:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492716#M229093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T12:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492717#M229094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can debug batch jobs by going to 'SM37', type in 'JDBG' in the &lt;/P&gt;&lt;P&gt;command line ( no '/' ), put the cursor on the job and press enter - will &lt;/P&gt;&lt;P&gt;take you to the job in debug mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this only after the job has finished execution. This will simulate the exact background scenario with the same selection screen values as used in the job also sy-batch will set to 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So type in the transaction code 'JDBG' and place your cursor on the job after It has finished. It will take you to a SAP program in debug mode. Step through this program which is about 10 lines, after this your program will be executed in the debug mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps &lt;/P&gt;&lt;P&gt;1. Create variant called BACKGROUND for program to be debugged. &lt;/P&gt;&lt;P&gt;2. Execute ZDEBUGBG (pgm code below) in background for immediate processing. &lt;/P&gt;&lt;P&gt;3. Execute transaction SM50. &lt;/P&gt;&lt;P&gt;4. Select process that runs ZDEBUGBG. &lt;/P&gt;&lt;P&gt;5. Goto 'Program/Session' 'Program' 'Debugging'. &lt;/P&gt;&lt;P&gt;A se80 debug session will open. &lt;/P&gt;&lt;P&gt;6. Change variable W_EXIT to 'E'. &lt;/P&gt;&lt;P&gt;7. Step thru (F6) until ZWBTEST comes up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to Transaction SM66 and find your work porocess. &lt;/P&gt;&lt;P&gt;Select the line work process is on and click on the Debugging button. &lt;/P&gt;&lt;P&gt;If this is a custom program, you can put a wait statement in the code to buy yourself sometime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Go to Transaction SM50. From the tool bar "Program/session"-&amp;gt;Program-&amp;gt;Debugging. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto SM37 and from Program menu(not sure.. try other menu's) &lt;/P&gt;&lt;P&gt;--&amp;gt;Catchjob . it will goto the active job in debugging mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 12:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492717#M229094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492718#M229095</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;Yes , it is possible to debug background job . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select active job in sm37. &lt;/P&gt;&lt;P&gt;2. type "jdbg" command in command field. &lt;/P&gt;&lt;P&gt;   No need to type /n or /o .&lt;/P&gt;&lt;P&gt;3. Double click the job , it will go in debug mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           OR&lt;/P&gt;&lt;P&gt;1. Go to sm50 . &lt;/P&gt;&lt;P&gt;2. place the cursor on active job. &lt;/P&gt;&lt;P&gt;3. goto program mode&lt;DEL&gt;&amp;gt; program&lt;/DEL&gt;&amp;gt; Debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards. &lt;/P&gt;&lt;P&gt;santosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 12:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492718#M229095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T12:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492719#M229096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your job is running.  Simply go to SM51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- select your active job&lt;/P&gt;&lt;P&gt;- got to Program/Mode on menu . choose Program-&amp;gt;Debug&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are now debugging your background job .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 12:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492719#M229096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492720#M229097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for FI-CA T-Code "FPB7" (Report RFKKKA00):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;set an external breakpoint in line 68 (IF g_debug ist initial.)&lt;/LI&gt;&lt;LI&gt;start FPB7 report in debugging mode (/h in command line)&lt;/LI&gt;&lt;LI&gt;at your breakpoint, set variable "d_debug" to "X" and save&lt;/LI&gt;&lt;LI&gt;then you can debug the job, it will not run as background job&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492720#M229097</guid>
      <dc:creator>former_member302974</dc:creator>
      <dc:date>2016-01-28T09:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492721#M229098</link>
      <description>&lt;P&gt;Can we debug the same cases with similar input from tables using jdbg in sm37?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 17:15:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-background-job/m-p/1492721#M229098</guid>
      <dc:creator>former_member730138</dc:creator>
      <dc:date>2022-04-05T17:15:29Z</dc:date>
    </item>
  </channel>
</rss>

