<?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: CALL function IN BACKGROUND TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588042#M1082028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it will run in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/22/042578488911d189490000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/22/042578488911d189490000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help says:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The remote system need not be available at the time when the RFC client program is executing a tRFC. The tRFC component stores the called RFC function together with the corresponding data in the database of the SAP system, including a unique transaction identifier (TID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a call is sent, and the receiving system is down, the call remains in the local queue until a later time. The calling dialog program can proceed without waiting to see whether or not the remote call was successful. If the receiving system does not become active within a certain amount of time, the call is scheduled to run in batch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not running in the background than how it will keep on checking that the target system is on or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2008 16:23:13 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-10-08T16:23:13Z</dc:date>
    <item>
      <title>CALL function IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588041#M1082027</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 am calling a FM like as shown below: (this FM is defined as RFC FM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL function IN BACKGROUND TASK&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when the FM gets executed, it is running in one of the dialog process as opposed to background process. Is it how it suppose to work or It should triggered the FM in background process?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically we want this function call to be executed in background process. The reason being; for the process this FM is used, sometimes take more time (more that the "timeout" limit). We want the FM to run in background task so the "timeout" limit does not affect this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if anyone has the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 16:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588041#M1082027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: CALL function IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588042#M1082028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it will run in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this help:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/22/042578488911d189490000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/22/042578488911d189490000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help says:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The remote system need not be available at the time when the RFC client program is executing a tRFC. The tRFC component stores the called RFC function together with the corresponding data in the database of the SAP system, including a unique transaction identifier (TID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a call is sent, and the receiving system is down, the call remains in the local queue until a later time. The calling dialog program can proceed without waiting to see whether or not the remote call was successful. If the receiving system does not become active within a certain amount of time, the call is scheduled to run in batch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not running in the background than how it will keep on checking that the target system is on or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 16:23:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588042#M1082028</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-10-08T16:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: CALL function IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588043#M1082029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You asked,&lt;/P&gt;&lt;P&gt;If it is not running in the background than how it will keep on checking that the target system is on or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think that something needs to be run in background to check if the target system is on or not. It is the tRFC component which store the data in SAP and checks if target system is on. If it is on, it makes the call and if it is not then it waits for some spefic time and then schedule the same to run in batch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the target system is always the same system I am making the call from. Which means, I am calling the FM in same system. So it will never happen that the target system is down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not find any documentation which says clearly that IN BACKGROUND TASK execute the FM in background process in target system. So i am confused if it is working fine as is (executing in dialog process) or something nees to be done (either programatically or BASIS has to do sometthing) to make it run in background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pratik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 16:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588043#M1082029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T16:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: CALL function IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588044#M1082030</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;you can create a background job in the IN BACKGROUND TASK FM and let the batch job do the processing..so that it will not have timeout issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_TEST' IN BACKGROUND TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FUNCTION Z_TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SUBMIT z_batchjob VIA JOB&lt;/P&gt;&lt;P&gt;                    WITH vbeln = input_vbeln..&lt;/P&gt;&lt;P&gt;           .............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDFUNCTION.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 18:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588044#M1082030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T18:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: CALL function IN BACKGROUND TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588045#M1082031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also facing the same problem.&lt;/P&gt;&lt;P&gt;have you find any solution  or anything to make the FM run in background.&lt;/P&gt;&lt;P&gt;If you found any solution or any configuration settings pls let me know&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;Taj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 07:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-in-background-task/m-p/4588045#M1082031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T07:09:23Z</dc:date>
    </item>
  </channel>
</rss>

