2007 Apr 25 11:49 AM
Hi,
What is step-loop? Can anybody pls explain all the steps?
Regards,
Kishore
2007 Apr 25 11:53 AM
Hi,
A step loop is a repeated series of field-blocks in a screen. Each block can contain one or more fields, and can extend over more than one line on the screen.
Step loops as structures in a screen do not have individual names. The screen can contain more than one step-loop, but if so, you must program the LOOP...ENDLOOPs in the flow logic accordingly. The ordering of the LOOP...ENDLOOPs must exactly parallel the order of the step loops in the screen. The ordering tells the system which loop
processing to apply to which loop. Step loops in a screen are ordered primarily by screen row, and secondarily by screen column.
Transaction TZ61 (development class SDWA) implements a step loop version of the table you saw in transaction TZ60.
Static and Dynamic Step Loops
Step loops fall into two classes: static and dynamic. Static step loops have a fixed size that cannot be changed at runtime. Dynamic step loops are variable in size. If the user resizes the window, the system automatically increases or decreases the number of step loop blocks displayed. In any given screen, you can define any number of static step
loops, but only a single dynamic one.
You specify the class for a step loop in the Screen Painter. Each loop in a screen has the
attributes Looptype (fixed=static, variable=dynamic) and Loopcount. If a loop is fixed,
the Loopcount tells the number of loop-blocks displayed for the loop. This number can
never change.
Programming with static and dynamic step loops is essentially the same. You can use
both the LOOP and LOOP AT statements for both types.
Looping in a Step Loop
When you use LOOP AT <internal-table> with a step loop, the system automatically
displays the step loop with vertical scroll bars. The scroll bars, and the updated (scrolled)
table display, are managed by the system.
Use the following additional parameters if desired:
 FROM <line1> and TO <line2>
 CURSOR <scroll-var>
Best Regards,
Bansidhar
Hi,
What is step-loop? Can anybody pls explain all the steps?
Regards,
Kishore
2007 Apr 25 11:50 AM
Hi
STEP LOOPS
Step Loops are type of screen table . Step loops are repeated blocks of field in a screen. Each block contains one or more fields and these blocks are repeated. Step loops arent like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:
Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.
Passing data to the step loop is exactly similar to the passing of data to table controls.
In step loop, you dont need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.
Types of Step Loops
Static Static Step Loop (SSL) have fixed size that cannot be changed during the runtime. If user resizes the window, the size of the static step loop is not changed.
Dynamic Dynamic Step Loop (DSL) is variable in size. When the user resizes the window, the system increases or decreases the number of the step loop blocks.
You can have only one dynamic step loop and can have as many static loops in your transaction.
Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesnt make any difference whether it is static or dynamic step loop. Only attribute, which you fix during designing of the step loop, is type attribute for step loop F for fixed i.e static and V for variable i.e. dynamic.
Writing code for Step Loop in the flow logic.
PBO.
Loop at itab cursor cl.
Module set.
Endloop.
PAI.
Loop at itab.
Endloop.
Empty loop is must for both table control and step loop
LOOP AT statement for step loops and Table controls is similar. Loop At statement transfers the data to screen table. You need to have the Module to assign the values for the screen table.
In module pool program you need to define the cursor.
Date: CL TYPE i.
Cursor parameter tells which line of step loop display should start.
Module Set in module pool program assigns the values to step loop fields, which is similar to table controls.
Refer to this program DEMO_DYNPRO_STEP_LOOP
reward points
regards,
Anji
2007 Apr 25 11:51 AM
hi,
Check the program <b>DEMO_DYNPRO_STEP_LOOP</b>
Step loops are used in older versions. They are replaced by table control.
Even page down, page up functionalities also should be maintained by the developer.
Regards
Sailaja.
2007 Apr 25 11:52 AM
Hi,
STEP LOOPS
Step Loops are type of screen table . Step loops are repeated blocks of field in a screen. Each block contains one or more fields and these blocks are repeated. Step loops arent like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:
Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.
Passing data to the step loop is exactly similar to the passing of data to table controls.
In step loop, you dont need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.
Types of Step Loops
Static Static Step Loop (SSL) have fixed size that cannot be changed during the runtime. If user resizes the window, the size of the static step loop is not changed.
Dynamic Dynamic Step Loop (DSL) is variable in size. When the user resizes the window, the system increases or decreases the number of the step loop blocks.
You can have only one dynamic step loop and can have as many static loops in your transaction.
Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesnt make any difference whether it is static or dynamic step loop. Only attribute, which you fix during designing of the step loop, is type attribute for step loop F for fixed i.e static and V for variable i.e. dynamic.
Writing code for Step Loop in the flow logic.
PBO.
Loop at itab cursor cl.
Module set.
Endloop.
PAI.
Loop at itab.
Endloop.
Empty loop is must for both table control and step loop
LOOP AT statement for step loops and Table controls is similar. Loop At statement transfers the data to screen table. You need to have the Module to assign the values for the screen table.
In module pool program you need to define the cursor.
Date: CL TYPE i.
Cursor parameter tells which line of step loop display should start.
Module Set in module pool program assigns the values to step loop fields, which is similar to table controls.
Refer to this program DEMO_DYNPRO_STEP_LOOP
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm
http://www.sapfans.com/sapfans/repos/comelite.htm
Regards,
Priyanka.
2007 Apr 25 11:52 AM
Hi Kishore,
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.
<b>Reward points if it solves ur query</b>
Thanks
Chinmay
2007 Apr 25 11:53 AM
Hi,
A step loop is a repeated series of field-blocks in a screen. Each block can contain one or more fields, and can extend over more than one line on the screen.
Step loops as structures in a screen do not have individual names. The screen can contain more than one step-loop, but if so, you must program the LOOP...ENDLOOPs in the flow logic accordingly. The ordering of the LOOP...ENDLOOPs must exactly parallel the order of the step loops in the screen. The ordering tells the system which loop
processing to apply to which loop. Step loops in a screen are ordered primarily by screen row, and secondarily by screen column.
Transaction TZ61 (development class SDWA) implements a step loop version of the table you saw in transaction TZ60.
Static and Dynamic Step Loops
Step loops fall into two classes: static and dynamic. Static step loops have a fixed size that cannot be changed at runtime. Dynamic step loops are variable in size. If the user resizes the window, the system automatically increases or decreases the number of step loop blocks displayed. In any given screen, you can define any number of static step
loops, but only a single dynamic one.
You specify the class for a step loop in the Screen Painter. Each loop in a screen has the
attributes Looptype (fixed=static, variable=dynamic) and Loopcount. If a loop is fixed,
the Loopcount tells the number of loop-blocks displayed for the loop. This number can
never change.
Programming with static and dynamic step loops is essentially the same. You can use
both the LOOP and LOOP AT statements for both types.
Looping in a Step Loop
When you use LOOP AT <internal-table> with a step loop, the system automatically
displays the step loop with vertical scroll bars. The scroll bars, and the updated (scrolled)
table display, are managed by the system.
Use the following additional parameters if desired:
 FROM <line1> and TO <line2>
 CURSOR <scroll-var>
