Problem in Agent determination

Dart, Jocelyn jocelyn.dart at sap.com
Sun Mar 20 18:49:53 EST 2005


Cristian, Possibly the data you are entering in the gui transaction is saved in the update task, but your event is raised in the dialog process?
In which case make sure your event is also raised in the update task (you may need to use SWE_EVENT_CREATE_IN_UPD_TASK).
 
Jocelyn


________________________________

	From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Gonzalez Cartagena, Cristian A.
	Sent: Friday,18 March 2005 3:27 AM
	To: 'SAP Workflow Users' Group'
	Subject: RE: Problem in Agent determination
	
	
	Jocelyn,
	 
	The event is raising at the end of a gui transaction in 4.6C, where users input the data to be approved by a supervisor (an agent determined in the custom FM from the data he/she has entered). So it´s a common scenario.
	 
	I'm adding an empty background method before the first step, following your suggestion from a similar situation form the archives. Don´t know at this moment if this helps, because the errors occur at non predictable times.
	 
	Another idea? thanks in advance,
	 
	 

	Cristian
	
	 -----Mensaje original-----
	De: jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com> 
	Enviado el: Miércoles, Marzo 16, 2005 11:17 p.m.
	Para: SAP Workflow Users' Group
	Asunto: RE: Problem in Agent determination
	
	

		Sounds like a timing/perfomance problem - maybe the data you use to find your agent doesn't exist/isn't updated at the workflow starts? Wouldn't happen to be a PCR or ISR scenario by any chance?  Or are you raising events via a batch process?
		 
		You could try slowing it down by sending your event linkage to the event queue and using the event queue job to deliver the events.  See trans SWEQADM. 
		 
		Jocelyn 


________________________________

			From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Gonzalez Cartagena, Cristian A.
			Sent: Thursday,17 March 2005 4:02 AM
			To: 'sap-wug at mit.edu'
			Subject: Problem in Agent determination
			
			

			 Hi All, 

			We have a simple rule that determines the agent from a Z table, using PFAC. 
			In QA environment the workflow was tested OK, but in PRD client we got a problem "Workflow nnnnn step 61: Error or exception resolving role 'AC90100004' ".

			The error occurs in the first task of the workflow. 

			If workflow is  restarted from transaction SWPR, the user task is routed to the right agent. 

			The problem is for the same user starting the same workflow in different times along one day: some workitems are OK, but other workitems are wrong (appear in SWI2_DIAG with "agent" mark).

			Any help is highly appreciated. 

			Cristian 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20050321/f87eac60/attachment.htm


More information about the SAP-WUG mailing list