<?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: Modifying the selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847857#M359478</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;&lt;/P&gt;&lt;P&gt;Thanks a lot Rich , Max and Naren for your valuable answers and quick response .&lt;/P&gt;&lt;P&gt;I have awarded ponits for all .&lt;/P&gt;&lt;P&gt;Once again thanks a ton .&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;Daniel .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 18:38:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-11T18:38:05Z</dc:date>
    <item>
      <title>Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847847#M359468</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;This is how I have defined my selection screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK pcode1 WITH FRAME TITLE text-s02.

parameters : p_crun type char1 radiobutton group rad2 ,
             p_prun type char1 radiobutton group rad2 default 'X'.

select-options : s_date for sy-datum .
selection-screen skip .
parameters :     p_test type char1 as checkbox .

SELECTION-SCREEN END OF BLOCK pcode1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My intension is insert a code in the program which should work this way : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select p_crun the select option for date filed should disappear from the screen and when I select  p_prun the date option should appear so that I can enter my date range .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code I am using and it is not working :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
at selection-screen output .

  perform modify_screen .

FORM modify_screen .

  loop at screen .

    if p_crun eq c_x .

      if screen-name eq '*S_DATE*' .
        screen-invisible = '0' .
        screen-active = '0' .
        screen-input = '0' .
      endif .

    endif .

    modify screen .
  endloop .
endform .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to fix tis problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards ,&lt;/P&gt;&lt;P&gt;Daniel .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847847#M359468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847848#M359469</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;Changes are marked in bold..Instead of using the select-options name..use the modif id..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK pcode1 WITH FRAME TITLE text-s02.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameters : p_crun type char1 radiobutton group rad2 &amp;lt;b&amp;gt;USER-COMMAND USR&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;             p_prun type char1 radiobutton group rad2 default 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options : s_date for sy-datum &amp;lt;b&amp;gt;MODIF ID G1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;selection-screen skip .&lt;/P&gt;&lt;P&gt;parameters :     p_test type char1 as checkbox .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK pcode1.&lt;/P&gt;&lt;P&gt;&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;  perform modify_screen .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM modify_screen .&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 p_crun eq c_x .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      if screen&amp;lt;b&amp;gt;-GROUP1 = 'G1'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;        screen-invisible = '&amp;lt;b&amp;gt;1&amp;lt;/b&amp;gt;' .&lt;/P&gt;&lt;P&gt;        screen-active = '0' .&lt;/P&gt;&lt;P&gt;        screen-input = '0' .&lt;/P&gt;&lt;P&gt;      endif .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    else p_prun eq c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      if screen&amp;lt;b&amp;gt;-GROUP1 = 'G1'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;        screen-invisible = '&amp;lt;b&amp;gt;0&amp;lt;/b&amp;gt;' .&lt;/P&gt;&lt;P&gt;        screen-active = '1' .&lt;/P&gt;&lt;P&gt;        screen-input = '1' .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      endif .&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;    modify screen .&lt;/P&gt;&lt;P&gt;  endloop .&lt;/P&gt;&lt;P&gt;endform .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847848#M359469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847849#M359470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This did not work . I am working in HR ABAP  . Is that a constraint ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please recheck and let me know .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847849#M359470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847850#M359471</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;Please check the modified code..Changes are marked in bold..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK pcode1 WITH FRAME TITLE text-s02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_crun type char1 radiobutton group rad2 &amp;lt;b&amp;gt;USER-COMMAND USR&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;p_prun type char1 radiobutton group rad2 default 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_date for sy-datum &amp;lt;b&amp;gt;MODIF ID G1&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;selection-screen skip .&lt;/P&gt;&lt;P&gt;parameters : p_test type char1 as checkbox .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK pcode1.&lt;/P&gt;&lt;P&gt;&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;perform modify_screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM modify_screen .&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 p_crun eq c_x .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if screen-GROUP1 = 'G1'.&lt;/P&gt;&lt;P&gt;screen-invisible = '1' .&lt;/P&gt;&lt;P&gt;screen-active = '0' .&lt;/P&gt;&lt;P&gt;screen-input = '0' .&lt;/P&gt;&lt;P&gt;endif .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else p_prun eq c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-GROUP1 = 'G1'.&lt;/P&gt;&lt;P&gt;screen-invisible = '0' .&lt;/P&gt;&lt;P&gt;screen-active = '1' .&lt;/P&gt;&lt;P&gt;screen-input = '1' .&lt;/P&gt;&lt;P&gt;endif .&amp;lt;/b&amp;gt;&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;modify screen .&lt;/P&gt;&lt;P&gt;endloop .&lt;/P&gt;&lt;P&gt;endform .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:14:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847850#M359471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847851#M359472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DAniel,&lt;/P&gt;&lt;P&gt;Execute this code ,its working.&lt;/P&gt;&lt;P&gt;data:c_x type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK pcode1 WITH FRAME TITLE text-s02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_crun type char1 radiobutton group rad2 ,&lt;/P&gt;&lt;P&gt;             p_prun type char1 radiobutton group rad2 default 'X' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_date for sy-datum MODIF ID SC1.&lt;/P&gt;&lt;P&gt;selection-screen skip .&lt;/P&gt;&lt;P&gt;parameters :     p_test type char1 as checkbox .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK pcode1.&lt;/P&gt;&lt;P&gt;&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;  perform modify_screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM modify_screen .&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 p_crun eq c_x .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF SCREEN-GROUP1 = 'SC1'.&lt;/P&gt;&lt;P&gt;        screen-invisible = '0' .&lt;/P&gt;&lt;P&gt;        screen-active = '0' .&lt;/P&gt;&lt;P&gt;        screen-input = '0' .&lt;/P&gt;&lt;P&gt;      endif .&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;    modify screen .&lt;/P&gt;&lt;P&gt;  endloop .&lt;/P&gt;&lt;P&gt;endform .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Radiobutton p_crun ,press execute,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847851#M359472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847852#M359473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good this worked . But can you please explain me what difference this &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;USER-COMMAND  USR&amp;lt;/b&amp;gt;   is making .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Daniel .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847852#M359473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847853#M359474</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: it works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK PCODE1 WITH FRAME TITLE TEXT-S02.

