Start of Content Area

Function documentation Exceptions Tab Page  Locate the document in its SAP Library structure

Use

You can define exceptions and corresponding exception handlers to determine how Workflow reacts to particular error situations. If you define an exception in a block, the exception is valid for this block and all embedded blocks. However, if you want an exception to apply to the whole Workflow, define it in the version-specific basic data for the Workflow (see also: Version-Specific Basic Data of a Workflow).

Exception handler

You define an exception handler in the block. If an exception is triggered at runtime, processing within the block is terminated and is continued in the exception handler branch. Once the exception handler has been processed, the block is completed and processing continues in after the block. Work items within a block that have not been completed are given the status Logically Deleted. If no exception handler has been defined for a particular block, the system searches for an exception handler in the next subordinate block. If no exception handler is found, the Workflow is given the status ERROR.

Activities

Defining or Specifying Exceptions

In the table on the Exceptions tab page you can specify an exception that you have defined in the version-specific basic data of the Workflow or in a subordinate block. You can also specify a new exception by entering its name in the table.

Defining Exception Handlers

Once you have specified an exception, a branch with the name of the exception as its label is entered in the Workflow definition. You can now insert the required steps in this branch. To activate the exception handler, select the Exception tab page and click the icon in the left table column so that it turns green, or select Activate or Deactivate Exception (This graphic is explained in the accompanying text).

Removing an Exception Handler

To remove the exception handler and all steps from the Workflow definition, select the Exception tab page and click the icon in the left table column so that it turns gray, or select Activate or Deactivate Exception (This graphic is explained in the accompanying text).

Deleting or Renaming an Exception

You can delete or rename an exception provided that no exception handlers are assigned to it in any super ordinate blocks.

Raising Exceptions

To raise an exception, insert a step of type process control at the required position in the Workflow.

 

 

 

 

 

End of Content Area