Help: How to get workItem ID for a workflow step with foreground task before Method execution

shaurya jain jain.shaurya at gmail.com
Fri Jul 11 00:47:55 EDT 2008


Hi Deepali,

I don't know what do you mean by before starting but workitem id will be
generated only after an instance of that work item is generated. I think you
can check with Program Exits if they can solve your purpose.


Programming exits are available for workflow/dialog/wait step/background
work items in which you can add ABAP classes. The ABAP classes must support
the interface IF_SWF_IFS_WORKITEM_EXIT and they can react to a pre-defined
status change.



I hope this helps.



Thanks,

Shaurya Jain


2008/7/11 Deepali Margaj <deepalimargaj at gmail.com>:

>  Hi Experts,
>      We have a requirement to get workitem ID for a Foreground task in a
> workflow. I have written code which uses FM SWO_QUERY_REQUESTER to return
> the workItem ID and update it to custom table. I have placed this code in
> the object method call (used by task) and it returns workitem ID correctly
> only if work Item execution is started. However requirement is to get the
> workItem ID as soon as WorkItem is created and we don't want to execute the
> workItem before receiving the ID in a custom table. Could anybody suggest
> the proper place to write this code .
>       Thanks in advance.
>
>
> Regards,
> Deepali
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080711/b30583b4/attachment.htm


More information about the SAP-WUG mailing list