<?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 Alternative Selection Options: in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080518#M1356796</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 searched through the questions and did not find a question comparable to what i am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a radio button selection screen. Based on the radio button they choose,&lt;/P&gt;&lt;P&gt;then display further selection criteria for that button( plant, material, etc...). Seems like this event would&lt;/P&gt;&lt;P&gt;occur after initialization and before start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are questions just like this, please forward them link to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 20:14:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-26T20:14:31Z</dc:date>
    <item>
      <title>Alternative Selection Options:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080518#M1356796</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 searched through the questions and did not find a question comparable to what i am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have a radio button selection screen. Based on the radio button they choose,&lt;/P&gt;&lt;P&gt;then display further selection criteria for that button( plant, material, etc...). Seems like this event would&lt;/P&gt;&lt;P&gt;occur after initialization and before start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are questions just like this, please forward them link to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 20:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080518#M1356796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T20:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Selection Options:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080519#M1356797</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 ahve to use event at selection-screen output.&lt;/P&gt;&lt;P&gt;There are several threads in the forum like below:&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="7785109"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/search.jspa?objID=c42&amp;amp;q=at" target="test_blank"&gt;https://forums.sdn.sap.com/search.jspa?objID=c42&amp;amp;q=at&lt;/A&gt;&lt;EM&gt;selection-screen&lt;/EM&gt;output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 20:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080519#M1356797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T20:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Selection Options:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080520#M1356798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, in order it works smoothly (without pressing ENTER after choosing one of radiobuttons) you have to assing function code to your radiobuttons.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: pa_1 radiobutton group rad USER-COMMAND fcode,
                    pa_2 radiobutton group rad.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will force triggerring PAI ( &lt;STRONG&gt;AT SELECTION-SCREEN&lt;/STRONG&gt; ) every time you change your selection from pa_1 to pa_2 and vice versa.&lt;/P&gt;&lt;P&gt;Now you can have two different solutions:&lt;/P&gt;&lt;P&gt;- in PAI call different selection screens, i.e. one would have certain parameters, whereas the other would have different ones on it. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"first selection screen
SELECTION-SCREEN BEGIN OF SCREEN 110.
PARAMETERS: pa ...
....
SELECTION-SCREEN END OF SCREEN 110.
 
"second one, with different parameters
SELECTION-SCREEN BEGIN OF SCREEN 120.
parameters: pa....
SELECTION-SCREEN END OF SCREEN 120.

DATA: flag_disp TYPE c VALUE 'X'.
 
AT SELECTION-SCREEN OUTPUT.
  "first we need to call selection screen 110 - we do it only once (that's why I am using this flag and clearing it afterward)
  IF flag_disp = 'X'.
    CLEAR flag_disp.
    CALL SELECTION-SCREEN 110.
  ENDIF.
 
AT SELECTION-SCREEN.
  "now depending on radiobutton selection....
  IF pa_1= 'X'.   
    SET SCREEN 0.   "...first we leave current call sequence
    CALL SELECTION-SCREEN 110.  "then we call new selection screen
    LEAVE PROGRAM.  
  ELSE.
    SET SCREEN 0.
    CALL SELECTION-SCREEN 120.
    LEAVE PROGRAM.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The other solution (simpler one) would be placing all the fields (parameters) on selection screen and by default make them all disabled. Now depending on radiobutton selection you make them back input ready.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"first you place all the parameters you want
parameters: pa_plant ...
                    pa_matnr...

AT SELECTION-SCREEN OUTPUT.
   loop at screen.
      case screen-name.
        when 'PA_PLANT'.
           if pa_1 = 'X' . "first radiobutton selected
              screen-input = 0.  "disable PLANT
           else.
              screen-input = 1.  "enable PLANT
           endif.
        when 'PA_MATNR'.
           if pa_1 = 'X' . 
              screen-input = 1. "disable MAT
           else. 
              screen-input = 0. "enable MAT
           endif.          
      endcase.
      modify screen.
   endloop.                
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 21:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080520#M1356798</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-26T21:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative Selection Options:</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080521#M1356799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just did step by step what you put and it worked perfect for my scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You solved my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 21:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alternative-selection-options/m-p/6080521#M1356799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T21:40:36Z</dc:date>
    </item>
  </channel>
</rss>

