<?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: Loop at screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886475#M678043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to handle both cases in one single loop. You can put IF statements and check respective conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 04:09:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T04:09:10Z</dc:date>
    <item>
      <title>Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886474#M678042</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 need to do loop at screen twice and problem is that once i loop through it goes to last element and second time loop doesnt work so question is how can i go back to my first element on screen for second loop..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuj Goyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886474#M678042</guid>
      <dc:creator>former_member196517</dc:creator>
      <dc:date>2007-10-04T04:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886475#M678043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it not possible to handle both cases in one single loop. You can put IF statements and check respective conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886475#M678043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T04:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886476#M678044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashish..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is what is am doing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now after first loop my Screen is pointing to last element that is understandable .. now to execute second loop i need to make my screen pointer to go back to first element which is not happening..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886476#M678044</guid>
      <dc:creator>former_member196517</dc:creator>
      <dc:date>2007-10-04T04:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886477#M678045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;used if condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886477#M678045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T04:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886478#M678046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what i got for help for LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statements LOOP AT SCREEN ... ENDLOOP define a loop around a statement block. For every screen element of the current dynpro, to which a dynpro field is assigned, &amp;lt;b&amp;gt;one loop pass is executed.&amp;lt;/b&amp;gt; After the LOOP statement either the predefined workarea screen or the workarea wa (when using INTO) contains the properties of the respective screen element. wa must have the same data type as screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see the bold letters, i am not sure if we can use LOOP AT SCREEN more than once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you want to loop at screen more than once?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886478#M678046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T04:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886479#M678047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anuj..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this .. instead of LOOPing 2 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SCREEN-NAME  = 'P_FIELD1'.&lt;/P&gt;&lt;P&gt;     SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SCREEN-NAME = 'P_FIELD2'.&lt;/P&gt;&lt;P&gt;       SCREEN-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886479#M678047</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-04T04:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886480#M678048</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;u can loop twice it will not cause any problem.&lt;/P&gt;&lt;P&gt;if u start the second loop automatically it will go to the first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post ur code so that we check where the problem is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:name1(10),&lt;/P&gt;&lt;P&gt;name2(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;  name type screen-name,&lt;/P&gt;&lt;P&gt;  END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;  itab-name = screen-name.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;  itab-name = screen-name.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    WRITE:/ itab-name.&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;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886480#M678048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T04:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886481#M678049</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;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'GR3'.&lt;/P&gt;&lt;P&gt;        screen-invisible = 0.&lt;/P&gt;&lt;P&gt;        screen-input = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = 'GR2'.&lt;/P&gt;&lt;P&gt;       screen-invisible = 0.&lt;/P&gt;&lt;P&gt;       screen-input = 0.&lt;/P&gt;&lt;P&gt;        MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 04:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2886481#M678049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T04:45:08Z</dc:date>
    </item>
  </channel>
</rss>

