
Objects, Events and Tasks to be Created
How to implement error handling for a message type, (XAMPLE):
In each case it is easier to copy an existing object type or standard task.
To provide a fully ALE-compatible interface, you will also need to:
The example of the material master record IDoc MATMAS explains how the above objects are created.
The attributes of object type IDOCMATMAS are used to define the standard task so that the error message and the material number appear in the work item text.
The methods and events used are described above.
Object type IDOCMATMAS:
Attributes, methods and events relevant to the inbound function module.
|
Name |
From IDOCAPPL |
Description | |
Attribute |
ShortMessage |
Yes |
First 50 characters of IDoc’s status message |
|
ApplicationObjectID |
Yes |
ID of ALE link object in IDoc | |
Method |
InputForeground |
Yes |
Processes IDoc starting with status display |
|
InputBackground |
Yes |
Processes IDoc without any dialog |
Event |
inputErrorOccurred |
Yes |
Triggered when direct application handover failed; not triggered by the methods InputForeground and InputBackground |
|
inputFinished |
Yes |
Triggered when IDoc successfully processed, or user flags IDoc for deletion |

An example of an ALE error handling.
The arrows show the three stages:


Before continuing, have a look at the object type IDOCMATMAS in the Business Object Builder and at the standard task 7946. Both the Business Object Repository and standard tasks are reached via the menu path:
Tools
® Business Workflow ® Development ® and the menu Definition Tools ® . ® Business Object Builder and
® Tasks/Task Groups
For further information see the application help.