Hi Nitesh,
As Daniel mentioned, you have to interface correctly I_EAI in structure /SAPTRX/EM_ACTIVITY_INTERFACE.
Whether you have written a code in this model.
EH_MODEL
EVENT_MSG
RULE_ID
TASK
EXP_EVENT
SIMULATE_MODE
EH_ACTIVITY
EVENT_MSG_EXT
In my opinion, your parameter or sequence code interface or field length might be missing to interface correctly in FM. Also ensure that you have captured the exception like below.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_EAI) TYPE /SAPTRX/EM_ACTIVITY_INTERFACE
*" EXPORTING
*" REFERENCE(E_RETURN_CODE) LIKE SY-SUBRC
*" EXCEPTIONS
*" COMMUNICATION_FAILURE
*" SYSTEM_FAILURE
Check and let me know.
Regards
GGOPII