New Agents are not receiving existing WorkItems

Dart, Jocelyn jocelyn.dart at sap.com
Wed Apr 23 23:30:56 EDT 2003


Hi Paul,
WAS = Web Application Server - i.e. an SAP system with a Basis 6.10 or above.
Yes R3E is based on 6.20, so it is a WAS system.
 
There is no transaction SAP_WAPI - the workflow apis are a series of function modules prefixed with SAP_WAPI
There are many different WAPIs - in R3E there is a WAPI called SAP_WAPI_ADM_WORKITEM_REDORULE that you could
use in a custom program to update all affected WAPIs for instance.
 
In R3E if you go to the workflow builder and go to the basic data (I think its the version dependent section
from memory) you will find an option to specify events for a workflow that allows you to select the event
response "Reevaluate rules on active work items".  If you create an event against an object for this purpose e.g. AGENTS_UPDATED you can then raise this event and it will re-evaluate the rules of active work items.
 
Think about which object you are going to add the event to.  If you just want to update a particular workflow
instance, use your normal primary object type, e.g. you might use the ABSENCE object type if you were doing
a leave requests, the BUS2009 object type if you were doing requisition release strategy or similar.  If you
want to update many workflows at once, consider using a more central object type something like SYSTEM or you could
even used an object type based on your work center instead.
 
Also very handy for deadline escalation ... as I will be presenting at ASUG.
 
Regards,
        Jocelyn Dart
Consultant (SRM, EBP, Workflow)
and co-author of the book
"Practical Workflow for SAP"
SAP Australia
email: jocelyn.dart at sap.com
phone: +61 412 390 267
fax:   +61 2 9935 4880
 
 
 
 
-----Original Message-----
From: Paul Niezabytowski [mailto:paul.niezabytowski at kodak.com]
Sent: Thursday, 24 April 2003 4:57 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: New Agents are not receiving existing WorkItems
 
 
Jocelyn,
 
What is a WAS system?  Is it in R3E?  I tried to use transaction SAP_WAPI
in our R3E *test* system and I am getting a message saying that
transaction doesn't exist.  I found transaction SWI1_RULE that is supposed
to execute rules for work items.  Is this the transaction you were
thinking about?
 
Also, I am not sure what you mean by "Event at workflow level to "Re-evaluate rules on active work items"".  Do you mean to raise the workflow triggering event again and create a
new workflow?
 
Thanks.
 
Paul
 
 
 
 
 
"Dart, Jocelyn" <jocelyn.dart at sap.com>
Sent by: SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
04/22/03 10:54 PM
Please respond to "SAP Workflow Users' Group"
 
 
        To:     SAP-WUG at MITVMA.MIT.EDU
        cc:
        Subject:        Re: New Agents are not receiving existing WorkItems
 
 
Hi Swami,
You don't mention what release you are using - it's very important in this
case as this area has undergone a lot of change recently.
 
Agents are determined at the time the work item is created. If you add
new agents later you should at least try a buffer refresh (transaction
SWU_OBUF)
to see if that resolves the problem.  To a certain extent it depends how
the
agents are asssigned as to whether this is enough to update the agents. If
your
rule returns the agents as a list of user ids then this won't be enough as
those
individual users are now assigned to the step.
 
If you are in a WAS system (6.10+) there are a number of easy ways of
tackling
this.  If you are in 4.6C or below its a little bit more difficult.
 
Some easy WAS ways:
* Event at workflow level to "Re-evaluate rules on active work items"
* SAP_WAPI to redo the rule
 
Some of the others have already suggested a few ways for 4.6C such as
substitutes
and sw* functions.
Another option is the "administrator forward" function in transaction
SWIA.
 
Regards,
        Jocelyn Dart
Consultant (SRM, EBP, Workflow)
and co-author of the book
"Practical Workflow for SAP"
SAP Australia
email: jocelyn.dart at sap.com
phone: +61 412 390 267
fax:   +61 2 9935 4880
 


More information about the SAP-WUG mailing list