<?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: Creataing slection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238764#M1210643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can create radio button in 2 diff groups .&lt;/P&gt;&lt;P&gt;In first group create your "name" radio button nd then add that parameter for input field &lt;/P&gt;&lt;P&gt;and in select group other radio button and other parameter.&lt;/P&gt;&lt;P&gt;Now if you want that if you select 1st radio button than user should be allowed only to enter value in first parameter than you have to code that in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;create do like this ..&lt;/P&gt;&lt;P&gt;lets say ur first radio button name is r_but1 and paramter name is p_name&lt;/P&gt;&lt;P&gt;and r_but2 and p_xyz.&lt;/P&gt;&lt;P&gt;create all these 4 things in single group.&lt;/P&gt;&lt;P&gt;than write logic like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r_but1 = x&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;screen-field = p_name&lt;/P&gt;&lt;P&gt;screen-active = 1.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;screen-field = p_xyz.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;like wise you can code for other radio button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 21:27:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T21:27:23Z</dc:date>
    <item>
      <title>Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238761#M1210640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a selection screen which has got the following option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; radio button 1. select by name&lt;/P&gt;&lt;P&gt;   and within this radio button there should a parameter for a user to enter lets say "name"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;radio button 2. Select by ID&lt;/P&gt;&lt;P&gt;   and within this radio button there should be a parameter for a user to enter lets say "ID"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me how can I acheiev this.&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;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 20:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238761#M1210640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T20:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238762#M1210641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajeev,&lt;/P&gt;&lt;P&gt;Search on SCN/WIKI for hiding fields on selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 20:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238762#M1210641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T20:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238763#M1210642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;search forum for SELECTION SCREEN BEGIN OF LINE or you can check the SAP Help also for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 20:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238763#M1210642</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2009-02-12T20:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238764#M1210643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can create radio button in 2 diff groups .&lt;/P&gt;&lt;P&gt;In first group create your "name" radio button nd then add that parameter for input field &lt;/P&gt;&lt;P&gt;and in select group other radio button and other parameter.&lt;/P&gt;&lt;P&gt;Now if you want that if you select 1st radio button than user should be allowed only to enter value in first parameter than you have to code that in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;create do like this ..&lt;/P&gt;&lt;P&gt;lets say ur first radio button name is r_but1 and paramter name is p_name&lt;/P&gt;&lt;P&gt;and r_but2 and p_xyz.&lt;/P&gt;&lt;P&gt;create all these 4 things in single group.&lt;/P&gt;&lt;P&gt;than write logic like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r_but1 = x&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;screen-field = p_name&lt;/P&gt;&lt;P&gt;screen-active = 1.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;screen-field = p_xyz.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;like wise you can code for other radio button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 21:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238764#M1210643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T21:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238765#M1210644</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;I know this does not address your question but one other way to do this would&lt;/P&gt;&lt;P&gt;be to display both parameters without the radiobuttons.  &lt;/P&gt;&lt;P&gt;They really do not add much value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then if someone enters a value for name &lt;/P&gt;&lt;P&gt;      Select data by name&lt;/P&gt;&lt;P&gt;if a value is entered for id &lt;/P&gt;&lt;P&gt;      Select data by id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data is entered for both name and id issue an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 21:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238765#M1210644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T21:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238766#M1210645</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 have tried the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_tcode RADIOBUTTON GROUP rad1 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;s_tcode like tstc-tcode,&lt;/P&gt;&lt;P&gt;p_prog RADIOBUTTON GROUP rad1 ,&lt;/P&gt;&lt;P&gt;s_pgmna like tstc-pgmna.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but now I am getting an error at the following select statement... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM tstc&lt;/P&gt;&lt;P&gt;INTO TABLE t_tstc&lt;/P&gt;&lt;P&gt;WHERE tcode IN s_tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The IN operator with "S_TCODE" is followed neither by an internal table"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me what I am dng wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 23:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238766#M1210645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T23:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238767#M1210646</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 have tried the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-002.
