<?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/1975508#M399720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is from some material which I have with me, reward points if found helpful&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2007 10:46:40 GMT</pubDate>
    <dc:creator>rahulkavuri</dc:creator>
    <dc:date>2007-02-23T10:46:40Z</dc:date>
    <item>
      <title>Step Loops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975507#M399719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have step loop with Check Box and Pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to work with step loops...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to capture which row is been clicked by the user...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 10:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975507#M399719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T10:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Step Loops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975508#M399720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is from some material which I have with me, reward points if found helpful&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 10:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975508#M399720</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-02-23T10:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Step Loops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975509#M399721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pbo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_table CURSOR l_step_loop_pos.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_table.&lt;/P&gt;&lt;P&gt;    MODULE process_list.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module process_list should be uswed to modify the table which you are looping through:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY it_table INDEX l_step_loop_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should set the field associated with your checkbox to 'X' if it has been selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 12:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975509#M399721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T12:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Step Loops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975510#M399722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me example code... for the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I am in urgent requrement.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 12:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975510#M399722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T12:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Step Loops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975511#M399723</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;check the fol links,&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801c13454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801c13454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;how to create step loops&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/80236c454211d189710000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/80236c454211d189710000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Prakhar Saxena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 12:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975511#M399723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T12:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Step Loops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975512#M399724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The step loop is set up for table it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_lines          TYPE i,&lt;/P&gt;&lt;P&gt;      l_step_loop_pos  TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE status.&lt;/P&gt;&lt;P&gt;  MODULE ini_step_loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_tab  CURSOR l_step_loop_pos.&lt;/P&gt;&lt;P&gt;    MODULE pbo_tab.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE set_cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE exit_screen AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;loop through the internal table and modify each line as appropriate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_org_units.&lt;/P&gt;&lt;P&gt;    MODULE process_list.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE user_command_0300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant modules are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module ini_step_loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      DESCRIBE TABLE it_tab  l_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF l_step_loop_pos IS INITIAL OR&lt;/P&gt;&lt;P&gt;         l_step_loop_pos &amp;gt; l_lines.&lt;/P&gt;&lt;P&gt;        l_step_loop_pos = 1.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE process_list INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY it_tab INDEX l_step_loop_pos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 15:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/step-loops/m-p/1975512#M399724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T15:09:10Z</dc:date>
    </item>
  </channel>
</rss>

