<?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: Search option for Step loop Items in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049579#M422391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravikumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Check the following documentation,&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;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;&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;&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;&lt;/P&gt;&lt;P&gt;Good Luck and thanks&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2007 07:55:22 GMT</pubDate>
    <dc:creator>ashok_kumar24</dc:creator>
    <dc:date>2007-03-15T07:55:22Z</dc:date>
    <item>
      <title>Search option for Step loop Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049577#M422389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add a search(FIND) button for step loop items(more than 200 items).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 07:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049577#M422389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T07:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search option for Step loop Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049578#M422390</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;    apart from the back, exit, and cancel buttons taht we see in the standard screens, for all the other buttons in the app. tool bars, we have to write our own funcationalities...this code works fine for search functionality in my table control..should work for u as well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0123 INPUT.&lt;/P&gt;&lt;P&gt;  FCODE = OKCODE.&lt;/P&gt;&lt;P&gt;  CLEAR OKCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE FCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WHEN 'SEARCH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_GET_ONE_VALUE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          TEXTLINE1            = V_MATNR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          TEXTLINE2            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          TEXTLINE3            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          TITEL                = 'Enter a material to search'&lt;/P&gt;&lt;P&gt;          VALUELENGTH          = '18'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;         ANSWER               = V_ANSWER&lt;/P&gt;&lt;P&gt;         VALUE1               = V_MATNR&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          TITEL_TOO_LONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          OTHERS               = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF V_ANSWER = 'J'.&lt;/P&gt;&lt;P&gt;        READ TABLE ITAB_TBL WITH KEY MATNR = V_MATNR.&lt;/P&gt;&lt;P&gt;        TBCTRL-TOP_LINE = SY-TABIX.&lt;/P&gt;&lt;P&gt;        CLEAR V_MATNR.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  where your itab_tbl is the int. table that is displayed in the table control..&lt;/P&gt;&lt;P&gt;  if useful, reward...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sathish. R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 07:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049578#M422390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T07:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search option for Step loop Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049579#M422391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravikumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Check the following documentation,&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;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;&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;&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;&lt;/P&gt;&lt;P&gt;Good Luck and thanks&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 07:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049579#M422391</guid>
      <dc:creator>ashok_kumar24</dc:creator>
      <dc:date>2007-03-15T07:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search option for Step loop Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049580#M422392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 07:55:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049580#M422392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T07:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search option for Step loop Items</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049581#M422393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks satish &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I am finding the field vlaue by the FM 'POPUP_TO_GET_ONE_VALUE', but&lt;/P&gt;&lt;P&gt;need to set the cursor on the same field value of the &amp;lt;b&amp;gt;step loop&amp;lt;/b&amp;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>Thu, 15 Mar 2007 09:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/search-option-for-step-loop-items/m-p/2049581#M422393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T09:21:35Z</dc:date>
    </item>
  </channel>
</rss>