PARAMETERS: p_tcode RADIOBUTTON GROUP rad1 DEFAULT 'X',
s_tcode like tstc-tcode,
p_prog RADIOBUTTON GROUP rad1 ,
s_pgmna like tstc-pgmna.
SELECTION-SCREEN END OF BLOCK blk1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but now I am getting an error at the following select statement... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM tstc
INTO TABLE t_tstc
WHERE tcode IN s_tcode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The IN operator with "S_TCODE" is followed neither by an internal table"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me what I am dng wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 23:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238767#M1210646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T23:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238768#M1210647</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;s_tcode needs to be declared as a select-option( see f1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 23:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238768#M1210647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T23:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238769#M1210648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare s_tcode like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_tcode FOR tstc-tcode. if it needs a range in the input selection.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want only single value input,&lt;/P&gt;&lt;P&gt;Code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: s_tcode LIKE tstc-tcode.&lt;/P&gt;&lt;P&gt;Then you need to use EQ operator in the SELECT query...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Geetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 03:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238769#M1210648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T03:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238770#M1210649</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;write like this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame.&lt;/P&gt;&lt;P&gt; parameters:&lt;/P&gt;&lt;P&gt;  p_sales radiobutton group grp user-command UC default 'X',&lt;/P&gt;&lt;P&gt;   p_name type sy-uname modif id grp,&lt;/P&gt;&lt;P&gt;  p_order radiobutton group grp,&lt;/P&gt;&lt;P&gt;   p_ID type sy-uname modif id g2.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&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;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 03:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238770#M1210649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T03:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238771#M1210650</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 get with  the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_rad1 RADIOBUTTON GROUP r1,&lt;/P&gt;&lt;P&gt;p_name TYPE sy-uname  ,&lt;/P&gt;&lt;P&gt;p_rad2 RADIOBUTTON GROUP r1,&lt;/P&gt;&lt;P&gt;p_id(6) TYPE n.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK a1.&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;Rajani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 03:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238771#M1210650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T03:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238772#M1210651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Geetha, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks for the reply....now I have written the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of block 1 with frame title 010.
select-options: p_tcode for tstc-pcode,
                      p_name for tstc-pmna.
selection-screen end of block 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's working fine...but now I have a question...I have code in program where if user selects the first parameter i.e. p_tcode then the program should do a particular perform and if the user selects the p_name one then it should do a different perform.... so can you please tell me how can I achieve this... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean there should be a condition like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user selects p_tcode.&lt;/P&gt;&lt;P&gt;perform p_trnscode.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;perform p_program.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am not able to identify how can I get this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 03:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238772#M1210651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T03:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238773#M1210652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;    SELECT * FROM tstc&lt;/P&gt;&lt;P&gt;INTO TABLE t_tstc&lt;/P&gt;&lt;P&gt;WHERE tcode IN s_tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what u have used.&lt;/P&gt;&lt;P&gt;I feel thet 'IN' will not work with Parameter , so insted try using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM tstc&lt;/P&gt;&lt;P&gt;INTO TABLE t_tstc&lt;/P&gt;&lt;P&gt;WHERE tcode =  s_tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help u. If I am wrong please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 05:28:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238773#M1210652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T05:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238774#M1210653</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;Use AT SELECTION-SCREEN ON &amp;lt;Fieldname&amp;gt; event&lt;/P&gt;&lt;P&gt;Check Demo program DEMO_SELECTION_SCREEN_EVENTS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 05:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238774#M1210653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T05:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238775#M1210654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing this also... and it's working also but the problem  it's only tsking care of single entry at a time..... it's not taking care of the range.....so I tried the follwoing:&lt;/P&gt;&lt;P&gt;Hi Geetha, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks for the reply....now I have written the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of block 1 with frame title 010.
select-options: p_tcode for tstc-pcode,
                      p_name for tstc-pmna.
selection-screen end of block 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's working fine...but now I have a question...I have code in program where if user selects the first parameter i.e. p_tcode then the program should do a particular perform and if the user selects the p_name one then it should do a different perform.... so can you please tell me how can I achieve this... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean there should be a condition like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if user selects p_tcode.&lt;/P&gt;&lt;P&gt;perform p_trnscode.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;perform p_program.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 06:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238775#M1210654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T06:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238776#M1210655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;This works.....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Parameters:
P_box1 radiobutton group GRP,
P_NAME(30) TYPE C MODIF ID SC1,
P_box2 radiobutton group GRP,
P_ID TYPE I MODIF ID SC1.

