<?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 Selection Screen - multiple selection screens!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645794#M287345</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;  There is one requirement where in I want my first selection screen to have 7 radio buttons and on selection of each one , there should be specific selection screens displayed. I know that one way to solve this is create multiple programs and call the program on each selection. But is there a way to do it in the same program. Kindly advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt; Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 02:56:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T02:56:35Z</dc:date>
    <item>
      <title>Selection Screen - multiple selection screens!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645794#M287345</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;  There is one requirement where in I want my first selection screen to have 7 radio buttons and on selection of each one , there should be specific selection screens displayed. I know that one way to solve this is create multiple programs and call the program on each selection. But is there a way to do it in the same program. Kindly advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt; Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 02:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645794#M287345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T02:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - multiple selection screens!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645795#M287346</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;Instead of different screens you can display the fields on the same screen based on the radio button selection...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_RAD1 TYPE XFELD RADIOBUTTON GROUP G1 USER-COMMAND USR&lt;/P&gt;&lt;P&gt;                              DEFAULT 'X',&lt;/P&gt;&lt;P&gt;            P_RAD2 TYPE XFELD RADIOBUTTON GROUP G1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* SCREEN 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_MATNR TYPE MATNR MODIF ID M1,&lt;/P&gt;&lt;P&gt;            P_KUNNR TYPE KUNNR MODIF ID M1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* SCREEN 2.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: P_LIFNR TYPE LIFNR MODIF ID M2,&lt;/P&gt;&lt;P&gt;            P_EBELN TYPE EBELN MODIF ID M2.&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;IF P_RAD1 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* INVISIBLE THE OTHER SCREEN FIELDS.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-GROUP1 = 'M2'.&lt;/P&gt;&lt;P&gt;      SCREEN-INVISIBLE = '1'.&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_RAD2 = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* INVISIBLE THE OTHER SCREEN FIELDS.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF SCREEN-GROUP1 = 'M1'.&lt;/P&gt;&lt;P&gt;      SCREEN-INVISIBLE = '1'.&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any questions..&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>Mon, 27 Nov 2006 03:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645795#M287346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - multiple selection screens!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645796#M287347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can do it in one program. The thing is create all 7 radio buttons and also all the fields revelant to them in invisible mode....So, actually ur selection screen will have 7 radio buttons and all ffields displayed in invisible mode...As ur grouping the 7 radio buttons, make the first set of first radio button as visible when run...&lt;/P&gt;&lt;P&gt;Now, when ur selecting any radio button u have to write logic (though it is big)....&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name = &amp;lt;field-name&amp;gt;.&lt;/P&gt;&lt;P&gt;    &amp;lt;field-name&amp;gt;-invisible = 1.&lt;/P&gt;&lt;P&gt;    &amp;lt;screen-name&amp;gt;-invisible = 1. (Check one of these 2).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  modify screen.&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way u have to write code for all the fields and according to the radio button selected those set of fields must be made visible with in loop of the screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;IF P_RAD1 = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INVISIBLE THE OTHER SCREEN FIELDS.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'M2'.&lt;/P&gt;&lt;P&gt;SCREEN-INVISIBLE = '1'.&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_RAD2 = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INVISIBLE THE OTHER SCREEN FIELDS.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF SCREEN-GROUP1 = 'M1'.&lt;/P&gt;&lt;P&gt;SCREEN-INVISIBLE = '1'.&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;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ramesh Babu Chirumamilla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 03:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645796#M287347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - multiple selection screens!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645797#M287348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sowmya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below example can give you some idea:&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-001.
 parameters: p_rad1 radiobutton group rad1 default 'X' user-command ABC,
             p_rad2 radiobutton group rad1,
             p_rad3 radiobutton group rad1,
             p_rad4 radiobutton group rad1.
selection-screen end of block blk1.
selection-screen begin of block blk2 with frame title text-002.
  parameters: p_inp1(10) type c,
              p_inp2(10) type c,
              p_inp3(10) type c,
              p_inp4(10) type c.
selection-screen end of block blk2.

at selection-screen output.
  loop at screen.
    check screen-name cs 'P_INP'.
    case 'X'.
    when p_rad1.
        if screen-name cs 'P_INP1'.
           screen-active = 1.
        else.
           screen-active = 0.
        endif.
    when p_rad2.
        if screen-name cs 'P_INP2'.
           screen-active = 1.
        else.
           screen-active = 0.
        endif.
    when p_rad3.
        if screen-name cs 'P_INP3'.
           screen-active = 1.
        else.
           screen-active = 0.
        endif.
    when p_rad4.
        if screen-name cs 'P_INP4'.
           screen-active = 1.
        else.
           screen-active = 0.
        endif.
    endcase.
    modify screen.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that with different radio buttons that you select the displayed fields change. You can use the same to suit your requirement. Alternatively, you can create a tabbed block on screen and display accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 03:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645797#M287348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen - multiple selection screens!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645798#M287349</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 did something like that, firs the all radio button has to put it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A  RADIOBUTTON GROUP RADI USER-COMMAND cl_oper,&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;g  RADIOBUTTON GROUP RADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you have to put all the seleccion screen inactive, then when you select any radio button you have to deside wich is selecte and put it active. if you want a complete example send me a mail jose.roberto@astrazeneca.com and ill send you a piece of code to do that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 03:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-multiple-selection-screens/m-p/1645798#M287349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T03:18:54Z</dc:date>
    </item>
  </channel>
</rss>

