Duplicate workitem is getting created

Srinivas Reddy ootasrinivasreddy at gmail.com
Fri Mar 9 10:29:58 EST 2012


Hello Experts,

I am experiencing a strange behaviour with the workitem's in my custom
workflow.Duplicate workitem's are created. The custom development is
as follows:

1) The workflow will be strated with the event Changed from the
standard business object DRAW and for the start conditions I have
written a custom function module and the start conditions are: if the
doc_status = 'RL' or 'RR' or 'CA' and doc_type ne 'GEN'.

2) In the first step I have used a switch type of multiple condition
to proceed with the relevant branch for doc_status = 'RL' and
doc_status = 'CA' in one branch and doc_status = 'RR' in a different
branch.

3) A dialog task created with EDIT document method assigned to the
relevant user. AFter editing the user can change the status to 'RL' or
'CA'.

Until here everything is working fine.

As per the requirement if the user changes the doc_status to 'RL' or
'CA' a notification with DISPLAY document transaction need to be sent
to the document creator.


4) On the other branch of the multiple condition switch I have created
dialog task with DISPAY method assigned.


AFter the user changes the document status to 'RL' or 'CA'. As per the
business requirement only one workitem with DISPLAY transaction should
be found in the document creators inbox but instead of 1 workitem 2
workitems are sent to the document creator.
No idea why this duplicate workitem is getting created. Please let me
know where I am docing wrong??



-- 
Thanks and Regards
Srini..
SAP Technical Consultant
+919963307464


More information about the SAP-WUG mailing list