<?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 Threading in ABAP? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/threading-in-abap/m-p/4568737#M1078096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario (Order taking) where the execution logic takes considerable time to finish the processing. As a result, the end user who is using the web application has to wait for at-least 10 minutes till the processing is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI (WebDynpro) until the response comes back, the hour glass / sand timer (wheel) keeps coming and hence the user cannot do anything but has to wait till the processing is complete. I would like to know if there is a possibility to develop a function module in ABAP that would trigger a new process internally which will run in the background and still the Function Module can return back certain message like "Your order number XXXXXX X has been submitted and is getting processed. Please check the status of it after 10 minutes". May be something similar to threading in Java?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2008 10:03:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-29T10:03:47Z</dc:date>
    <item>
      <title>Threading in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/threading-in-abap/m-p/4568737#M1078096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario (Order taking) where the execution logic takes considerable time to finish the processing. As a result, the end user who is using the web application has to wait for at-least 10 minutes till the processing is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI (WebDynpro) until the response comes back, the hour glass / sand timer (wheel) keeps coming and hence the user cannot do anything but has to wait till the processing is complete. I would like to know if there is a possibility to develop a function module in ABAP that would trigger a new process internally which will run in the background and still the Function Module can return back certain message like "Your order number XXXXXX X has been submitted and is getting processed. Please check the status of it after 10 minutes". May be something similar to threading in Java?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/threading-in-abap/m-p/4568737#M1078096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Threading in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/threading-in-abap/m-p/4568738#M1078097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try some thing like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the Function module interface have a parameter along with other parameters, bind that to your context. First time pass space to it. at that time you can call your function in the initial process like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if flag = ''.
call function 'ZTEST_RFC' starting new task 'ABC'.
else.
 "get the data here...
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will start a new task. and come back to WD. next time you set the parameter to 'X' and get the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/threading-in-abap/m-p/4568738#M1078097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Threading in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/threading-in-abap/m-p/4568739#M1078098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ARFCs: &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/22/042592488911d189490000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/22/042592488911d189490000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 10:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/threading-in-abap/m-p/4568739#M1078098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T10:46:42Z</dc:date>
    </item>
  </channel>
</rss>

