Changing contents of work item outside the wf

Rick Bakker rbakker at gmail.com
Fri Apr 8 19:48:35 EDT 2011


Hello,

"To create a new column in SBWP it's necessary to change the workflow"

Not true. SBWP applies to every workflow.

regards
Rick Bakker
hanabi technology

On Fri, Apr 8, 2011 at 1:43 PM, Shoaib Mirza <shoaib_mirza at hotmail.com> wrote:
> Hi
>
> To create a new column in SBWP it's necessary to change the workflow by
> adding a new container and then using SWL1.
>
> I don't want to change the workflow as the workflow Im using can not be
> changed only copied and modified, major effort with lots of dependancies.  I
> have to get a user (a scanner or workflow initiator) showing in SBWP at the
> start of the workflow. The first step does not have
> the workflow initiator in the task container so my plan was to populate an
> existing field with the workflow initiator programmatically i.e.
> forwarder. Forwarder is not used in the first step.
>
> Cheers
>
>
>
>
>
>> From: rbakker at gmail.com
>> Date: Fri, 8 Apr 2011 13:31:25 -1000
>> Subject: Re: Changing contents of work item outside the wf
>> To: sap-wug at mit.edu
>>
>> 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
>> >
>> >
>>
>> _______________________________________________
>> SAP-WUG mailing list
>> SAP-WUG at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
> _______________________________________________
> 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