Show TOC

Use of the NO_OF_RETRIES ParameterLocate this document in the navigation structure

Use

If you want to implement a workflow that allows you to process an IDoc a number of times before an error-handling work item is started, for example, for those errors that are temporary (such as errors caused by an object being locked), ALE provides a means of keeping track of how often the IDoc has been processed. ALE allows customers to specify the number of retries individually.

The object IDOCAPPL's (and hence all child object type's) method InputBackground has an import parameter NO_OF_RETRIES which is set to zero by ALE when an IDoc is first processed. The method processes this parameter as follows:

  • If it is larger than the maximum number of retries set in the inbound process code's input methods, the parameter RESULT in the event inputFinished's container is set to "99999".

  • Otherwise, it is incremented by one and written to the NO_OF_RETRIES parameter in the inputFinished event.

To make use of this feature, you need to define a NO_OF_RETRIES parameter in the container for your workflow. This should be bound to the import and event parameter NO_OF_RETRIES and loop back to the InputBackground step unless the event parameter RESULT = "99999".