<?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/2729165#M633443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_param_modif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: test1(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test2(10) TYPE c MODIF ID sc2,&lt;/P&gt;&lt;P&gt;            test3(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test4(10) TYPE c MODIF ID sc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC1'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '1'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC2'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '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;reward if u find use ful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 10:30:00 GMT</pubDate>
    <dc:creator>paruchuri_nagesh</dc:creator>
    <dc:date>2007-09-12T10:30:00Z</dc:date>
    <item>
      <title>loop at screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729164#M633442</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 ahve a check box at selection screen.&lt;/P&gt;&lt;P&gt;if it is 'X', i have to enable a parameter.&lt;/P&gt;&lt;P&gt;if i unchecked it...i need to disable it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me..&lt;/P&gt;&lt;P&gt;vkr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729164#M633442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:26:21Z</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/2729165#M633443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_param_modif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: test1(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test2(10) TYPE c MODIF ID sc2,&lt;/P&gt;&lt;P&gt;            test3(10) TYPE c MODIF ID sc1,&lt;/P&gt;&lt;P&gt;            test4(10) TYPE c MODIF ID sc2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC1'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '1'.&lt;/P&gt;&lt;P&gt;      MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;      CONTINUE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    IF screen-group1 = 'SC2'.&lt;/P&gt;&lt;P&gt;      screen-intensified = '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;reward if u find use ful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729165#M633443</guid>
      <dc:creator>paruchuri_nagesh</dc:creator>
      <dc:date>2007-09-12T10:30:00Z</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/2729166#M633444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name eq PARAMETER&lt;/P&gt;&lt;P&gt; if check_box eq 'X'.&lt;/P&gt;&lt;P&gt;  screen-input = 1.&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;  screen-input = 0.  &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;Hope this helps you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasant&lt;/P&gt;&lt;P&gt;*reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729166#M633444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:30:31Z</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/2729167#M633445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if p_chkbox = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'G1'. " assign group G1 to that parameter which need to be *disabled by using MODIF ID G1 while declaring......&lt;/P&gt;&lt;P&gt;screen-invisible = '1'. " if needed to u....&lt;/P&gt;&lt;P&gt;screen-input = '0'. "if needed to u....&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>Wed, 12 Sep 2007 10:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729167#M633445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:31: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/2729168#M633446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;IF U want hide that parameter  do like this&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF screen-name = 'po_name'.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;EXIT.&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;If u want to hide the selection screen text also then debug the code capture the screen names corrosponding to that parameter and give all the screen names in the if condition.&lt;/P&gt;&lt;P&gt;If u r checking for multiple screen names then remove EXIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729168#M633446</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2007-09-12T10:33:16Z</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/2729169#M633447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry forgot to mention event.&lt;/P&gt;&lt;P&gt;Code will come under AT SELECTION SCREEN OUTPUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729169#M633447</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2007-09-12T10:34:21Z</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/2729170#M633448</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;LOOP AT SCREEN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All fields of the current screen are stored in the system table SCREEN with their attributes. The LOOP AT SCREEN statement places this information in the header line of the system table. If you want to change the attributes, you must put back the changed header line with MODIFY SCREEN. However, you can only do this in the PBO module of a screen. &lt;/P&gt;&lt;P&gt;If you use this statement for step loop processing, the information (and any changes) apply only to the current steploop line. Outside step loop processing, the information for a step loop field applies to the complete column. &lt;/P&gt;&lt;P&gt;You can also modify fields in the loop processing of a table control using this loop statement. Unlike a step loop, modifications before the loop have no effect, since the system gets the initial values for the columns from the column table of the table view. &lt;/P&gt;&lt;P&gt;Step loop fields should never be changed after the corresponding step loop processing has been performed. &lt;/P&gt;&lt;P&gt;You can use the CONTINUE statement to leave the current loop pass prematurely and continue with the next loop pass. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = p_name&lt;/P&gt;&lt;P&gt;if p_box =  'X'.&lt;/P&gt;&lt;P&gt;screen-input = 1.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;endif.&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;Regards,&lt;/P&gt;&lt;P&gt;LIJO JOHN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729170#M633448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:34:50Z</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/2729171#M633449</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 below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block blk1 with frame.&lt;/P&gt;&lt;P&gt;PARAMETERS: ONE as checkbox default 'X' user-command rusr.&lt;/P&gt;&lt;P&gt;selection-screen end of block blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block blk2 with frame.&lt;/P&gt;&lt;P&gt;parameters : USER LIKE USR02-BNAME DEFAULT SY-UNAME modif id Z1.&lt;/P&gt;&lt;P&gt;selection-screen end of block blk2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'Z1'. "Name field&lt;/P&gt;&lt;P&gt;IF one = 'X'.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;ENDIF.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729171#M633449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:36: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/2729172#M633450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;hi VKR,

 chk this

REPORT ychatest2.

PARAMETERS : p_chk default 'X' USER-COMMAND abc.
PARAMETERS : p_matnr LIKE mara-matnr.

AT SELECTION-SCREEN OUTPUT.

  IF p_chk EQ 'X'.
    LOOP AT SCREEN.
      IF screen-name EQ 'P_MATNR'.
        screen-input = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-name EQ 'P_MATNR'.
        screen-input = 1.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 10:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen/m-p/2729172#M633450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T10:37:35Z</dc:date>
    </item>
  </channel>
</rss>

