<?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 and at selection-screen output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358666#M1037629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Check this sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_sdn.
 
PARAMETERS:
  p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc,
  p_char RADIOBUTTON GROUP rad1.
 
PARAMETERS:
  p_num1 TYPE i MODIF ID num,
  p_num2 TYPE i MODIF ID num,
  p_char1 TYPE c MODIF ID chr,
  p_char2 TYPE c MODIF ID chr.
 
 
AT SELECTION-SCREEN OUTPUT.
  IF p_num EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'CHR'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'NUM'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 13:52:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T13:52:36Z</dc:date>
    <item>
      <title>loop at screen and at selection-screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358663#M1037626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello abapers give some defnetion and some eg. for &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUPUT  and&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358663#M1037626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen and at selection-screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358664#M1037627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;F1 or search in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358664#M1037627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen and at selection-screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358665#M1037628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search in SDN using the Keyword AT SELECTION-SCREEN OUTPUT and LOOP AT SCREEN, You may get Lots of Information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358665#M1037628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen and at selection-screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358666#M1037629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Check this sample code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_sdn.
 
PARAMETERS:
  p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc,
  p_char RADIOBUTTON GROUP rad1.
 
PARAMETERS:
  p_num1 TYPE i MODIF ID num,
  p_num2 TYPE i MODIF ID num,
  p_char1 TYPE c MODIF ID chr,
  p_char2 TYPE c MODIF ID chr.
 
 
AT SELECTION-SCREEN OUTPUT.
  IF p_num EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'CHR'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'NUM'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358666#M1037629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen and at selection-screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358667#M1037630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer to the links below:&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="5459753"&gt;&lt;/A&gt;&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="5707117"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also refer to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/change-the-input-fields-dynamically-in-a-screen.htm" target="test_blank"&gt;http://www.sap-img.com/abap/change-the-input-fields-dynamically-in-a-screen.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 13:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358667#M1037630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: loop at screen and at selection-screen output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358668#M1037631</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;AT SELECTION-SCREEN OUTPUT. &lt;/P&gt;&lt;P&gt; This is the event which triggers before the screen is going to display. In this event we can done any change to the screen using LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN [INTO wa]. &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &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, one loop pass is executed. 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;While processing a table control or a step loop (that is, within a LOOP loop of the dynpro flow logic), for its screen elements the current properties are determined in the current row or group. Outside of the processing of a table control or step loop, for its screen elements the statically predefined properties of all rows or groups are determined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table below shows the components of screen and their assignment to the field properties in the dynpro. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Component   Length  Type  Attribute                   Description &lt;/P&gt;&lt;P&gt;name           132        c        Name                       Name &lt;/P&gt;&lt;P&gt;group1            3         c        Group1                     Modification group &lt;/P&gt;&lt;P&gt;group2            3         c        Group2                     Modification group &lt;/P&gt;&lt;P&gt;group3            3         c        Group3                     Modification group &lt;/P&gt;&lt;P&gt;group4             3        c        Group4                     Modification group &lt;/P&gt;&lt;P&gt;required           1        c         Required-entry field   Mandatory field &lt;/P&gt;&lt;P&gt;input                1        c        Input                         input-enabled field &lt;/P&gt;&lt;P&gt;output              1         c       Output                      display field &lt;/P&gt;&lt;P&gt;intensified         1        c         Intensified                intensified field &lt;/P&gt;&lt;P&gt;invisible           1         c          Invisible                   invisible element &lt;/P&gt;&lt;P&gt;length             1         x          visLength                  Field length &lt;/P&gt;&lt;P&gt;active              1         c          Input/Output/Invisible active field &lt;/P&gt;&lt;P&gt;display_3d      1          c         Two-dimensional Box &lt;/P&gt;&lt;P&gt;value_help       1         c          Input help                  Input help key &lt;/P&gt;&lt;P&gt;request           1          c     - Input exists &lt;/P&gt;&lt;P&gt;values_in_combo 1      c         Dropdown listbox Value help exists &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 component name in the loop contains the name of the current dynpro field. The components group1 to group4 can contain three-character IDs, which were assigned to the current screen element in its definition. These IDs allow you to combine the screen elements in up to four different modification groups. In the statement block after LOOP AT SCREEN, these can be queried in logical expressions in order to process several elements in the same way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other components of table screen represent the display properties of the current screen element. With the exception of length, they can contain 0 or 1, where 1 is "active" and 0 is "inactive". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Except active, all components of structure screen directly correspond to one attribute of the current screen element. The component active has no match in the attributes. If you change its content with MODIFY SCREEN, this affects the attributes Input, Output and Invisible and thus the components input, output and invisible of structure screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 14:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-screen-and-at-selection-screen-output/m-p/4358668#M1037631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T14:01:04Z</dc:date>
    </item>
  </channel>
</rss>

