<?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 for event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231802#M1827414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;One additional thing came to my mind when thinking of your requirement. Instead of wating in a report for different Events and continue with the execution after they occurred, you could simply put all the logic in the event handler methods. Then your report only needs to create the event handler class, invoke the first method and wait until completion.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the above was the most simplest solution and I can only blame me for not thinking this through &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/776/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And may be I was not sure if I had helped you understand the problem statement clearly, there is no cross system scenario here. The report will be run in BW and the report will start process chains within BW. So even making the attribute as static should do it. again I should have thought of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been a procedural programmer all the while and I think your suggestions are some good steps for me towards OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I wrote a POC and the WAIT UNTIL actually does not work (for some reason). Did not have time to check why but I am going&amp;nbsp; to do that now. I wll keep you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 May 2014 18:12:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-05-10T18:12:08Z</dc:date>
    <item>
      <title>Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231796#M1827408</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;Below is my requirement. Any ideas how to make the program wait?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Z program has 4 different process chains that needs to be triggered. When the user executes the program, I trigger an event using FM. A process chain in BW will get executed once this event is triggered. &lt;/P&gt;&lt;P&gt;Now I want my main program to wait until the first process chain is completed to trigger the next event which will start another process chain. how do I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have a wait until N seconds (in a loop) and then query some table to check if the first process chain is completed. Is there any other way to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 19:03:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231796#M1827408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-08T19:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231797#M1827409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I actually want is for my program to wait for another event to be triggered by the process chain. Once the process chain triggers a "completed" event, I want to resume my program trigger another event to start another process chain and then go back to wait state until the 2nd process chain&lt;/P&gt;&lt;P&gt;triggers a "completed" event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 19:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231797#M1827409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-08T19:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231798#M1827410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use event handlers and WAIT UNTIL (&lt;A href="http://help.sap.com/saphelp_nwpi71/helpdata/en/c6/13a228e9c5ca469fe7065387dc87be/content.htm" title="http://help.sap.com/saphelp_nwpi71/helpdata/en/c6/13a228e9c5ca469fe7065387dc87be/content.htm"&gt;WAIT UNTIL - Application Development on AS ABAP - SAP Library&lt;/A&gt;) to achieve this. What you need to do is the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a class with some boolean valued attributes, e.g. PROCESS_STEP_ONE_COMPLETE&lt;/LI&gt;&lt;LI&gt;Create an event handler method that sets each of these attributes to ABAP_TRUE&lt;/LI&gt;&lt;LI&gt;In the beginning of your program register the methods for the respective events (&lt;A href="http://help.sap.com/abapdocu_702/en/abapset_handler.htm" title="http://help.sap.com/abapdocu_702/en/abapset_handler.htm"&gt;ABAP Keyword Documentation&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;At the point in the program where you want to interrupt the execution use &lt;SPAN style="font-size: 10pt;"&gt;WAIT UNTIL &amp;lt;your-instance&amp;gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;PROCESS_STEP_ONE_COMPLETE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = ABAP_TRUE to wait for the event to occur.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Finally you need to raise the necessary events once the BW process is finished, e.g. via some remote function call.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Christian &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 21:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231798#M1827410</guid>
      <dc:creator>ceedee666</dc:creator>
      <dc:date>2014-05-08T21:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231799#M1827411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Christian. Let me try this out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 21:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231799#M1827411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-08T21:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231800#M1827412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't got a chance to try this out yet. But I was thinking about this and a question popped up in my head. Hope you can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we will be creating a global class and a public attribute that will be set to X by an event handler and my program is waiting for this variable to be X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if there are 2 users run the same program the same time with different data to be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User 1 runs the program and kicks off process chain1. the program now waits for process to be completed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User 2 runs the same program and kicks of process chain 1 with different data. the program waits for completion of PC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets says user 2 has less data to process, the PC1 completes before PC1 kicked off by user 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the variable will be set to X which will cause both program for both user1 and user2 to come out of wait but actually only user2 program should come out of wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question here is, in case of global class/public attribute, does the user specific LUW still come into play?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 14:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231800#M1827412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-09T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231801#M1827413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your assumption that a parallel execution if the report could be a problem is right. Therefor I would create a global class with instance attributes not static attributes. You then instanziate this class with each execution if the report. &lt;/P&gt;&lt;P&gt;As the LUWs won't help you in the cross system scenario you further need a way to differentiate between the events raised by BW upon finishing of the process. Therefor you need to add some parameter to the event which you can check in the method that updates the attribute. You could, for example, create a guid upon instantiation of your class an pass it along with the events as a parameter. On processing of the event you check if the guid of the current process was given or not and only update the attribute if the correct guid is provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One additional thing came to my mind when thinking of your requirement. Instead of wating in a report for different Events and continue with the execution after they occurred, you could simply put all the logic in the event handler methods. Then your report only needs to create the event handler class, invoke the first method and wait until completion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 06:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231801#M1827413</guid>
      <dc:creator>ceedee666</dc:creator>
      <dc:date>2014-05-10T06:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231802#M1827414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;One additional thing came to my mind when thinking of your requirement. Instead of wating in a report for different Events and continue with the execution after they occurred, you could simply put all the logic in the event handler methods. Then your report only needs to create the event handler class, invoke the first method and wait until completion.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the above was the most simplest solution and I can only blame me for not thinking this through &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/776/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And may be I was not sure if I had helped you understand the problem statement clearly, there is no cross system scenario here. The report will be run in BW and the report will start process chains within BW. So even making the attribute as static should do it. again I should have thought of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been a procedural programmer all the while and I think your suggestions are some good steps for me towards OO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I wrote a POC and the WAIT UNTIL actually does not work (for some reason). Did not have time to check why but I am going&amp;nbsp; to do that now. I wll keep you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 18:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231802#M1827414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-10T18:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231803#M1827415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I wrote a small POC to test this out. Creating the variable as a instance attribute works perfect. But the WAIT UNTIL statement does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed to DO..ENDDO with the check inside and that works as I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So even though I got my solution, I still wonder why the WAIT UNTIL does not work. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vikram.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 21:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231803#M1827415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-12T21:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231804#M1827416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikram, &lt;/P&gt;&lt;P&gt;i read the documentation of WAIT UTIL again. It explicitly states that WAIT UTIL can only be used in the context of asynchronous RFCs. In thei context the exprsession is evallayed after the call back function of the aRFC was invoked.&lt;/P&gt;&lt;P&gt;So your approach using busy waiting is indeed the only possible. Sorry for pointing you in the wrong direction.&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 20:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231804#M1827416</guid>
      <dc:creator>ceedee666</dc:creator>
      <dc:date>2014-05-13T20:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231805#M1827417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your time Christian. At least now I know when to use WAIT UNTIL. Again thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 20:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231805#M1827417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-13T20:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Wait for event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231806#M1827418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Muralidharan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Please consider the code snippet below for your a-synchronous function moduling process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Please be aware that the function module must be made 'Remote enabled'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Good luck, and if you have any queries, please let us know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Sander&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CLASS lcl_parallel_process_construct DEFINITION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;PUBLIC SECTION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;mv_id &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;char8&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;mv_jobs &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;int4&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;mv_dest_group &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;rzlli_apcl &lt;SPAN class="L0S52"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'parallel_generators'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;DATA &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;mv_jobs &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;int4&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-family: 'courier new', courier;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHODS &lt;/SPAN&gt;rfc_parallel_process&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !iv_jobs &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;METHODS &lt;/SPAN&gt;rfc_parallel_processed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !p_task &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;clike&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDCLASS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CLASS lcl_parallel_process_construct IMPLEMENTATION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;rfc_parallel_process&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-family: 'courier new', courier;"&gt;* These should be globals&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WAIT &lt;/SPAN&gt;UNTIL mv_jobs &lt;SPAN class="L0S52"&gt;LT &lt;/SPAN&gt;iv_jobs&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; mv_jobs &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mv_jobs + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; mv_id &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mv_id + &lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZYOUR_FUMO'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;STARTING &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NEW &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TASK &lt;/SPAN&gt;mv_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DESTINATION &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;GROUP &lt;/SPAN&gt;mv_dest_group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALLING me&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;rfc_parallel_processed &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TASK&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iv_id &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'TOOLBOX'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S52"&gt;ENDMETHOD&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;rfc_parallel_processed&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lv_failed &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;lv_success &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;RECEIVE &lt;/SPAN&gt;RESULTS &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION 'ZYOUR_FUMO&lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev_failed&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_failed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev_success&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_success&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; mv_jobs &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;mv_jobs &lt;SPAN class="L0S70"&gt;- 1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN class="L0S52"&gt;ENDMETHOD&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ENDCLASS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 06:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wait-for-event/m-p/10231806#M1827418</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-05-15T06:43:40Z</dc:date>
    </item>
  </channel>
</rss>

