<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Step loops in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766812#M644479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Step Loops&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;When you execute a screen with several loop blocks, the online processor runs through this "screen table" line by line.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Creating a Steploop&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;Open a screen in the layout editor. &lt;BR /&gt;In one or more lines, create the elements you want to repeat. &lt;BR /&gt;Select all the elements on the desired line(s) as a group. &lt;BR /&gt;Choose Edit ® Grouping ® Steploop ® Define. &lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Editing a Step Loop&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;To dissolve a loop block, select it and choose Edit ® Steploop ® Undefine. The individual elements then become normal screen elements again. &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;When you have completed the definition procedure, see the  ABAP User&amp;#146;s Guide for information on programming steploops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEP LOOP Coding&lt;/P&gt;&lt;P&gt; 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. &lt;/P&gt;&lt;P&gt;1) LOOP&lt;/P&gt;&lt;P&gt;   MODULE fill_data&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;      here in PBO a module should be called that will transfer the data to the&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;2) LOOP AT int_table &lt;A href="INTO wa "&gt;&lt;/A&gt;[CURSOR line_number][FROM n1 TO n2]&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;   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. &lt;/P&gt;&lt;P&gt;  In PAI the addition AT int_table is also required for automatic scrolling.&lt;/P&gt;&lt;P&gt;The parameter CURSOR line_number which is of TYPE I is used to specify&lt;/P&gt;&lt;P&gt;the that will be the first to be displayed,it is filled in the ABAP program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;NOTE:&lt;/P&gt;&lt;P&gt;1) It is preferable to use TABLE CONTROL instead of STEP LOOPS.&lt;/P&gt;&lt;P&gt;2) It is preferable to use LOOP AT int_table instead of plain LOOP..ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 10:42:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T10:42:20Z</dc:date>
    <item>
      <title>Step loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766809#M644476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Mahesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766809#M644476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Step loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766810#M644477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE &amp;lt;b&amp;gt;MODIF&amp;lt;/b&amp;gt; FOR THE GROUP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766810#M644477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Step loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766811#M644478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dint get u wt ur saying&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766811#M644478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Step loops</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766812#M644479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Step Loops&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;When you execute a screen with several loop blocks, the online processor runs through this "screen table" line by line.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Creating a Steploop&lt;/P&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;Open a screen in the layout editor. &lt;BR /&gt;In one or more lines, create the elements you want to repeat. &lt;BR /&gt;Select all the elements on the desired line(s) as a group. &lt;BR /&gt;Choose Edit ® Grouping ® Steploop ® Define. &lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;Editing a Step Loop&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;To dissolve a loop block, select it and choose Edit ® Steploop ® Undefine. The individual elements then become normal screen elements again. &lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;When you have completed the definition procedure, see the  ABAP User&amp;#146;s Guide for information on programming steploops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STEP LOOP Coding&lt;/P&gt;&lt;P&gt; 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. &lt;/P&gt;&lt;P&gt;1) LOOP&lt;/P&gt;&lt;P&gt;   MODULE fill_data&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;      here in PBO a module should be called that will transfer the data to the&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;2) LOOP AT int_table &lt;A href="INTO wa "&gt;&lt;/A&gt;[CURSOR line_number][FROM n1 TO n2]&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;   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. &lt;/P&gt;&lt;P&gt;  In PAI the addition AT int_table is also required for automatic scrolling.&lt;/P&gt;&lt;P&gt;The parameter CURSOR line_number which is of TYPE I is used to specify&lt;/P&gt;&lt;P&gt;the that will be the first to be displayed,it is filled in the ABAP program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;NOTE:&lt;/P&gt;&lt;P&gt;1) It is preferable to use TABLE CONTROL instead of STEP LOOPS.&lt;/P&gt;&lt;P&gt;2) It is preferable to use LOOP AT int_table instead of plain LOOP..ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 10:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/2766812#M644479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T10:42:20Z</dc:date>
    </item>
  </channel>
</rss>

