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