<?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/4995301#M1163419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please check the Screen elements name also paste your code if possible toresolve the  issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Jan 2009 11:41:53 GMT</pubDate>
    <dc:creator>shishupalreddy</dc:creator>
    <dc:date>2009-01-11T11:41:53Z</dc:date>
    <item>
      <title>loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995299#M1163417</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;in loop at screen&lt;/P&gt;&lt;P&gt;for the screen name value what is value to be considered&lt;/P&gt;&lt;P&gt;in some cases i have seen screen name having % in between&lt;/P&gt;&lt;P&gt;but these screen  names doesnot there in the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to check for such kind of names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 11:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995299#M1163417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-11T11:31:53Z</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/4995300#M1163418</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;Can you be more clear on this .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a custom screen or a standard screen.&lt;/P&gt;&lt;P&gt;In any screen you can find the field names in the menu painter. Have a look in to that......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 11:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995300#M1163418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-11T11:39:57Z</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/4995301#M1163419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please check the Screen elements name also paste your code if possible toresolve the  issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 11:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995301#M1163419</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2009-01-11T11:41:53Z</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/4995302#M1163420</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;for ex here i have pasted the code there is sdn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF (&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      screen-name = '%BYB1005_BLOCK_1000'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       screen-name = '%FYTI007_1000'&lt;/P&gt;&lt;P&gt;     or  screen-name = '%FBIS010_1000'&lt;/P&gt;&lt;P&gt;     or  screen-name = 'PYVW0_0'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     or  screen-name = '%_PYPERNR_%_APP_%-TEXT'&lt;/P&gt;&lt;P&gt;     or  screen-name = 'PYPERNR-LOW'&lt;/P&gt;&lt;P&gt;     or  screen-name = '%_PYPERNR_%_APP_%-VALU_PUSH'&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        ).&lt;/P&gt;&lt;P&gt;      screen-active = '0'.&lt;/P&gt;&lt;P&gt;      screen-invisible = '1'.&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;&lt;/P&gt;&lt;P&gt;  link : &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1185483"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this the names are in different format&lt;/P&gt;&lt;P&gt;how exactly to identify it on the screen screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 12:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995302#M1163420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-11T12:07: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/4995303#M1163421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Find the correct name of the field follow the bellow given steps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. --&amp;gt; Display the Screen With all the fields&lt;/P&gt;&lt;P&gt;2. --&amp;gt; Place you Muse Courser on the Field you want to hide using the Loop at Screen&lt;/P&gt;&lt;P&gt;3. --&amp;gt; Press 'F1' Key and on the display Window&lt;/P&gt;&lt;P&gt;4. --&amp;gt; From the Tool bar select the Technical Information Button&lt;/P&gt;&lt;P&gt;5. --&amp;gt; Now from the Display Window you can find the Name of the Require Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Follow the above Steps and Replay if any problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 13:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995303#M1163421</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-11T13:47:09Z</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/4995304#M1163422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you define a paramter or select-option on the selection screen, the % is prefixed to the field name. These elements of the screen are used to name the field labels on the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should ignore these and only use the the name of the screen elements that you have defined in the selection screen when you are processing the screen in the loop at screen code block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters p_matnr like mara-matnr.

"Now here %p_matnr will be the screen-name for the text label of the field p_matnr ( selection text that is displayed in the screen

loop at screen.
 case screen-name.
  when 'P_MATNR'.
    " do the processing for the field matnr
 endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your code , I can see that you want to probably hide some fields or block.&lt;/P&gt;&lt;P&gt;What you can do is assign a &lt;STRONG&gt;modif id&lt;/STRONG&gt; to each of the screen element that you want to hide. This modif id is then stored in the group1 attribute of the screen table at runtime.&lt;/P&gt;&lt;P&gt;So you can do something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selection-screen begin of block b1
parameters p_matnr like mara-matnr modif id mat.
parametsr p_werks like mara-werks modif id mat.
selection-screen end of block b1.

at selection-screen output.


loop at screen.
  case screen-group1.
    when 'MAT'
       screen-active = 0.
 endcase.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code loops at the screen and makes both the parameters invisible and since there is nothing left on the screen, the block will also be made invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Jan 11, 2009 7:23 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Jan 11, 2009 7:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jan 2009 18:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995304#M1163422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-11T18:21:38Z</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/4995305#M1163423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the Sample program of loop at Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODULE passdata OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_revision INTO wa_rev INDEX tab_clc-current_line.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;      IF screen-group1 = '111'.      " 111 IS THE GROUP NAME&lt;/P&gt;&lt;P&gt;        screen-input = 1.          " input mode&lt;/P&gt;&lt;P&gt;        screen-active = 1.         " input mode.&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 = '111'.       "GROUP NAME&lt;/P&gt;&lt;P&gt;        screen-input = 0.           " display mode&lt;/P&gt;&lt;P&gt;        screen-active = 1.          " DISPLAY MODE.&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;P&gt;ENDMODULE.                 " PASSDATA  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also follow this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1950894"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Arun Kayal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 04:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995305#M1163423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T04:02:17Z</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/4995306#M1163424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;on my own&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 00:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/4995306#M1163424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-29T00:56:40Z</dc:date>
    </item>
  </channel>
</rss>

