You can test exception handling by using the test tool to deliberately cause an error, for example sending an IDoc with an empty mandatory field.
Prerequisites
You must have completed the required steps in
Defining and Using a Basic Type . You must ensure that your coding calls exception handling (or triggers exception handling in ALE inbound processing via the workflow return parameters) and sets the status value 51.Procedure

In the example, you should delete the value from the segment field E1HEAD-VKORG. As a result, an error occurs during inbound processing in the form routine CALL_VA01_IDOC_ORDERS (no sales organization entered). As a possible and selected agent, a work item is sent to your integrated inbox.