<?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: Wait in Asynchronous Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678274#M1575778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I am following the exact approach of calling remote enabled FM in background task in seperate unit to create invoice.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind that asynch RFC(aRFC) &amp;amp; RFC as BACKGROUND TASK(transactional RFC or tRFC) are completely different. While the former is generally used for parallel processing, the latter is used to maintain the "atomicity" of an SAP LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tRFC calls are registered in special DB tables(ARFCSSTATE &amp;amp; ARFCSDATA) &amp;amp; are executed once the COMMIT WORK statement is executed in the particular LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further read available on the F1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2011 04:27:46 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2011-03-09T04:27:46Z</dc:date>
    <item>
      <title>Wait in Asynchronous Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678271#M1575775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are creating calling Asynchronous function module in the Delivery User Exist to create Invoice. Invoice creation needs to wait until delivery change is commited. For this purpose, we have placed ENQUEUE_SLEEP FM in the asynchronous FM with a wait time of 1 second. We have written a logic in such a way that ENQUEUE_SLEEP is called in a loop causing a delay of one second until delivery can be locked successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we cant let it wait for one second. Delivery should be locked as soon as delivery is committed in the main program. How can we achieve this in asynchronously called FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 16:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678271#M1575775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-08T16:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wait in Asynchronous Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678272#M1575776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Invoice creation needs to wait until delivery change is commited. For this purpose, we have placed ENQUEUE_SLEEP FM in the asynchronous FM with a wait time of 1 second. We have written a logic in such a way that ENQUEUE_SLEEP is called in a loop causing a delay of one second &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you going for this approach ? You can create a remote enabled fm and call it in background task as seperate unit in your user exit..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 18:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678272#M1575776</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-03-08T18:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wait in Asynchronous Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678273#M1575777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am following the exact approach of calling remote enabled FM in background task in seperate unit to create invoice. But This FM has to wait till delivery is committed. For this purpose, I am continuously trying to lock delivery after making it wait for 1 second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But sometimes this 1 second is long enough for user to open the delivery in change mode again. I want to lock delivery as soon as delivery change has been committed. How can I do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 03:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678273#M1575777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-09T03:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Wait in Asynchronous Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678274#M1575778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I am following the exact approach of calling remote enabled FM in background task in seperate unit to create invoice.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind that asynch RFC(aRFC) &amp;amp; RFC as BACKGROUND TASK(transactional RFC or tRFC) are completely different. While the former is generally used for parallel processing, the latter is used to maintain the "atomicity" of an SAP LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tRFC calls are registered in special DB tables(ARFCSSTATE &amp;amp; ARFCSDATA) &amp;amp; are executed once the COMMIT WORK statement is executed in the particular LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further read available on the F1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2011 04:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-in-asynchronous-function-module/m-p/7678274#M1575778</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-03-09T04:27:46Z</dc:date>
    </item>
  </channel>
</rss>

