Error handling in workflow

Mark Johnston mark_johnston at ie.ibm.com
Tue Apr 1 08:34:19 EST 2003


Hi,
 
BACKGROUND
My workflow is largely based on template WS2000040 - Approve Trip.
 
The standard is a two step approval process with 2 decision tasks sent out
1) Check Trip Facts
2) Approve Trip.
 
I've copied and changed the flow to have a slightly different approval
process again 2 decision tasks are sent out.
1) Approve Trip
2) Settle Trip (Custom code)
 
The workflow is based on business object BUS2089.
I've created a subtype of BUS2089 and named it ZBUS2089, and created a
method ZEmployeeTrip.ZTripSettle which calls a function module (FM) to
carry
out the settle process (submit's a SAP standard program RPTTEC00 (TCODE
PREC)).
 
 
PROBLEM
My problem relates to error handling in the workflow in a real time
environment.
 
When the user chooses to approve a trip, amongst others, locking errors
could occur.
When a user chooses to settle a trip, amongst others, the trip may not be
approved.
 
When a user makes a decision - how can the application errors be presented
to them
and based on the error change the workitem status i.e. error/inprocess.
 
The approval of a trip is done by using a task that calls a method that has
exceptions defined.
I have done the same for the settlement process.
Neither task is a background task. (Approval task was but I changed it).
 
My exceptions are being picked up however any exceptions that arise are not
presented to the user
but are only available by running SWI2_DIAG.
 
I would greatly appreciate any advice you can offer.
 
Thank's for your time.
 
Kind regards,
Mark
 
Mark Johnston
 
IBM Business Consulting Services
Oldbrook House, 24/32 Pembroke Road, Dublin 4.
Phone:   +353-(0)1-815 4907
Mobile:  +353-(0)86-814 4258
fax:          +353-(0)1-667 1848
e-mail:  mark_johnston at ie.ibm.com
 


More information about the SAP-WUG mailing list