Duplicate workitem is getting created

Rick Bakker rbakker at gmail.com
Sat Mar 10 03:14:02 EST 2012


Hello,

You should be able to see in the workflow log why two workitems were
created. Check that there weren't two workflow instances for some
reason.

I'm not sure why you're using a workitem if it's just for display
purposes. Why not just send an email?

regards
Rick Bakker
hanabi technology

On Fri, Mar 9, 2012 at 5:29 AM, Srinivas Reddy
<ootasrinivasreddy at gmail.com> wrote:
> 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
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug


More information about the SAP-WUG mailing list