<?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: Customization in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customization-in-selection-screen/m-p/6224487#M1379668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS icon.
selection-screen:
    PUSHBUTTON 2(10)  but1 USER-COMMAND cli1,
    PUSHBUTTON 20(30) but2 USER-COMMAND cli2 ,

  BEGIN OF SCREEN 500 TITLE title.
    PARAMETERS : p1 type char10,
                 p2 type i.
  selection-screen:    END OF SCREEN 500,
    BEGIN OF SCREEN 600 TITLE title1.
    PARAMETERS : p3 type char10,
                 p4 type i.
  selection-screen:    END OF SCREEN 600.

AT SELECTION-SCREEN OUTPUT.
  but1 = 'Button 1'.
  but2 = 'Button 2'.
  title  = 'Push button1'.
  title1  = 'Push button2'.
AT SELECTION-SCREEN.
    if sy-ucomm = 'CLI1'.
      CALL SELECTION-SCREEN 500.
    ELSEIF sy-ucomm = 'CLI2'.
      CALL SELECTION-SCREEN 600.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the screen 500 and 600 to come as separate popups then &lt;/P&gt;&lt;P&gt; BEGIN OF SCREEN 600 &lt;STRONG&gt;AS WINDOW&lt;/STRONG&gt; TITLE title1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2009 05:31:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-30T05:31:09Z</dc:date>
    <item>
      <title>Customization in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customization-in-selection-screen/m-p/6224485#M1379666</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 a requirement to customize the selection screen.I have to put a push button in selection.By clicking it a screen or popup should appear from where i could select the the required select options or check boxes or parameters etc.And then the new customised screen should appear to the user.Please guide me how i should approach this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prashant05 on Sep 30, 2009 6:47 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 04:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customization-in-selection-screen/m-p/6224485#M1379666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T04:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Customization in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customization-in-selection-screen/m-p/6224486#M1379667</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;pls refer to the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zdemo_sel_screen_pushbutton.

TABLES sscrfields.

DATA flag(1) TYPE c.

SELECTION-SCREEN:
    BEGIN OF LINE,
      PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
      PUSHBUTTON 12(10) text-020 USER-COMMAND cli2,
    END OF LINE,
    BEGIN OF LINE,
      PUSHBUTTON 2(10) but3 USER-COMMAND cli3,
      PUSHBUTTON 12(10) text-040 USER-COMMAND cli4,
    END OF LINE.

AT SELECTION-SCREEN.

  MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
  CASE sscrfields-ucomm.
    WHEN 'CLI1'.
      flag = '1'.
    WHEN 'CLI2'.
      flag = '2'.
    WHEN 'CLI3'.
      flag = '3'.
    WHEN 'CLI4'.
      flag = '4'.
  ENDCASE.

START-OF-SELECTION.

  but1 = 'Button 1'.
  but3 = 'Button 3'.

  CASE flag.
    WHEN '1'.
      WRITE / 'Button 1 was clicked'.
    WHEN '2'.
      WRITE / 'Button 2 was clicked'.
    WHEN '3'.
      WRITE / 'Button 3 was clicked'.
    WHEN '4'.
      WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
      WRITE / 'No Button was clicked'.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daixiong Jiang on Sep 30, 2009 12:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 04:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customization-in-selection-screen/m-p/6224486#M1379667</guid>
      <dc:creator>daixiong_jiang3</dc:creator>
      <dc:date>2009-09-30T04:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Customization in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customization-in-selection-screen/m-p/6224487#M1379668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS icon.
selection-screen:
    PUSHBUTTON 2(10)  but1 USER-COMMAND cli1,
    PUSHBUTTON 20(30) but2 USER-COMMAND cli2 ,

  BEGIN OF SCREEN 500 TITLE title.
    PARAMETERS : p1 type char10,
                 p2 type i.
  selection-screen:    END OF SCREEN 500,
    BEGIN OF SCREEN 600 TITLE title1.
    PARAMETERS : p3 type char10,
                 p4 type i.
  selection-screen:    END OF SCREEN 600.

AT SELECTION-SCREEN OUTPUT.
  but1 = 'Button 1'.
  but2 = 'Button 2'.
  title  = 'Push button1'.
  title1  = 'Push button2'.
AT SELECTION-SCREEN.
    if sy-ucomm = 'CLI1'.
      CALL SELECTION-SCREEN 500.
    ELSEIF sy-ucomm = 'CLI2'.
      CALL SELECTION-SCREEN 600.
    endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the screen 500 and 600 to come as separate popups then &lt;/P&gt;&lt;P&gt; BEGIN OF SCREEN 600 &lt;STRONG&gt;AS WINDOW&lt;/STRONG&gt; TITLE title1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 05:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customization-in-selection-screen/m-p/6224487#M1379668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T05:31:09Z</dc:date>
    </item>
  </channel>
</rss>

