cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous task issue

Former Member
0 Kudos

hi,

I have a workflow with a task that is asynchronous and it terminates on an event.

The issue is that when this event is triggered all the workitems of that particular task of other workflows get terminated and not that particular workitem of the workflow which is responsible for calling the terminating event.

Regards,

Sukhwinder

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

have you used a key for the event.

i.e. if you have an BOR with key fields then when you call the event only that particular task will be terminated whose key matches with that of your object.

keyobj = wa_empret.

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

objtype = 'ZHR_EMP'

objkey = keyobj

event = 'SEND'

commit work.

try calling the event passing the key and create keyfields for your BOR object

ZHR_EMP.

Regards,

Manish

Former Member
0 Kudos

thanx,

i tried a test application and it worked, will apply it to my existing workflow.

as per now i am closing it as answered.