‎2006 Aug 02 7:43 AM
Hi Friends,
I wanted to do some modification on step loops. But the option for step loop is disable mode in user dialog.
Anybody will tell me how to enable the option for step loop?
Plz tell me the navigation also.
‎2006 Aug 02 7:45 AM
Hi Amit,
Step loop is obsolete, try using Table controls to achieve the same.
Regards:-
Santosh
Message was edited by: santosh D
‎2006 Aug 02 7:51 AM
Hi Santosh,
I wanted to go through step loops. Actually it needs few modification so I wanted to go through step loops.
Will u tell me how to do it?
‎2006 Aug 02 7:57 AM
STEP LOOPS
http://help.sap.com/saphelp_nw04/helpdata/en/d1/80236c454211d189710000e8322d00/frameset.htm
Step Loops are type of screen table as already mentioned. 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.
‎2006 Aug 02 10:04 AM
Hi Amit,
Put the fields in between CHAIN .. ENDCHAIN.
PSEUDO Code.
PBO
LOOP AT ITAB INTO WA_ITAB CURSOR W_CURSOR.
Module assign.
ENDLOOP.
PAI.
LOOP AT WA_WSP_HDR-EQUI .
CHAIN.
FIELD: TABLE-FIELD1,(STEP-LOOP FIELDS)
TABLE-FIELD2.
MODULE VALIDATE_FIELDS .
ENDCHAIN.
MODULE UPDATE_ITAB.
ENDLOOP.
**
Module ASSIGN.
MOVE-CORRESPONDING wa_itab TO table.(STEP-LOOP table)
CLEAR wa_itab.
END Module.
Regards,
Raghav