<?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: Synchronization between two different abap threads in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823450#M42905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use the statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RFC_SYSTEM_INFO' &lt;/P&gt;&lt;P&gt;     STARTING NEW TASK 'INFO' &lt;/P&gt;&lt;P&gt;     PERFORMING RETURN_INFO ON END OF TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM RETURN_INFO USING TASKNAME.&lt;/P&gt;&lt;P&gt;RECEIVE RESULTS FROM FUNCTION 'RFC_SYSTEM_INFO' &lt;/P&gt;&lt;P&gt;     IMPORTING  RFCSI_EXPORT = INFO.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Nov 2004 13:15:59 GMT</pubDate>
    <dc:creator>JackGraus</dc:creator>
    <dc:date>2004-11-11T13:15:59Z</dc:date>
    <item>
      <title>Synchronization between two different abap threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823449#M42904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to perform a call to a remote system and receive a response asynchronously (that is the response will be a out of band call back into another RFC). What i need is to synchronize the request and response. That is, i want to be able to make the async call, than wait for an event which be set by the async receiving rfc. The rfc receiving the call should be able to provide me with the response values. How can this be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2004 13:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823449#M42904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-11T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronization between two different abap threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823450#M42905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use the statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RFC_SYSTEM_INFO' &lt;/P&gt;&lt;P&gt;     STARTING NEW TASK 'INFO' &lt;/P&gt;&lt;P&gt;     PERFORMING RETURN_INFO ON END OF TASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM RETURN_INFO USING TASKNAME.&lt;/P&gt;&lt;P&gt;RECEIVE RESULTS FROM FUNCTION 'RFC_SYSTEM_INFO' &lt;/P&gt;&lt;P&gt;     IMPORTING  RFCSI_EXPORT = INFO.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2004 13:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823450#M42905</guid>
      <dc:creator>JackGraus</dc:creator>
      <dc:date>2004-11-11T13:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronization between two different abap threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823451#M42906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understood your problem correctly this is what you can do:&lt;/P&gt;&lt;P&gt;1. call a function via rfc.&lt;/P&gt;&lt;P&gt;2. the called function is doing the requested stuff&lt;/P&gt;&lt;P&gt;3. after all, it is calling a function via rfc and passing the result&lt;/P&gt;&lt;P&gt;4. this called function raises an event and posts teh results into memory&lt;/P&gt;&lt;P&gt;5. a new or your first program reacts on this event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2004 13:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823451#M42906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-11T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronization between two different abap threads</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823452#M42907</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;do you know about these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL FUNCTION func STARTING NEW TASK task DESTINATION ... [{PERFORMING subr}|{CALLING meth} ON END OF TASK].&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asynchronous call of a remote-enabled function module.&lt;/P&gt;&lt;P&gt;The addition specifies either a subroutine &amp;lt;b&amp;gt;subr&amp;lt;/b&amp;gt; or, as of release 6.20, a method &amp;lt;b&amp;gt;meth&amp;lt;/b&amp;gt; as callback routine, which is executed after terminating the asynchronously called function module. Prerequisite for the execution of the callback routine is that the calling program still exists in its internal mode when the remote function is terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;RECEIVE RESULTS FROM FUNCTION func&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this statement in a callback routine specified in an asynchronous RFC to receive output parameters of an asynchronously called function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WAIT UNTIL log_exp [UP TO sec SECONDS]. &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interrupts program execution for as long as the result of the logical expression log_exp is incorrect. If the result of log_exp is incorrect, the program waits until a callback routine of a previous function that was called asynchronously was executed and then checks the logical expression again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Nov 2004 13:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synchronization-between-two-different-abap-threads/m-p/823452#M42907</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2004-11-11T13:20:35Z</dc:date>
    </item>
  </channel>
</rss>

