You can use SAP Event Management to manage the statuses of your business processes. To communicate with EM you need to send it events. There are several ways of sending events to EM including via IDoc, BAPI call, RFC call and XML call.
The syntax for sending an event using the BAPI /SAPTRX/BAPI_EH_ADDEVENTMSG_02 is described in detail below. In addition to showing you how to call the BAPI it also shows how to call the BAPI using a a qRFC leveraging a specific outbound queue name.