Hi Ralph,
Sorry for the delay in response . What i was referring to you is in your approval step insert a Z Class at program exit. This class much be created with interface IF_SWF_IFS_WORKITEM_EXIT
this interface will have method IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED in this method you will have importing parameter IM_WORKITEM_CONTEXT this contains the workitem id ( This workitem ID is the id of the approval task ) Hope this helps.
Regards,
Krishna