Show TOC

Error HandlingLocate this document in the navigation structure

Use
Activities

ALE error handling makes use of the SAP Business Workflow technology in the SAP system. SAP Business Workflow organizes and manages a work process whereby tasks are assigned to individual agents. After completing a task, agents are informed of subsequent work items in their inbox.

SAP Business Workflow is object oriented; ALE error handling objects are IDocs and their methods and events.

Note

If an error occurs, only the first message from the return parameter is entered into the text in the corresponding work item.

Figure 1: Process Flow for ALE Error Handling
Example
Example

The following example outlines the steps taken in ALE error handling when an error occurs in inbound processing for a material master IDoc:

  1. The inbound function module passes message to the ALE layer that an error has occurred.

  2. ALE triggers the object event inputErrorOccurred with type IDCOMATMAS.

  3. This event is linked to standard task number 00007947, long name MATMAS_inbound error.

  4. A work item appears in the user's inbox; the work item's short text is the first fifty characters of the error message contained in the IDoc's status record.

  5. When the user processes the work item, the IDOCMATMAS method IDOC.InputForeground is executed.

    The IDoc status record is displayed and the user can display the error message's long text. If the user was able to remedy the error, the IDoc can be submitted for updating. If the error cannot be remedied, the user can flag the IDoc for deletion.

  6. If the IDoc was either successfully submitted or flagged for deletion, the IDOCMATMAS event inputFinished is triggered indicating that the task has been carried out.