<?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 How to DEBUG a function module running in background mode? Please help! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368823#M524668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am calling a function module in my ABAP code in background module using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            itab_std_format_inv = itab_std_format_inv&lt;/P&gt;&lt;P&gt;            itab_snapshot_inv = itab_snapshot_inv.&lt;/P&gt;&lt;P&gt;        COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot comment this  "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to DEBUG a function module running in background mode? Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 06:28:53 GMT</pubDate>
    <dc:creator>gopalkrishna_baliga</dc:creator>
    <dc:date>2007-06-19T06:28:53Z</dc:date>
    <item>
      <title>How to DEBUG a function module running in background mode? Please help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368823#M524668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am calling a function module in my ABAP code in background module using the following syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'YBBC2_CREATE_SNAPSHOT' IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            itab_std_format_inv = itab_std_format_inv&lt;/P&gt;&lt;P&gt;            itab_snapshot_inv = itab_snapshot_inv.&lt;/P&gt;&lt;P&gt;        COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I put the breakpoint in the CALL FUNCTION line and execute the program, the debugger does not take me to the valled function module. This may be because I am running the function module as background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot comment this  "IN BACKGROUND TASK" statement as well since i am debugging in Quality system where I don't have change access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to DEBUG a function module running in background mode? Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368823#M524668</guid>
      <dc:creator>gopalkrishna_baliga</dc:creator>
      <dc:date>2007-06-19T06:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to DEBUG a function module running in background mode? Please help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368824#M524669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You could try to use the following trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Put an endless loop into the coding of your function module where you want to start debugging, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lx_exit_loop(1)     TYPE c.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  lx_exit_loop = ' '.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    IF ( lx_exit_loop = '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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Call your function module in background task&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) Call transaction SM50 and search for the background process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) Choose from menu Program/Mode -&amp;gt; Program -&amp;gt; Debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you the debugger should bring you right to your endless loop. Set lx_loop_exit = 'X' in the debugger and continue (F5 or F6).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&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>Tue, 19 Jun 2007 06:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368824#M524669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T06:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to DEBUG a function module running in background mode? Please help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368825#M524670</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;BACKGROND PROGRAMS:you can debug the background jobs, use the command BDUG&lt;/P&gt;&lt;P&gt;One way of debuging programs which are already running in background is via transaction SM50. This displays a &lt;/P&gt;&lt;P&gt;list of process running in the server. In order to debug the program go to Menu option:&lt;/P&gt;&lt;P&gt;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;Rgds&lt;/P&gt;&lt;P&gt;Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368825#M524670</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-06-19T06:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to DEBUG a function module running in background mode? Please help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368826#M524671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SKK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I cannot change any code since I am not debuging in development system.&lt;/P&gt;&lt;P&gt;    For a particular case I have to use Quality system for debuging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:36:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368826#M524671</guid>
      <dc:creator>gopalkrishna_baliga</dc:creator>
      <dc:date>2007-06-19T06:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to DEBUG a function module running in background mode? Please help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368827#M524672</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;When you debug a program that calls function modules using the IN BACKGROUND TASK addition, they are processed in a background work process (additional internal session). If you set the In background task: Do not process option, the system collects the function calls, but does not start the background work process. The Debugger assigns a transaction ID, which identifies the background work process uniquely. You can now start the Debugger for the background work process using transaction SM58. You can select the function module concerned here, and then execute it via the Edit menu.&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368827#M524672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to DEBUG a function module running in background mode? Please help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368828#M524673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anversha s  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    I did not understood your answer. &lt;/P&gt;&lt;P&gt;    I am not using a ABP program in background mode but the function module inside the ABAP program in called in background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I want to put a breakpoint inside this function module so that I can debug it. But it some does not work. The debugger does not go to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   What shall I do? Kindly help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:58:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368828#M524673</guid>
      <dc:creator>gopalkrishna_baliga</dc:creator>
      <dc:date>2007-06-19T06:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to DEBUG a function module running in background mode? Please help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368829#M524674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Where do we set "In background task: Do not process option"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Can you kindly explain this? I am a novice in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your aswer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gopal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-function-module-running-in-background-mode-please-help/m-p/2368829#M524674</guid>
      <dc:creator>gopalkrishna_baliga</dc:creator>
      <dc:date>2007-06-19T07:02:24Z</dc:date>
    </item>
  </channel>
</rss>