AT SELECTION-SCREEN OUTPUT.
 If  p_box1 eq 'X'.
    LOOP AT SCREEN.
      IF screen-NAME CS 'P_ID'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
   elseIF P_BOX2 EQ 'X'.
   LOOP AT SCREEN.
      IF screen-NAME CS 'P_NAME'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    ELSE.
     LOOP AT SCREEN.
      IF screen-group1 = 'SC1'.
        screen-active = 0.
        MODIFY SCREEN.
        ENDIF.
    ENDLOOP.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mdi.Deeba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 06:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238776#M1210655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T06:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238777#M1210656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the start-of-selection you can do the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF p_tcode = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Call ur Perform A.&lt;/P&gt;&lt;P&gt;      PERFORM perform_A.&lt;/P&gt;&lt;P&gt;  ELSEIF p_prog = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Call ur Perform B.&lt;/P&gt;&lt;P&gt;      PERFORM perform_B.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hopes it will work for you.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 06:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238777#M1210656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T06:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238778#M1210657</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 this one, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : mara,marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************************************************************&lt;/P&gt;&lt;P&gt;************************&lt;STRONG&gt;Selection screen fields&lt;/STRONG&gt;******************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS    : p_meth1  RADIOBUTTON GROUP g1 USER-COMMAND g1,&lt;/P&gt;&lt;P&gt;                p_meth2  RADIOBUTTON GROUP g1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK matnr&lt;/P&gt;&lt;P&gt;                          WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP 1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : so_matnr FOR marc-matnr MODIF ID m1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : so_werks FOR marc-werks MODIF ID m1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK file WITH FRAME TITLE text-003.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP 1.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_fpath TYPE ibipparms-path MODIF ID m2 LOWER CASE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK date WITH FRAME TITLE text-004.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN SKIP 1.&lt;/P&gt;&lt;P&gt;PARAMETERS     : p_date TYPE datuv.                         "CCT51576.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************************************************************&lt;/P&gt;&lt;P&gt;***********************&lt;STRONG&gt;Screen Validation&lt;/STRONG&gt;*********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    CASE screen-group1.&lt;/P&gt;&lt;P&gt;      WHEN 'M1'.&lt;/P&gt;&lt;P&gt;        IF p_meth1 &amp;lt;&amp;gt; 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 1.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        IF p_meth2 = 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 0.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      WHEN 'M2'.&lt;/P&gt;&lt;P&gt;        IF p_meth2 = 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 1.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          screen-active = 0.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        IF p_meth1 = 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 0.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;    MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 06:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238778#M1210657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T06:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238779#M1210658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:
  tstc.

Data:
  t_tstc like standard table of tstc.

SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-002.
PARAMETERS:
  p_tcode RADIOBUTTON GROUP rad1 DEFAULT 'X' user-command abc,
  p_prog RADIOBUTTON GROUP rad1.
SELECTION-SCREEN END OF BLOCK blk1.

selection-screen begin of block 1 with frame title text-001.

SELECT-OPTIONS:
  s_tcode for tstc-tcode modif id aaa,
  s_pgmna for tstc-PGMNA modif id bbb.
selection-screen end of block 1.

At selection-screen output.

if  p_tcode    = 'X'.
  loop at screen.
    if screen-group1  = 'BBB'.
      screen-input   = 0.
      modify screen.
    endif.
  endloop.
elseif p_prog = 'X'.
  loop at screen.
    if screen-group1  = 'AAA'.
      screen-input   = 0.
      modify screen.
    endif.
  endloop.
endif.

Start-of-selection.

  If S_PGMNA is initial and S_TCODE is not initial.   " i have changed d condition here as my last 
* condition was wrong
    Perform GET_S_PGMNA.
  Elseif S_PGMNA is not initial and S_TCODE is initial.
    Perform GET_S_TCODE.
  Endif.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  GET_S_PGMNA
*&amp;amp;---------------------------------------------------------------------*
form GET_S_PGMNA.
  SELECT *
    FROM tstc
    INTO TABLE t_tstc
   WHERE tcode IN s_tcode.
endform.                    " GET_S_PGMNA

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  GET_S_TCODE
*&amp;amp;---------------------------------------------------------------------*
form GET_S_TCODE.
  SELECT *
    FROM tstc
    INTO TABLE t_tstc
   WHERE tcode IN s_pgmna.
endform.                    " GET_S_TCODE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pritam Ghosh on Feb 13, 2009 8:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 07:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238779#M1210658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T07:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creataing slection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238780#M1210659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pritam, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply and it did work.... but I have a small problem... if i selects 1st radio button and enter the tcode in the parameter and execute it...it will giveme the desired result but now if I need to select the second radio button and need to enter the program name.... but to get the result I first need to delete the entry that I made in the first selection and then only it will give me the result...otherwise it will do nothing !!! do you have any idea why it is like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 15:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creataing-slection-screen/m-p/5238780#M1210659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T15:46:30Z</dc:date>
    </item>
  </channel>
</rss>

