<?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: Asynchronous call in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871423#M1959912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ulrich&lt;/P&gt;&lt;P&gt;we are already calling the same way&lt;/P&gt;&lt;P&gt;but my requirement is that the ECC program shud get 'completed'&lt;/P&gt;&lt;P&gt;the background job in sm37 should be completed, finished.&lt;/P&gt;&lt;P&gt;the program in SRM should have got started. and when it will get finished, then the results shud be sent back to ECC.&lt;/P&gt;&lt;P&gt;Starting new task is asynchronous in way of connection but as a functionality, the calling program is not finished while the RFC is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;bhakti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 21:16:01 GMT</pubDate>
    <dc:creator>bhakti2</dc:creator>
    <dc:date>2016-09-27T21:16:01Z</dc:date>
    <item>
      <title>Asynchronous call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871421#M1959910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what is correct way to call SRM from ECC program asynchronously ? so that the&amp;nbsp; ECC program gets over even if SRM code is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call RFC function module in update task &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PI scenario to trigger SRM code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ECC needs results so SRM needs to send results once SRM task is completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for any inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bhakti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 05:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871421#M1959910</guid>
      <dc:creator>bhakti2</dc:creator>
      <dc:date>2016-09-27T05:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871422#M1959911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhakti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"CALL FUNCTION IN UPDATE TASK" is basically a &lt;EM&gt;&lt;STRONG&gt;synchronous&lt;/STRONG&gt;&lt;/EM&gt; call, the difference being only that all inserts/updates to database tables are not performed directly on the tables, but in a temporary "update area", so they can be committed/rolled back later in one unit by the "update work process".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want an asynchronous communication to a different system, you need to use "CALL FUNCTION STARTING NEW TASK", e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MY_FUNC' STARTING NEW TASK 'my_task'&lt;/P&gt;&lt;P&gt;PERFORMING MY_FORM ON END OF TASK&lt;/P&gt;&lt;P&gt;DESTINATION 'my_dest'&lt;/P&gt;&lt;P&gt;EXPORTING ...&lt;/P&gt;&lt;P&gt;IMPORTING...&lt;/P&gt;&lt;P&gt;TABLES...&lt;/P&gt;&lt;P&gt;EXCEPTIONS...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you need a form routine like this, which will be triggered asynchronously, when the results from the target system arrive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM MY_FORM USING TASKNAME.&lt;/P&gt;&lt;P&gt;RECEIVE RESULTS FROM FUNCTION 'MY_FUNC'&lt;/P&gt;&lt;P&gt;IMPORTING ...&lt;/P&gt;&lt;P&gt;TABLES ...&lt;/P&gt;&lt;P&gt;EXCEPTIONS ...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the ABAP doc of the CALL FUNCTION statement for more details and samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 11:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871422#M1959911</guid>
      <dc:creator>Ulrich_Schmidt1</dc:creator>
      <dc:date>2016-09-27T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871423#M1959912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ulrich&lt;/P&gt;&lt;P&gt;we are already calling the same way&lt;/P&gt;&lt;P&gt;but my requirement is that the ECC program shud get 'completed'&lt;/P&gt;&lt;P&gt;the background job in sm37 should be completed, finished.&lt;/P&gt;&lt;P&gt;the program in SRM should have got started. and when it will get finished, then the results shud be sent back to ECC.&lt;/P&gt;&lt;P&gt;Starting new task is asynchronous in way of connection but as a functionality, the calling program is not finished while the RFC is running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;bhakti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871423#M1959912</guid>
      <dc:creator>bhakti2</dc:creator>
      <dc:date>2016-09-27T21:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871424#M1959913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ulrich and other gurus&lt;/P&gt;&lt;P&gt;do comment on the requirement how to achieve it.&lt;/P&gt;&lt;P&gt;Would this be another option - call remote function from ABAP in SRM, trigger an ABAP OOPS event, start another process as event handler , the remote function is completed so the ABAP process is complete. once the event handler is completed in SRM , it will update the Ztable in ECC with its results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it correct or feasible or is there a better approach ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any comments, anything, any thoughts are welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871424#M1959913</guid>
      <dc:creator>bhakti2</dc:creator>
      <dc:date>2016-09-30T14:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871425#M1959914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhakti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, as far as I understand the requirement now, you are looking for some kind of "messaging infrastructure": ECC sends a message to SRM, where it is stored in a queue. At some point of time a scheduler in SRM processes the message, and when it is finished, it sends a "response message" back to ECC. Here again a scheduler processes the response and updates the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure, whether that can be achieved with out-of-the-box ABAP features. Perhaps the closest you can get would be to use "Background RFC" (bgRFC) with two queues (one outgoing, one incoming) on each of the two systems?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An old-style approach would be to use ALE and exchange IDocs between the two systems?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871425#M1959914</guid>
      <dc:creator>Ulrich_Schmidt1</dc:creator>
      <dc:date>2016-09-30T14:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Asynchronous call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871426#M1959915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ulrich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no my requirement is not messaging infrastructure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but from your description it could be one of the solutions to my requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check the bgRFC and ALE IDoc options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my only requirement is that my ECC program need not wait till the SRM work is finished because its taking too long. but then ofcourse I need the results of the SRM activity to log in ECC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have too much time and resource and need simplistic solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks very much for sharing your knowledge, its very useful for me to design the solution to have your thoughts and ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;bhakti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 16:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/asynchronous-call/m-p/11871426#M1959915</guid>
      <dc:creator>bhakti2</dc:creator>
      <dc:date>2016-09-30T16:11:06Z</dc:date>
    </item>
  </channel>
</rss>

