‎2007 Sep 05 11:35 AM
Hi All,
i have a requirement like the screen is made of Step loops and initially user want the step loops in the disable mode except one field and once he enter the value in that field corresponding row shold become enable, i have tried making with the loop at screen and mdify screen and if i set enable for one row its making the all rows as editable, so, please give me some remedy to avoid this problem ...
thanks,
Mahesh.
‎2007 Sep 05 11:37 AM
‎2007 Sep 05 11:39 AM
‎2007 Sep 05 11:42 AM
Hi mahesh,
Step Loops
Creating a Steploop
Editing a Step Loop
To edit a loop block as a complete unit, click on the loop's border handles. By choosing Edit ® Grouping ® Steploop, you can manipulate the block using functions such as Define, Variable or Fix, or Undefine.
To remove an element from a block, click on the element and choose Delete. If you delete all the elements, the block is deleted as well.
To dissolve a loop block, select it and choose Edit ® Steploop ® Undefine. The individual elements then become normal screen elements again.
To define a steploop as fixed or variable, select a steploop and choose Edit ® Grouping ® Steploop ® Fix or Variable. Recall that a variable loop is adjusted dynamically with the screen size and a fixed loop is not.
When you have completed the definition procedure, see the ABAP Users Guide for information on programming steploops.
STEP LOOP Coding
We use two flavours of LOOP ... ENDLOOP in screen flow logic to program the step loops.We have to program both in PBO and PAI so that transfer of data can take place between screen and abap program.
1) LOOP
MODULE fill_data
ENDLOOP.
here in PBO a module should be called that will transfer the data to the
screen fields. In PAI the module call is not required only the empty LOOP..ENDLOOP will do or we can call a module to write the data to an internal table.In this method there is no automatic scrolling we have to program it in ABAP.
2) LOOP AT int_table [CURSOR line_number][FROM n1 TO n2]
ENDLOOP.
Here in PBO a module call is not required to fill the step loop screen fields as the data is copied to the workare wa and from there to screen fields in step loop automatically. INTO wa is not required if we use the int_table declared with a header line.
In PAI the addition AT int_table is also required for automatic scrolling.
The parameter CURSOR line_number which is of TYPE I is used to specify
the that will be the first to be displayed,it is filled in the ABAP program.
NOTE:
1) It is preferable to use TABLE CONTROL instead of STEP LOOPS.
2) It is preferable to use LOOP AT int_table instead of plain LOOP..ENDLOOP.
Regards,
kumar.