
Defining Rules and Actions for Error Handling
Use
In the
Integration Engine, you can specify rules for error handling in inbound messages that trigger particular actions. Rules and actions each refer to attributes of the message header.For each conditioned action, you can define one or more conditions that you then link conjunctively (using a logical AND relation). You can assign more than one action to a rule.

Only create a limited number of conditioned actions to maintain a clear overview of their dependencies and the network of their actions. In production operation, do not create any conditioned actions, otherwise each inbound message is checked by the system to see whether it fits any of the conditions.
Prerequisites
In the menu Integration Engine, you chose Administration
® Settings for Error Handling and the system now displays a screen of the same name.Creating Conditioned Actions
The procedure for creating a conditioned action is divided into the creation of one or more conditions and one or more actions. To create a conditioned action, proceed as follows:
The system displays a dialog box with two tab pages. Choose the tab page Rules. The first line in the table displayed is ready for you to enter data.
The rule you want to create is activated automatically (
). The user and the validity period of the rule (date and time) are predefined. If the validity period expires, the rule is automatically deactivated (
).
The first line in the table displayed is ready for you to enter data.
Create a new action. The user and the date of the last change are predefined.Allows you to log the individual processing steps of a message in the trace segment of this message. Display the trace information for messages that were persisted in the database using

The action Tracelevel overrides settings for trace that you made for the
pipeline.Allows you to also write the trace information for the message to a file. In the SAP directory
Allows you to control whether a message is logged in the database following certain processing steps. You can then display the log using monitoring.

Only set the action Logging if you have not already activated or deactivated
Allows you to also write the message log to a file. In the SAP directory
Allows you to activate a breakpoint set in code that then starts the debugger at this location. You must also activate HTTP debugging for messages that enter the Integration Engine through the HTTP inbound interface.

Each action may only occur once for each conditioned action.
The system displays the conditioned action you created in the screen Settings for Error Handling; you can change or delete the condition at this point.
If you have created multiple conditioned actions, the system automatically links them together disjunctively (using a logical OR relation). If several of the conditioned actions apply, the system executes them in the same sequence that they are displayed on the screen Settings for Error Handling. For multiple identical actions, this means that the results of the last executed action take precedence each time.
Deleting Conditioned Actions
To delete a conditioned action, choose Delete in the corresponding block on the screen Settings for Error Handling. The system removes the conditioned action from view.
Changing Conditioned Actions
To change a conditioned action, choose Change in the corresponding block on the screen Settings for Error Handling. The system displays a dialog window with the tab pages Rules and Actions, where you can make changes to the conditioned action.