AW: Getting current agent (name) from workflow work item
Benjamin.Koeb@comlineag.de
Benjamin.Koeb at comlineag.de
Tue Jan 26 11:51:09 EST 2010
Hi Sunni,
you can read the actual (Workitem status = started) agent from table SWWWIHEAD-WI_AAGENT with key = WI_ID. This works fine for workitems with status = started, if the status = ready the field wi_aagent is empty! For workitems with status ready, try to use function module SAP_WAPI_WORKITEM_RECIPIENTS:
CALL FUNCTION 'SAP_WAPI_WORKITEM_RECIPIENTS'
EXPORTING
workitem_id = lv_wi_id
tables
recipients = it_recipients.
That's my way, maybe there are better ones?
Regards,
Benny
Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] Im Auftrag von Shoaib Mirza
Gesendet: Dienstag, 26. Januar 2010 17:37
An: sap-wug at mit.edu
Betreff: Getting current agent (name) from workflow work item
Hi
Please can you let me know how I would go about getting the current agent of a workflow from the workitem id of the workflow. I looked for a wapi but could not find one suitable.
Kindest Regards
Sunni
________________________________
Do you have a story that started on Hotmail? Tell us now<http://clk.atdmt.com/UKM/go/195013117/direct/01/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20100126/b215feb1/attachment.htm
More information about the SAP-WUG
mailing list