<?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 Debugging in FM started in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060504#M1176054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Colleagues !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I start an FM in background (it must be started there). I'd like to debug it. At the command for starting this FM I have a debugging point. Here I can set the property check box "TRFC (In background Task): Block Sending". Thereafter I go forward with F8. If I start afterwards the tx SM66, I don't see my FM in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I make wrong ? What is my error ? Can You give me any advice ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2009 15:02:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-20T15:02:45Z</dc:date>
    <item>
      <title>Debugging in FM started in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060504#M1176054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Colleagues !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I start an FM in background (it must be started there). I'd like to debug it. At the command for starting this FM I have a debugging point. Here I can set the property check box "TRFC (In background Task): Block Sending". Thereafter I go forward with F8. If I start afterwards the tx SM66, I don't see my FM in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I make wrong ? What is my error ? Can You give me any advice ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 15:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060504#M1176054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in FM started in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060505#M1176055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try schedule the program in SM37 without releasing it. Then use ok-code "JDBG" to copy it into the debugger (place your cursor on the scheduled job).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 15:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060505#M1176055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in FM started in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060506#M1176056</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;If it is a custom function module.. Try to code a infinite looping before the code which u want to debug as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: int type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE int = 0.&lt;/P&gt;&lt;P&gt;CLEAR int. (it doesn't make any sense.. but still just to have infinite looping.. write any code which doesn't change the value of int.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now execute the FM in bacground. Go to SM50.. You will see the your FM execution in the process overview.&lt;/P&gt;&lt;P&gt;Process will list the processes being run in the current application server.&lt;/P&gt;&lt;P&gt;Select your specific process &amp;amp; go to PROGRAM/SESSION ---&amp;gt; Program ---&amp;gt; Debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should open a debugging screen in another session which will point to the infinite looping line. Now change the value of INT in the debugging mode.. &amp;amp; proceed further to debug your subsequent main code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its a standard function module, then Schedule a job &amp;amp; select the job &amp;amp; type "JDBG" in the command field. You should be able to get into the debugging mode..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know if you have questions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Geetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 19:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060506#M1176056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in FM started in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060507#M1176057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option (a combination of your and my post) is to copy the job with a break-point ahead of the FM call, and then (perhaps temporarily...) using a destination parameter (NONE) to step (F5) into the FM in the system debug mode (if permitted...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the TechEd Berlin, there was also a session on "layered debugging" which can be attached to the terminal. In higher releases, that might be a better option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 23:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060507#M1176057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T23:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in FM started in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060508#M1176058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;            Are you talking about Outbound or Inbound Queue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, Start the FM in debug mode then goto Menu Setting-&amp;gt;Display/Change debugger settings there you check the TRFC (In Background Task):Block Sending. open one more session goto SMQ1 or SMQ2. Now hit F8 to run the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SMQ1 session, Double click the queue as soon as it appears in the queue list then in the next screen select the queue and hit Lock Queue button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your queue will be stopped. Otherwise, your queue will disappear within minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sampath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 23:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060508#M1176058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T23:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in FM started in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060509#M1176059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with you, but as it is tRFC, we may do a little bit different. It works for me (I just tested), but I am not sure if it works in all cases (give us a feedback if not) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- add breakpoint in YYYY which calls CALL FUNCTION 'XXXX' IN BACKGROUND TASK ...&lt;/P&gt;&lt;P&gt;- start YYYY&lt;/P&gt;&lt;P&gt;- when you arrive at the breakpoint, change debugger settings, set the flag as said by Sampath (this flag means that, when the commit work occurs, the background task (FMs + parameters) is stored into database but not executed)&lt;/P&gt;&lt;P&gt;- run SM58&lt;/P&gt;&lt;P&gt;- Select the background task, and choose menu edit + debug LUW, the "background task" will start interactively and the debugger will stop at predefined points by sap, and in FM XXXX automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's clear !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 00:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060509#M1176059</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-01-21T00:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging in FM started in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060510#M1176060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have chosen Your suggestion, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 07:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-in-fm-started-in-background/m-p/5060510#M1176060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T07:33:50Z</dc:date>
    </item>
  </channel>
</rss>

