Entering content frameOverview documentation Working with Step Loops Locate the document in its SAP Library structure

Note

Step loops are considerably less flexible than their replacement, table controls.

Step Loops

You can group screen elements together into a step loop. A step loop is a repeated series of loop blocks. A loop block consists of one or more loop lines of graphical screen elements. You can define a loop block as fixed or variable.

In a fixed loop, the lower limit of the loop area always remains as originally defined. For a variable loop, the number of repetitions is adjusted dynamically in the screen program to suit the size of the current window. In order to be able to react to the variable loop size, the system always places the current number of loop blocks in the system field SY-LOOPC. If the screen includes several loop blocks, you can define only one of these as variable.

When you execute a screen with several loop blocks, the online processor runs through this "screen table" line by line.

Note

Creating a Steploop

  1. Open a screen in the layout editor.
  2. In one or more lines, create the elements you want to repeat.
  3. Select all the elements on the desired line(s) as a group.
  4. Choose Edit ® Grouping ® Steploop ® Define.

Your element lines now make up a single steploop block. The block includes the original elements with their attributes and a predefined number of repetition blocks. Each repetition contains a copy of the first block without attributes. The repetition blocks are consecutively numbered, so that you can establish a reference to a particular line.

Editing a Step Loop

When you have completed the definition procedure, see the Structure link ABAP User’s Guide for information on programming steploops.

 

 

 

Leaving content frame