<?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: Execute a FM in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638375#M284490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling the FM in Backgroung marks a flags for that function module func to be run asynchronously. That is, it is not executed at once. Instead, the data passed using EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Sep 2006 09:20:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-28T09:20:35Z</dc:date>
    <item>
      <title>Execute a FM in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638374#M284489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to execute a FM in background. Can I use &lt;/P&gt;&lt;P&gt;CALL FUNCTION - IN BACKGROUND TASK for this purpose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 09:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638374#M284489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T09:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a FM in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638375#M284490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling the FM in Backgroung marks a flags for that function module func to be run asynchronously. That is, it is not executed at once. Instead, the data passed using EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 09:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638375#M284490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T09:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a FM in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638376#M284491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for call function &lt;/P&gt;&lt;P&gt;IN UPDATE TASK is available. I am not sure about IN BACKGROUND TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternatively you can write it in a program and assign this to the background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 09:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638376#M284491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T09:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a FM in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638377#M284492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Function modules that you call using CALL FUNCTION ... IN BACKGROUND TASK DESTINATION are registered for background execution in another SAP System when the program reaches the next COMMIT WORK statement (using Remote Function Call). After the COMMIT WORK, the dialog process does not wait for these function modules to be executed (asynchronous update). All of the function modules that you register in this way are executed together in a single database LUW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to run in normal background i mean the same system, then there is no need to write any thing, you can use call FUNCTION MODULE statment. but make sure that GUI_* and WS_* function modules do not work in background &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 09:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638377#M284492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a FM in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638378#M284493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I placed the break-point at Commit work and checked for the processes in sm50. When the execution atopped at the break-point I pressed F6 and then refreshed the work processes in sm50 but I was not able to find my backgroud process. I could only see the dialog process. Is it possible for me to debug this from process overview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 10:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638378#M284493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-28T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Execute a FM in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638379#M284494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; probably (but u have to test this),is possible.&lt;/P&gt;&lt;P&gt;Just program an endless loop in your background task. Then in SM50 just debug the WP and u should enter in code of the endless loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : x value '5'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt; if x = '10'.&lt;/P&gt;&lt;P&gt;  exit. &lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thn in debug modify the value of the "x" to exit from the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls reward if it helps&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2006 11:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-a-fm-in-background/m-p/1638379#M284494</guid>
      <dc:creator>andrea_galluccio2</dc:creator>
      <dc:date>2006-09-28T11:08:22Z</dc:date>
    </item>
  </channel>
</rss>

