Hi Jay,
Please go through the below link
System Process Code - IDoc Interface/ALE - SAP Library
Exception Handling: Procedure - IDoc Interface/ALE - SAP Library
Check if the above mentioned system process codes are configured in WE46 in your system. With this, whenever ANY Outbound IDOC is failed, workitem will be sent to the agents.
The agents will be determined based on the Rule attached to the task. For e.g. task TS00008070 will be triggered whenever an Outbound IDOC is created with Syntax error(status 26). The workitem will be sent to the user based on the rule 30000013 (Default Rule configured in the task).
If you want the workitem to the specific user, copy the standard task and configure the custom rule.
Thanks,
Karthikeyan