<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML DIR=ltr><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></HEAD><BODY><DIV><FONT color=#000000 > <FONT 
face="Courier New" size=2>Hello, <BR><BR>[initial situation] <BR>I'm using a 
programming exit to write an additional user-friendly log. Therefore I have 
written an ABAP-class with the interface IF_SWF_IFS_WORKITEM_EXIT. This class 
has a method (event_raised) where I can implement my coding for the 
user-friendly logging. There I have two parameters: 
<BR>IM_EVENT_NAME&nbsp;&nbsp;&nbsp; Importing&nbsp;&nbsp;&nbsp; 
Type&nbsp;&nbsp;&nbsp; SWW_EVTTYP <BR>IM_WORKITEM_CONTEXT&nbsp;&nbsp;&nbsp; 
Importing&nbsp;&nbsp;&nbsp; Type Ref To&nbsp;&nbsp;&nbsp; 
IF_WAPI_WORKITEM_CONTEXT <BR><BR>Through the parameter IM_WORKITEM_CONTEXT I 
have access to the most of basic data of the workitem.... The second parameter 
describes the moment when the programming exit will be passed through. In my 
case the moment "AFT_EXEC" is important! <BR><BR>[problem] <BR>The method of an 
business object is raising an exception (exit_return 9001 space space space 
space). Now, I want to know whether an exception was raised or not. If so, I 
need the exception parameters to write my log. <BR><BR>I tried already a lot 
including many function modules who are able to read the workitem data (e.g. 
SWW_WI_RETURN_READ, SWL_WI_READ, SWL_WI_HEADER_READ, SWL_WI_RESULTS_READ). At 
the moment after execution I'm not able to get the exception through this 
function modules. After I left debugging mode and the workitem is completed I 
can look up the exception in table swwwiret. But unfortunately that's to late 
<SPAN class=moz-smiley-s3><SPAN>;-) </SPAN></SPAN>. <BR><BR>Does anybody know to 
to get this running? <BR><BR>Greetings <BR>Michel Munzert 
<BR>Developer/Consultant <BR><BR><BR></FONT></FONT></DIV></BODY></HTML>