Page 1 of 1

Wait Event not being picked up

PostPosted: Tue Sep 30, 2008 8:47 am
by RobbieM
Hi,

We have a purchase order workflow that has a parallel branch with a wait for event of 'Released' on it. The theory is that if a PO is released the workflow will finish. We have a situation where POs are created then released straight away by an idoc. In the event log we can see the release step created event and it correctly starts the workflow however the released event follows at exactly the same time and the workflow does not seem to notice this so it sends a released PO to a user to be released. I hope this makes sense. Can anyone think of a reason why this might be happening? Does it need a slight delay between the two events? In SWEINST the linkage is active and when I look at the entry for one of these POs it tales me to the correct workflow.

Thanks

Rob

Re: Wait Event not being picked up

PostPosted: Tue Nov 11, 2008 10:57 pm
by jackjack
First of, turn on the event trace (tcode SWELS).
Then create a PO and approve it through IDOC.
Then, go to SWEL and see the event trace.
Make sure Released event comes after ReleasedStepCreated.

If the Released event is indeed comes after ReleasedStepCreated, then make sure the binding in the workflow is correct.
You can check the status of the event from SWEL as well.
See if any message there could give u a hint on what's going wrong.

Re: Wait Event not being picked up

PostPosted: Mon Mar 19, 2012 10:23 am
by shaikymulla
hi robbie,
it seems you need to introduce some delay between the two events
is the idoc independent of the workflow? , if yes then when the PO is created the release step event is triggered.
then if the idoc is triggering after this make sure u introduce few seconds delay in the FM which handles the IDOC so that released event is
triggered seconds after the releasestepcreated event. then the workflow would recognise the event and would
eventually solve the problem.

reward any points if it makes sense.

thanks,
shaik

Re: Wait Event not being picked up

PostPosted: Mon Mar 19, 2012 10:34 am
by Gothmog
shaikymulla wrote:hi robbie,
it seems you need to introduce some delay between the two events
How about three and a half years ? :roll:
shaikymulla wrote:reward any points if it makes sense.
You know that begging for points is forbidden even on SDN, a site that does have points?
Here, we offer beers...

Locked for necroposting - please read the forum rules.