2014 Feb 25 8:40 AM
Hello Gurus,
at the end of one of the parallel tasks I have in my program I have to trigger a new task. The problem is that this is not permitted
Does anyone have a solution for this very very nasty problem?? I can't belive this is not possible.
I am starting about 8 tasks and after each one is ready I have to start the next set of tasks but do not want to wait until all of them are finished.
Regards,
Ioan.
2014 Feb 25 8:52 AM
Normally you control starting of new tasks via global counters (one of the very few reasons to use global variables...) that track the number of tasks started and finished, and compare that to the number of DIA processes reserved for the parallel RFC action using the WAIT UNTIL command. This way new tasks are started once processes become available again.
I don't see a reason to start new tasks in the RECEIVE RESULTS section, and it's obviously not allowed anyway.
Thomas
P.S. now I see the previous reply, but I'll let mine stand nevertheless
Hello Gurus,
at the end of one of the parallel tasks I have in my program I have to trigger a new task. The problem is that this is not permitted
Does anyone have a solution for this very very nasty problem?? I can't belive this is not possible.
I am starting about 8 tasks and after each one is ready I have to start the next set of tasks but do not want to wait until all of them are finished.
Regards,
Ioan.
2014 Feb 25 8:46 AM
Hi Loan
You can try as follow. Keep a global flag. You have submitted all 8 FM's in parallel. After the submission make a wait until GV_FLAG is X. Simutaneouly this flag will set in Receive Results once the FM which you wants to run get executed. the moement this flag is set you can call new task after wait until flag
NAbheet
2014 Feb 25 8:52 AM
Normally you control starting of new tasks via global counters (one of the very few reasons to use global variables...) that track the number of tasks started and finished, and compare that to the number of DIA processes reserved for the parallel RFC action using the WAIT UNTIL command. This way new tasks are started once processes become available again.
I don't see a reason to start new tasks in the RECEIVE RESULTS section, and it's obviously not allowed anyway.
Thomas
P.S. now I see the previous reply, but I'll let mine stand nevertheless
2014 Feb 25 9:33 AM
Hi Thomas,
thank you for the reply. I wanted to use class events and to trigger the next tasks dynamically
Well, now I have to rewrite my program.
Regards,
Ioan.
2014 Feb 25 10:44 AM
P.S. now I see the previous reply
Wouldn't it be cool if SCN shows a notification saying that new updates have arrived since you started replying?
Something similar to what GMail does while drafting an email.
It would be really helpful when i am typing furiously to an extremely easy question only to find that it is deleted because of 'alert moderator' .
2014 Feb 25 11:11 AM
I didn't know you're going for the extremely easy questions
With today's HTML techniques (I assume) it should be possible to display the new message or updated status right there while you are still typing...so you can still adjust or not post at all.
Thomas
2014 Feb 25 1:41 PM
It is very easy to implement. They just have to reuse the code that shows '__ Updates' message at top of activity feed whenever new activity has taken place.