<?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: Background job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808256#M656399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a blog that explain DEBUG in BACKGROUND: &amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&amp;amp;"&amp;gt;abap Debugger&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract :&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;How do I debug background Processes?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;In transaction SM50 (process overview), you can select a background process and choose Program/Mode -&amp;gt; Program -&amp;gt; Debugging from the menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative workaround, which allows you to step into a particular piece of code is to place a piece of code in a endless DO-ENDDO, where you can change a variable to step out of the DO at a particular point in your code. This allows you to hold the process at that point and debug it from SM50 as described above. An implementation of this exists in function module C160_HOLD_FOR_DEBUG, which will enter the endless loop if a particular environment variable is set, thereby allowing you to control its behaviour. (Further instructions are found in the comments in subroutine INC14Z_HOLD_FOR_DEBUG of include LC14ZFCB).&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 12:53:55 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2007-09-27T12:53:55Z</dc:date>
    <item>
      <title>Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808252#M656395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report which is executed as a background job in Test server, once the job  is executed user clicks on one button "transfer Unix file to network folder " then the report output will be saved in PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When its saved some fields are spaced out.. there are no values for &lt;/P&gt;&lt;P&gt;a aprticular variant.&lt;/P&gt;&lt;P&gt;vendor number &amp;#150; vendor name &amp;#150; clearing document and clearing date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; my doubt is how can i debug for this variant as its executed in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me... very urgent....&lt;/P&gt;&lt;P&gt;Points are sure for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Radhika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 12:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808252#M656395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T12:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808253#M656396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you got to switch on debugging in background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type in /H in your ok-code box and press enter. &lt;/P&gt;&lt;P&gt;then goto the menu Settings. there click on update debugging and to be sure click as well system debugging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 12:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808253#M656396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T12:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808254#M656397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sm37.. place the cursor on the completed job  &amp;amp; type in JDBG in the command window.. this will put you in debug mode with a simulated session of that job.. patiently single step through the first few screens &amp;amp; you will get into your ABAP Program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 12:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808254#M656397</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-09-27T12:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808255#M656398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Execute SM36 Transaction&lt;/P&gt;&lt;P&gt;2. Enter Job Name &amp;amp; Click START CONDITION&lt;/P&gt;&lt;P&gt;3. Click Period Values &amp;amp; type 12 in Months&lt;/P&gt;&lt;P&gt;4. CLick SAVE&lt;/P&gt;&lt;P&gt;5. Enter Schedule Start Date &amp;amp; Time&lt;/P&gt;&lt;P&gt;6. Click Save&lt;/P&gt;&lt;P&gt;7. Click on STEP&lt;/P&gt;&lt;P&gt;8. ABAP Program Name&lt;/P&gt;&lt;P&gt;9. enter program name &amp;amp; Variant if any&lt;/P&gt;&lt;P&gt;10. CLick on SAVE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 12:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808255#M656398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T12:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808256#M656399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a blog that explain DEBUG in BACKGROUND: &amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&amp;amp;"&amp;gt;abap Debugger&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract :&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;How do I debug background Processes?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;In transaction SM50 (process overview), you can select a background process and choose Program/Mode -&amp;gt; Program -&amp;gt; Debugging from the menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An alternative workaround, which allows you to step into a particular piece of code is to place a piece of code in a endless DO-ENDDO, where you can change a variable to step out of the DO at a particular point in your code. This allows you to hold the process at that point and debug it from SM50 as described above. An implementation of this exists in function module C160_HOLD_FOR_DEBUG, which will enter the endless loop if a particular environment variable is set, thereby allowing you to control its behaviour. (Further instructions are found in the comments in subroutine INC14Z_HOLD_FOR_DEBUG of include LC14ZFCB).&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 12:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808256#M656399</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-27T12:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808257#M656400</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. Run the specified program in the background by choosing program-&amp;gt;Execute in Background. This step would execute the required program in background.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;    2. To debug the background job. Go to the transaction Sm37. You will see the job that was run under your name. Now, type &amp;#145;&amp;#146;JDBG&amp;#146;&amp;#146; in command line and put the cursor on the respective job which you want to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now, press enter. It would directly go into the program in the debugging mode. This would now simulate the exact background scenario with the same selection screen values as used in the job and sy-batch set to &amp;#145;X&amp;#146;.                                        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you can debug in the same way as you do in an interactive session of running a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JLN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 12:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job/m-p/2808257#M656400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T12:57:27Z</dc:date>
    </item>
  </channel>
</rss>

