Entering content frameFunction documentation Maintenance of WHILE Loops Locate the document in its SAP Library structure

Use

You use the WHILE loop in a workflow definition if:

In the workflow definition a WHILE loop is represented with the symbol This graphic is explained in the accompanying text.

Features

At runtime, the workflow system compares the value of an expression of the workflow container with the defined comparison values. If the system cannot establish any agreement, the workflow is continued in the Other values branch.

If the value of the expression of the workflow container agrees with one of the comparison values, the steps modeled in the relevant branch are processed. Then the return jump occurs and the system runs the loop check again.

Activities

Assign a step name and define the basis of comparison as an expression of the workflow container. Enter a name for each comparison value. These names identify the various processing branches in the workflow definition.

The branch Other values is created automatically by the system even if you do not assign a name. This ensures that the workflow definition is executable.

Note

Make sure that in each branch of the loop you implement steps that change the basis of comparison in an appropriate way.

Leaving content frame