Entering content frameObject documentation Objects, Events and Tasks to be Created Locate the document in its SAP Library structure

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

Example

An example of an ALE error handling.

The arrows show the three stages:

  1. The event inputErrorOccurred causes a work item to be created.
  2. When the user executes the work item, the method InputForeground is invoked.
  3. If the IDoc has been successfully processed, or flagged for deletion, the event inputFinished is triggered, which terminates the work item.

This graphic is explained in the accompanying text

Note

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.

 

 

Leaving content frame