<?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: Debugging the Functional Module in Background. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822623#M351406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yathish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this... it works... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. put the break point in the Function Module Where u want to debug.&lt;/P&gt;&lt;P&gt;2. run u r program. at initial stage.. press /H in then run in the debugging screen will be opened.... then in the menu bar&lt;DEL&gt;-&amp;gt;GOTO&lt;/DEL&gt;&amp;gt;CONTROL DEBUGGING--&amp;gt;SETTING... HERE if u click on this one nwe screen will be displayed..ther u will fing a check box called UPDATE DEBUGGING. TICK ON THIS THEN press SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. then press F8.... when the controle reaches the breakpoin in the FM... it opens another session... where u can debugg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at last wht i mean to say is... Swith on the UPDATE DEBUGGING. put the breakpoint... then run u r code...&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Close this thread.. when u r problem is solved&lt;/P&gt;&lt;P&gt;Reward if Helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naresh Reddy K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 07:00:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-29T07:00:57Z</dc:date>
    <item>
      <title>Debugging the Functional Module in Background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822621#M351404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calling a Custom Functional module in Background mode using the syntax CALL FUNCTION ZFM in background task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell how to debug the code using this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Yatish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2007 13:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822621#M351404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-28T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging the Functional Module in Background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822622#M351405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yatish&lt;/P&gt;&lt;P&gt;&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;PRE&gt;&lt;CODE&gt;  DATA:
    lx_exit_loop(1)     TYPE c.
   
  lx_exit_loop = ' '.
  DO.
    IF ( lx_exit_loop = 'X' ).
      EXIT.
    ENDIF.
  ENDDO.&lt;/CODE&gt;&lt;/PRE&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 &amp;lt;b&amp;gt;SM50&amp;lt;/b&amp;gt; and search for the background process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) Choose from menu &amp;lt;i&amp;gt;Program/Mode -&amp;gt; Program -&amp;gt; Debugging&amp;lt;/i&amp;gt;&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;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jan 2007 14:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822622#M351405</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-01-28T14:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging the Functional Module in Background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822623#M351406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yathish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this... it works... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. put the break point in the Function Module Where u want to debug.&lt;/P&gt;&lt;P&gt;2. run u r program. at initial stage.. press /H in then run in the debugging screen will be opened.... then in the menu bar&lt;DEL&gt;-&amp;gt;GOTO&lt;/DEL&gt;&amp;gt;CONTROL DEBUGGING--&amp;gt;SETTING... HERE if u click on this one nwe screen will be displayed..ther u will fing a check box called UPDATE DEBUGGING. TICK ON THIS THEN press SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. then press F8.... when the controle reaches the breakpoin in the FM... it opens another session... where u can debugg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;at last wht i mean to say is... Swith on the UPDATE DEBUGGING. put the breakpoint... then run u r code...&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Close this thread.. when u r problem is solved&lt;/P&gt;&lt;P&gt;Reward if Helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Naresh Reddy K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822623#M351406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging the Functional Module in Background.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822624#M351407</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;Place a breakpoint at the call of the function module. In the debugger under Settings Check the option Background Task Do not process. Now press F8 to continue the debugging. The option 'Background Task Do not process' instructs the system to collect the calls to function modules in background task but not to execute them.&lt;/P&gt;&lt;P&gt;In a new session, execute transaction SM58 and start debugging by selecting Edit-&amp;gt;Debug LUW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that the above description helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jun 2008 06:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-the-functional-module-in-background/m-p/1822624#M351407</guid>
      <dc:creator>mudit_kapoor</dc:creator>
      <dc:date>2008-06-15T06:32:46Z</dc:date>
    </item>
  </channel>
</rss>

