Changing contents of work item outside the wf

Rick Bakker rbakker at gmail.com
Fri Apr 8 19:31:25 EDT 2011


Hello,

You can't update the Forwarder, that would be like trying to update
the Initiator.
Update it to what?

You have to look into creating a new column in SBWP.

regards
Rick Bakker
hanabi technology

On Fri, Apr 8, 2011 at 1:24 PM, Shoaib Mirza <shoaib_mirza at hotmail.com> wrote:
> 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..
>
>
> _______________________________________________
> 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