<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi Rick<BR>
&nbsp;<BR>
Ok I've created a new column for the task in SWL1 without referencing any container elements, since none of the existing container elements meet our requirements.<BR>
How would I go about populating it with a value from outside the workflow?<BR>
&nbsp;<BR>
Cheers<BR>
&nbsp;<BR>
I can create columns in SWL1 for containers that exist.&nbsp; Workflow initiator is not in&nbsp;the container&nbsp;<BR>
&gt; From: rbakker@gmail.com<BR>&gt; Date: Fri, 8 Apr 2011 13:48:35 -1000<BR>&gt; Subject: Re: Changing contents of work item outside the wf<BR>&gt; To: sap-wug@mit.edu<BR>&gt; <BR>&gt; Hello,<BR>&gt; <BR>&gt; "To create a new column in SBWP it's necessary to change the workflow"<BR>&gt; <BR>&gt; Not true. SBWP applies to every workflow.<BR>&gt; <BR>&gt; regards<BR>&gt; Rick Bakker<BR>&gt; hanabi technology<BR>&gt; <BR>&gt; On Fri, Apr 8, 2011 at 1:43 PM, Shoaib Mirza &lt;shoaib_mirza@hotmail.com&gt; wrote:<BR>&gt; &gt; Hi<BR>&gt; &gt;<BR>&gt; &gt; To create a new column in SBWP it's necessary to change the workflow by<BR>&gt; &gt; adding a new container and then using SWL1.<BR>&gt; &gt;<BR>&gt; &gt; I don't want to change the workflow as the workflow Im using can not be<BR>&gt; &gt; changed only copied and modified, major effort with lots of dependancies.&nbsp; I<BR>&gt; &gt; have to get&nbsp;a user&nbsp;(a scanner or workflow initiator) showing in&nbsp;SBWP at the<BR>&gt; &gt; start&nbsp;of the workflow. The first step does not have<BR>&gt; &gt; the workflow initiator in the task container so my&nbsp;plan was to&nbsp;populate an<BR>&gt; &gt; existing field with the workflow initiator programmatically i.e.<BR>&gt; &gt; forwarder.&nbsp;Forwarder is not used in the first step.<BR>&gt; &gt;<BR>&gt; &gt; Cheers<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt; From: rbakker@gmail.com<BR>&gt; &gt;&gt; Date: Fri, 8 Apr 2011 13:31:25 -1000<BR>&gt; &gt;&gt; Subject: Re: Changing contents of work item outside the wf<BR>&gt; &gt;&gt; To: sap-wug@mit.edu<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Hello,<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; You can't update the Forwarder, that would be like trying to update<BR>&gt; &gt;&gt; the Initiator.<BR>&gt; &gt;&gt; Update it to what?<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; You have to look into creating a new column in SBWP.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; regards<BR>&gt; &gt;&gt; Rick Bakker<BR>&gt; &gt;&gt; hanabi technology<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; On Fri, Apr 8, 2011 at 1:24 PM, Shoaib Mirza &lt;shoaib_mirza@hotmail.com&gt;<BR>&gt; &gt;&gt; wrote:<BR>&gt; &gt;&gt; &gt; Hi<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; I tried the following but it doesn't update the&nbsp;forwarder, any<BR>&gt; &gt;&gt; &gt; suggestions<BR>&gt; &gt;&gt; &gt; would be appreciated.&nbsp; I need to update it in a function module<BR>&gt; &gt;&gt; &gt; outside of workflow eventually.<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Test report<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; INCLUDE &lt;object&gt;.<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; DATA: WI_HEADER TYPE SWWWIHEAD .<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; SELECT SINGLE * FROM SWWWIHEAD INTO WI_HEADER<BR>&gt; &gt;&gt; &gt; WHERE WI_ID = '000000444666'.<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; MOVE: 'TESTER' TO WI_HEADER-WI_FORW_BY,<BR>&gt; &gt;&gt; &gt; 'TESTER' TO WI_HEADER-WI_CREATOR.<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; CALL FUNCTION 'SWW_WI_CONTAINER_MODIFY'<BR>&gt; &gt;&gt; &gt; EXPORTING<BR>&gt; &gt;&gt; &gt; wi_id = '000000444666'<BR>&gt; &gt;&gt; &gt; DO_COMMIT = 'X'<BR>&gt; &gt;&gt; &gt; * DELETE_OLD_CONTAINER = 'X'<BR>&gt; &gt;&gt; &gt; * MERGE_OLD_CONTAINER = 'X'<BR>&gt; &gt;&gt; &gt; * WI_CONTAINER_HANDLE =<BR>&gt; &gt;&gt; &gt; * IMPORTING<BR>&gt; &gt;&gt; &gt; * EXCEPTION =<BR>&gt; &gt;&gt; &gt; * TABLES<BR>&gt; &gt;&gt; &gt; * WI_CONTAINER =<BR>&gt; &gt;&gt; &gt; CHANGING<BR>&gt; &gt;&gt; &gt; WI_HEADER = WI_HEADER.<BR>&gt; &gt;&gt; &gt; .<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; &nbsp;Cheers<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; ________________________________<BR>&gt; &gt;&gt; &gt; From: shoaib_mirza@hotmail.com<BR>&gt; &gt;&gt; &gt; To: sap-wug@mit.edu<BR>&gt; &gt;&gt; &gt; Subject: Changing contents of run time work item element<BR>&gt; &gt;&gt; &gt; Date: Fri, 8 Apr 2011 20:46:55 +0000<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Hi Workflow'ers,<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; I&nbsp;want to change the value in the standard SBWP field 'Forwarder'.<BR>&gt; &gt;&gt; &gt; This is in the work item container&nbsp;_workitem.<BR>&gt; &gt;&gt; &gt; I was wondering if it's possible to change this and if so I'd appreciate<BR>&gt; &gt;&gt; &gt; some tips on the<BR>&gt; &gt;&gt; &gt; best way to do this.<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; Many thanks..<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; _______________________________________________<BR>&gt; &gt;&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt;&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt;&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; _______________________________________________<BR>&gt; &gt;&gt; SAP-WUG mailing list<BR>&gt; &gt;&gt; SAP-WUG@mit.edu<BR>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; SAP-WUG@mit.edu<BR>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; SAP-WUG mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>                                               </body>
</html>