<?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: Screen Elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383849#M1042800</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. Though this code is for selection screen, but same kind of logic is used in screen programming . You just have to use screen table, loop on screen table and change attributes of screen elements at run time . &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>Wed, 20 Aug 2008 08:57:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-20T08:57:11Z</dc:date>
    <item>
      <title>Screen Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383847#M1042798</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;I have to disable screen elements at run time.&lt;/P&gt;&lt;P&gt;Please suggest possible solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Ramotar Sahoo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383847#M1042798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383848#M1042799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="423615"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 08:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383848#M1042799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383849#M1042800</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. Though this code is for selection screen, but same kind of logic is used in screen programming . You just have to use screen table, loop on screen table and change attributes of screen elements at run time . &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>Wed, 20 Aug 2008 08:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383849#M1042800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T08:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383850#M1042801</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;You did not mention the exact problem.&lt;/P&gt;&lt;P&gt;take the scenario-&lt;/P&gt;&lt;P&gt;Suppose you have two Parameters and two radio buttons now if you click on First radiobutton First Parameters will be enable and when you click on second radiobutton second parameters will be enable. for this try this way-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Parameters:p_para1 type mara-matnr,
                  p_para2 type mara-matnr,
                  p_rad1 radiobutton group gr1 user-command gr1,
                  p_rad2 radiobutton group gr1.



At Selection-screen output.
  if p_rad1 = 'X'.
   Loop at Screen.
   if Screen-name cs 'P_PARA2'.
          screen-input = 0.
       Modify screen.
   endif.
  endloop.
elseif p_rad2 = 'X'.
Loop at screen.
 if screen-name cs 'P_PARA1'.
  screen-input = 0.
Modify screen.
Endif.
Endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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>Wed, 20 Aug 2008 09:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383850#M1042801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T09:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383851#M1042802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;The best way to inactive the screeen elements is to put screen elements under any group in screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are four groups in the attributes of any screen element. Write any string for eg: 'GR' for any screen element&lt;/P&gt;&lt;P&gt;&amp;amp; write a query like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'GR'.&lt;/P&gt;&lt;P&gt;screen-active = 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;&lt;/P&gt;&lt;P&gt;like this you cn put any number of screen elements in the same group with the same string name &amp;amp; can inactive all of them together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 10:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383851#M1042802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T10:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383852#M1042803</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;You can write this code in the PBO of that screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-tcode = 'Your transaction code'.&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    &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;&lt;/P&gt;&lt;P&gt;hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 11:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-elements/m-p/4383852#M1042803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T11:49:08Z</dc:date>
    </item>
  </channel>
</rss>