Best Regards,
Bansidhar
2007 Apr 25 12:07 PM
hi Kishore ,
Here are the information for creating a Step-loops :
The procedure for creating step loops differs depending on
whether you are using the alphanumeric or the graphical Screen Painter.
Creating a Step Loop
Create the elements you want in the loop.
The elements can appear on one line or on several lines. You can separate the elements by blank lines.
Place your cursor on the element that will make the upper-left corner of the loop.
Choose Loop
The Screen Painter changes to the Change Loop Definition screen. You can create several separate loop blocks on one screen, but nesting is not allowed.
Place your cursor on the lower right corner of the final element in the loop.
Choose Loop block end.
The system automatically generates a fixed loop block with two repetitions. You can now either edit the step loop further, or choose Back to return to the normal fullscreen editor.
Save your changes.
To edit a step loop, you must be in the Change Loop Definition screen. To edit an existing loop block, place the cursor on the block and choose Loop. The following functions are available for editing a step loop:
function
Explanation
End line of loop
Defines the length of the loop area. The system automatically repeats the block within the defined area.
Variable loop
Defines a variable loop. With a variable loop, the system adjusts the number of repetitions dynamically in the screen program to suit the size of the current window. If the screen includes several loop blocks, you can define only one of these as variable.
The maximum number of lines is 200. 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.
With a fixed loop, the lower limit of the loop area always remains as originally defined.
Dissolve
Dissolves the loop by placing its fields in the screen.
Move loop
Moves the loop to a new location.
You can make changes only in the definition block. Changes in the definition block automatically affect the repetition blocks. In the actual definition block, you can change the attributes of elements as usual. You can also define new elements or delete elements. However, you cannot insert or delete lines within the loop block.
If you choose either Edit ® Select or Edit ® Temporary storage ® Copy to temp.storage, you can work in the same way as for fields not in a loop. However, you can select only elements in the loop definition block. The selected block cannot exceed the loop limits.
You can copy elements from outside to the loop block or vice versa. In both cases, the system adapts the element attributes accordingly. When you copy to a loop block, the elements are automatically added to the corresponding repetition elements. When you copy from a loop block, the same repetition elements are deleted.
Hope this info works for you !
Reward if helpful !
Thanks
Ranjita
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |