Changing priority of workitem dynamicaly

Patrice Nolin Nolin.Patrice at hydro.qc.ca
Mon Mar 22 10:01:18 EST 2004


Hi,=20
 
I finally found a solution for my question. I'm posting the result =
since the
question was asked before and I didn't saw a solution.
 
To change the priority of a work item, you call the function
SAP_WAPI_CHANGE_WORKITEM_PRIO via a method in the BOR object WORKITEM =
or
another BOR object, and you use the workflow ID as a key of the =
workitem
(via the standard container _WORKITEM.WORKITEMID of the workflow). All =
the
following tasks will adopt the new priority of the workflow. If you =
just
want to change for one step, you save the value of the standard =
container
_Wf_Priority before changing the priority and you set it back after the
wanted workitem is launched.
 
Thanks=20
 
Pat Nolin=20
 
------------------------------------------------------------------------=
----
Patrice Nolin, M.Sc.A. (courriel : nolin.patrice at hydro.qc.ca
<mailto:nolin.patrice at hydro.qc.ca> )
 
 
        -----Message d'origine-----
        De : Nolin, Patrice=20
        Envoy=E9 : vendredi 19 mars 2004 16:13
        =C0 : 'SAP-WUG at MITVMA.MIT.EDU'
        Objet : Changing priority of workitem dynamicaly
 
        Hi,
 
        I want to change the priority of a workitem base on a container
value. How can I do it ?
 
        The scenario is that we determine the priority we want base on some
values in the container and we want to change the priority of the next =
step
with a method using the FM SAP_WAPI_CHANGE_WORKITEM_PRIO.
 
        I thought about using a fork or through a binding of some sort on
the step ?
 
        Thanks
 
        Patrice Nolin
 


More information about the SAP-WUG mailing list