<?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 step loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812071#M657397</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;what is step loop? how to create ? give me sample program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 10:11:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T10:11:23Z</dc:date>
    <item>
      <title>step loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812071#M657397</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;what is step loop? how to create ? give me sample program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812071#M657397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T10:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: step loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812072#M657398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;STEP LOOPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 aren&amp;#146;t like actual table. You can scroll vertically but not horizontally. Three steps are associated with creation of step loops:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Creation of step loops on screen, which includes declaring fields on the screen and then defining the step, loops for these fields.&lt;/P&gt;&lt;P&gt;&amp;#149; Passing data to the step loop is exactly similar to the passing of data to table controls.&lt;/P&gt;&lt;P&gt;&amp;#149; In step loop, you don&amp;#146;t need to define the step loop as such in the module pool program but the cursor needs to be defined in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types of Step Loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Static &amp;#150; 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.&lt;/P&gt;&lt;P&gt;&amp;#149; Dynamic &amp;#150; 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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have only one dynamic step loop and can have as many static loops in your transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programming with the Static and dynamic step loop is exactly same. For the system or for the user it doesn&amp;#146;t 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing code for Step Loop in the flow logic. &lt;/P&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;Loop at itab cursor cl.&lt;/P&gt;&lt;P&gt;Module set.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;PAI. &lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Empty loop is must for both table control and step loop&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In module pool program you need to define the cursor.&lt;/P&gt;&lt;P&gt;Date: CL TYPE i.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Cursor parameter tells which line of step loop display should start.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;#147;Module Set&amp;#148; in module pool program assigns the values to step loop fields, which is similar to table controls. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this program DEMO_DYNPRO_STEP_LOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812072#M657398</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-09-26T10:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: step loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812073#M657399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Working with Step Loops&lt;/P&gt; &lt;BR /&gt;Step loops are considerably less flexible than their replacement, table controls.&lt;BR /&gt;&lt;BR /&gt;Step Loops&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;BR /&gt;&lt;BR /&gt;Do not use the steploop method to format lists. Use a report program instead.&lt;BR /&gt;The step loop procedures in the alphanumeric display are different. For further information, see Creating and Editing Steploops in Alphanumeric Mode.&lt;BR /&gt;Creating a Steploop&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;Editing a Step Loop&lt;BR /&gt;&lt;BR /&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;BR /&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;BR /&gt;To dissolve a loop block, select it and choose Edit ® Steploop ® Undefine. The individual elements then become normal screen elements again. &lt;BR /&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;BR /&gt;&lt;B&gt;&lt;P&gt;rewards point&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:18:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812073#M657399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T10:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: step loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812074#M657400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or folow like this &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;B&gt;&lt;P&gt;&lt;BR /&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;BR /&gt;&lt;BR /&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;BR /&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;BR /&gt;To dissolve a loop block, select it and choose Edit ® Steploop ® Undefine. The individual elements then become normal screen elements again. &lt;BR /&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;BR /&gt;When you have completed the definition procedure, see the ABAP User&amp;#146;s Guide for information on programming steploops.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;STEP LOOP Coding&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&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;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;NOTE:&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 10:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loop/m-p/2812074#M657400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T10:20:46Z</dc:date>
    </item>
  </channel>
</rss>

