as mentioned earlier, this is an important feature to diagnose the workflows with error. you can use event trace in workflows to log all information for creating and using events.
event queue
you can make use of event queue to store events temporarily.
general settings → workflow → maintain the event queue settings
 
in an event trace, you maintain the following data −
- event data
- triggering program
- trigger date and time
- triggering object
- triggering object type
- event name
following are the useful transactions under sap workflow in abap development −
- swe4 - switch event trace on/off 
- 
swel - display event trace. you can display event trace based on different selection criteria. you have the following selection criteria under event trace − - event id 
- creator object type 
- creator object instance 
- event 
- program creating event, etc. 
 
 
- rswelogd - delete event trace 
- swec - link change documents to events 
- swed - assign change document objects to object types 
 
to activate/deactivate the event trace, navigate to the following path −
tools → business workflow → development → administration → event manager → event → switch event trace on/off or use t-code: swels/swe4.
 
