<?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: Can we create a pushbutton on the selection screen? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565638#M255611</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;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN PUSHBUTTON POS_HIGH(8) PUSHY&lt;/P&gt;&lt;P&gt;                   USER-COMMAND ABCD.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;PUSHY = 'Command'.&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, 25 Sep 2006 17:11:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-25T17:11:30Z</dc:date>
    <item>
      <title>Can we create a pushbutton on the selection screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565636#M255609</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;Can we create a pushbutton on the selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes please tell me how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 17:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565636#M255609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T17:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a pushbutton on the selection screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565637#M255610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PL check demo_sel_screen_pushbutton&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 17:10:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565637#M255610</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-09-25T17:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a pushbutton on the selection screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565638#M255611</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;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;  SELECTION-SCREEN PUSHBUTTON POS_HIGH(8) PUSHY&lt;/P&gt;&lt;P&gt;                   USER-COMMAND ABCD.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;PUSHY = 'Command'.&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, 25 Sep 2006 17:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565638#M255611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a pushbutton on the selection screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565639#M255612</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 try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN PUSHBUTTON 1(15) P_PP USER-COMMAND PUS MODIF ID GP1.

INITIALIZATION.
P_PP = 'TEST'.

AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'GP1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 17:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565639#M255612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T17:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a pushbutton on the selection screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565640#M255613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/selscr/selscrhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/selscr/selscrhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward pts if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 17:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565640#M255613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T17:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a pushbutton on the selection screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565641#M255614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To create a pushbutton on the selection screen you use the following statement during the definition of the selection screen:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECTION SCREEN PUSHBUTTON [/]pos(len) push &lt;/P&gt;&lt;P&gt;                 USER-COMMAND fcode [MODIF ID key].&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT demo_sel_screen_pushbutton.

TABLES sscrfields.

DATA flag(1) TYPE c.

SELECTION-SCREEN:
  BEGIN OF SCREEN 500 AS WINDOW TITLE tit,
    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,
  END OF SCREEN 500.

AT SELECTION-SCREEN.

  CASE sscrfields.
    WHEN 'CLI1'.
      flag = '1'.
    WHEN 'CLI2'.
      flag = '2'.
    WHEN 'CLI3'.
      flag = '3'.
    WHEN 'CLI4'.
      flag = '4'.
  ENDCASE.

START-OF-SELECTION.

  tit  = 'Four Buttons'.
  but1 = 'Button 1'.
  but3 = 'Button 3'.

  CALL SELECTION-SCREEN 500 STARTING AT 10 10.

  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;See another Program also&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/create-push-buttons-in-application-tool-bar.htm" target="test_blank"&gt;http://www.sap-img.com/abap/create-push-buttons-in-application-tool-bar.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 18:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-we-create-a-pushbutton-on-the-selection-screen/m-p/1565641#M255614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T18:29:40Z</dc:date>
    </item>
  </channel>
</rss>

