Changing contents of work item outside the wf
Shoaib Mirza
shoaib_mirza at hotmail.com
Fri Apr 8 19:24:46 EDT 2011
Hi
I tried the following but it doesn't update the forwarder, any suggestions would be appreciated. I need to update it in a function module
outside of workflow eventually.
Test report
INCLUDE <object>.
DATA: WI_HEADER TYPE SWWWIHEAD .
SELECT SINGLE * FROM SWWWIHEAD INTO WI_HEADER
WHERE WI_ID = '000000444666'.
MOVE: 'TESTER' TO WI_HEADER-WI_FORW_BY,
'TESTER' TO WI_HEADER-WI_CREATOR.
CALL FUNCTION 'SWW_WI_CONTAINER_MODIFY'
EXPORTING
wi_id = '000000444666'
DO_COMMIT = 'X'
* DELETE_OLD_CONTAINER = 'X'
* MERGE_OLD_CONTAINER = 'X'
* WI_CONTAINER_HANDLE =
* IMPORTING
* EXCEPTION =
* TABLES
* WI_CONTAINER =
CHANGING
WI_HEADER = WI_HEADER.
.
Cheers
From: shoaib_mirza at hotmail.com
To: sap-wug at mit.edu
Subject: Changing contents of run time work item element
Date: Fri, 8 Apr 2011 20:46:55 +0000
Hi Workflow'ers,
I want to change the value in the standard SBWP field 'Forwarder'.
This is in the work item container _workitem.
I was wondering if it's possible to change this and if so I'd appreciate some tips on the
best way to do this.
Many thanks..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20110408/98555650/attachment.htm
More information about the SAP-WUG
mailing list