PARAMETERS : P_CRUN TYPE CHAR1 RADIOBUTTON GROUP RAD2 USER-COMMAND AAA,
             P_PRUN TYPE CHAR1 RADIOBUTTON GROUP RAD2 DEFAULT 'X'.

SELECT-OPTIONS : S_DATE FOR SY-DATUM MODIF ID SEL.
SELECTION-SCREEN SKIP .
PARAMETERS :     P_TEST TYPE CHAR1 AS CHECKBOX .

SELECTION-SCREEN END OF BLOCK PCODE1.


AT SELECTION-SCREEN OUTPUT .

  PERFORM MODIFY_SCREEN .

*---------------------------------------------------------------------*
*       FORM modify_screen                                            *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
FORM MODIFY_SCREEN .

  LOOP AT SCREEN .

    IF P_CRUN EQ 'X' .

      IF SCREEN-GROUP1 EQ 'SEL' .
        SCREEN-ACTIVE = '0' .
      ENDIF .

    ENDIF .

    MODIFY SCREEN .
  ENDLOOP .
ENDFORM .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847853#M359474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847854#M359475</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;If you specify the USER-COMMAND, when the user presses the radio button it will immediately trigger the AT SELECTION-SCREEN &amp;amp; AT SELECTION-SCREEN OUTPUT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points for helpful answers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847854#M359475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847855#M359476</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;That Nares's saying is right, but you should consider one thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select-options is defined for input/output by default, so u need code only to change this attribute and not the code to restore the default attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen .
  if p_crun eq c_x .
    if screen-GROUP1 = 'G1'.
      screen-invisible = '1'. "This line is useless 
      screen-active = '0' .   "This line is useless 
      screen-input = '0' .
    endif .
* All the following code is done automatically
  else p_prun eq c_x.          "This line is useless     
    if screen-GROUP1 = 'G1'.   "This line is useless 
      screen-invisible = '0'.  "This line is useless 
      screen-active = '1' .    "This line is useless 
      screen-input = '1' .     "This line is useless 
    endif .
  endif .
  modify screen .
endloop .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;So you need only this code&amp;lt;/u&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen .
  if p_crun eq c_x and screen-GROUP1 = 'G1'.
      screen-input = '0' .
      modify screen.
  endif .
endloop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847855#M359476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847856#M359477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, Simply set the ACTIVE field.   If you set the INPUT field, you will see an extra field appear next to the SELECT-OPTION that you do not want.  Try this coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

constants: c_x type c value 'X'.

SELECTION-SCREEN BEGIN OF BLOCK pcode1 WITH FRAME TITLE text-s02.

parameters : p_crun type char1 radiobutton group rad2 user-command chk,
             p_prun type char1 radiobutton group rad2 default 'X'.

select-options : s_date for sy-datum modif id SD .
selection-screen skip .
parameters :     p_test type char1 as checkbox .

SELECTION-SCREEN END OF BLOCK pcode1.



*My intension is insert a code in the program which should work this way
* :
*
*When I select p_crun the select option for date filed should disappear
*from the screen and when I select p_prun the date option should appear
*so that I can enter my date range .
*
*this is the code I am using and it is not working :


at selection-screen output .

  perform modify_screen .

FORM modify_screen .

  loop at screen .

    if p_crun eq c_x
       and screen-group1 eq 'SD' .
        screen-active = '0' .
    endif .

    if p_prun eq c_x
       and screen-group1 eq 'SD' .
        screen-active = '1' .
    endif .

    modify screen .
  endloop .
endform .

&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847856#M359477</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-11T18:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847857#M359478</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;&lt;/P&gt;&lt;P&gt;Thanks a lot Rich , Max and Naren for your valuable answers and quick response .&lt;/P&gt;&lt;P&gt;I have awarded ponits for all .&lt;/P&gt;&lt;P&gt;Once again thanks a ton .&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;Daniel .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modifying-the-selection-screen/m-p/1847857#M359478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T18:38:05Z</dc:date>
    </item>
  </channel>
</rss>

