<?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: Calling RFC enabled FM IN BACKGROUND TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799742#M1311450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the SM58 to see how many calls are there. It might be that the function is called multiple times every time the user exit is triggered. So put a break point in the user exit and check that the function is actually only called once per transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the SAP help says that the calls are stored in the tables ARFCSSTATE and ARFCSDATA, it might be worth checking the entries of this table for the function calls before the transaction commit work is executed. See [here|http://help.sap.com/saphelp_nw04/helpdata/en/8e/d05f3ce4dd3370e10000000a114084/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Jun 22, 2009 11:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2009 21:19:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-22T21:19:01Z</dc:date>
    <item>
      <title>Calling RFC enabled FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799741#M1311449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frnds,&lt;/P&gt;&lt;P&gt;I have a requirement where in I need to call a FM which executes 'VA02' BDC in some user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this has to be executed after the commit work is executed in the calling program i am using the background mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_SD_AVAILABILITY_CHECK_BDC'&lt;/P&gt;&lt;P&gt;    IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;    DESTINATION 'NONE'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_vbap = xvbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This above FM is RFC enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this FM is also called successfully and VA02 is executed without any error. But the FM's session does not get killed after its executed completly. Instead it creates another session of the same FM and executes the BDC again. This is goion on and on and multiple sessions are created at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something here? Do I have to include the Performing RETURN_INFO ON END OF TASK  also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give ur suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Karthick C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 20:33:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799741#M1311449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling RFC enabled FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799742#M1311450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the SM58 to see how many calls are there. It might be that the function is called multiple times every time the user exit is triggered. So put a break point in the user exit and check that the function is actually only called once per transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the SAP help says that the calls are stored in the tables ARFCSSTATE and ARFCSDATA, it might be worth checking the entries of this table for the function calls before the transaction commit work is executed. See [here|http://help.sap.com/saphelp_nw04/helpdata/en/8e/d05f3ce4dd3370e10000000a114084/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Jun 22, 2009 11:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 21:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799742#M1311450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T21:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calling RFC enabled FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799743#M1311451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was your BDC a call transaction or session method ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 06:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799743#M1311451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T06:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calling RFC enabled FM IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799744#M1311452</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;I have a requirement same as Karthick C except that instead of VA01 i have QM01 tcocde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bt notification is not getting created if I use Call FM in background task&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2009 11:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-rfc-enabled-fm-in-background-task/m-p/5799744#M1311452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-13T11:49:49Z</dc:date>
    </item>
  </channel>
</rss>

