<?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: RFC in background task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880695#M1478501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ravikiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sending the document, but I have a doubt in Method 2. I have added the infinite loop at the beginning of the RFC. &lt;/P&gt;&lt;P&gt;now I tried debugging teh program both by changing teh settings of "In background task: Do not process" but still it doesnt go inside the FM, the way you had shown in a snap shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also though there comes an entry in SM50, but while debugging that too it is not going in the FM. Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 11:23:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-11T11:23:31Z</dc:date>
    <item>
      <title>RFC in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880691#M1478497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function '/WSCGMBH/C_ORDER_UPDATE_RFC'&lt;/P&gt;&lt;P&gt;    in background task&lt;/P&gt;&lt;P&gt;    as separate unit&lt;/P&gt;&lt;P&gt;    destination l_qrfcdest&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      order_number = p_aufnr.&lt;/P&gt;&lt;P&gt;*{   INSERT         LI1K9A064Z                                        1&lt;/P&gt;&lt;P&gt;COMMIT work.&lt;/P&gt;&lt;P&gt;wait up to 10 seconds.&lt;/P&gt;&lt;P&gt;*}   INSERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to debug this FM, in order to say I have set the settings and check the option, "In background task: do not process".&lt;/P&gt;&lt;P&gt;Still I am not able to do so.Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Sana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 14:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880691#M1478497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-10T14:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: RFC in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880692#M1478498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have two options to debug a tRFC call. If you are in a modifiable client you can insert a infinite loop and debug it otherwise you need to use transaction SM58.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My article deals exactly with the same subject:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://divulgesap.com/blog.php?p=Mjg=" target="test_blank"&gt;http://divulgesap.com/blog.php?p=Mjg=&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravikiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 17:21:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880692#M1478498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-10T17:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: RFC in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880693#M1478499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to debug an RFC FM.&lt;/P&gt;&lt;P&gt;You should use External debugging and once your curser comes to This FM you can press F5 then it will take you to the RFC FM code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if above step fails you can define an infinte loop in that FM at start of the code and execute your code and goto your RFC system and SM50 and excute the transactionm code.&lt;/P&gt;&lt;P&gt;There you will find your FM name and select that row and GOTO-&amp;gt;Program/session-&amp;gt;program-&amp;gt;Debugging.&lt;/P&gt;&lt;P&gt;It will take you to that infinite loop.&lt;/P&gt;&lt;P&gt;Just pass that loop in debugging mode and you can test rest code normally.&lt;/P&gt;&lt;P&gt;(This 2nd point should do in RFC system)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Naresh Nelapatla on May 10, 2010 7:33 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 17:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880693#M1478499</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2010-05-10T17:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: RFC in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880694#M1478500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edited by: Sandra Rossi on May 10, 2010 9:50 PM : SORRY IT'S TRFC ! (stupid sandra)&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;see SAP Note 890699 Debugging bgRFC in Release 7.0&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;Note: as the statement contains "as separate unit", the RFC call is not tRFC as indicated in another answer, but bgRFC&lt;/DEL&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 19:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880694#M1478500</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-10T19:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: RFC in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880695#M1478501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ravikiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sending the document, but I have a doubt in Method 2. I have added the infinite loop at the beginning of the RFC. &lt;/P&gt;&lt;P&gt;now I tried debugging teh program both by changing teh settings of "In background task: Do not process" but still it doesnt go inside the FM, the way you had shown in a snap shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also though there comes an entry in SM50, but while debugging that too it is not going in the FM. Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 11:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880695#M1478501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: RFC in background task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880696#M1478502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you opt for the infinite loop solution, you should add it &lt;STRONG&gt;inside&lt;/STRONG&gt; the function module, and you don't need to select the tRFC debug checkbox. As it is a standard FM (or partner), maybe you don't want that.&lt;/P&gt;&lt;P&gt;Otherwise, simply look at that thread: &lt;SPAN __jive_macro_name="message" id="6892213"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 17:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-in-background-task/m-p/6880696#M1478502</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-11T17:13:34Z</dc:date>
    </item>
  </channel>
</rss>

