<?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: Selection-screen pushbutton in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644514#M286863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I tried that one also, but its not coming, subroutines r not working, and even if i give the messages also its not working, plz give me the correct code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 10:54:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T10:54:12Z</dc:date>
    <item>
      <title>Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644511#M286860</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;Just want to know abt selection-screen pushbutton,&lt;/P&gt;&lt;P&gt;am using one pushbutton in selection screen and given name as execute, if i click on this execute pushbutton one perform statement has to execute, i had written the code as AT Selection-Screen.&lt;/P&gt;&lt;P&gt;                 case sy-ucomm.&lt;/P&gt;&lt;P&gt;                 when 'pbutt1'.   (pbutt1 is a pushbutton)&lt;/P&gt;&lt;P&gt;                 perform subroutine1.&lt;/P&gt;&lt;P&gt;                 when 'pbutt2'.&lt;/P&gt;&lt;P&gt;                 perform subroutine2.&lt;/P&gt;&lt;P&gt;                 endcase.&lt;/P&gt;&lt;P&gt;Frnds, but its not working,  can any body send me Correct code ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BALU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644511#M286860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644512#M286861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen pushbutton 5(5) push user-command push1.&lt;/P&gt;&lt;P&gt;selection-screen pushbutton 20(5) push1 user-command push2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'PUSH1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'PUSH2'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644512#M286861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644513#M286862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES sscrfields.
 
SELECTION-SCREEN: 
  BEGIN OF SCREEN 500 AS WINDOW TITLE title, 
    PUSHBUTTON 2(10)  but1 USER-COMMAND cli1, 
    PUSHBUTTON 12(30) but2 USER-COMMAND cli2 
                           VISIBLE LENGTH 10, 
  END OF SCREEN 500. 
 
AT SELECTION-SCREEN. 
  CASE sscrfields. 
    WHEN 'CLI1'. 
      your code......
    WHEN 'CLI2'. 
     perform-----
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644513#M286862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644514#M286863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I tried that one also, but its not coming, subroutines r not working, and even if i give the messages also its not working, plz give me the correct code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644514#M286863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644515#M286864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer standard program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_SEL_SCREEN_FUNCTION_KEY&lt;/P&gt;&lt;P&gt;DEMO_SEL_SCREEN_PUSHBUTTON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644515#M286864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644516#M286865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN PUSHBUTTON /15(20) button1 USER-COMMAND EXEC1.
SELECTION-SCREEN PUSHBUTTON /15(20) button2 USER-COMMAND EXEC2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can initialize the texts for the push-buttons at INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CONCATENATE icon_green_light
              'Button 1'(029) INTO button1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You can select the icon if needed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION SCREEN.
  CASE sscrfields.
    WHEN 'EXEC1'.
       perform subroutine1.
    WHEN 'EXCE2'.
       perform subroutine2.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644516#M286865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644517#M286866</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;Refer the demo example:&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;demo_sel_screen_pushbutton&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;The event that is triggered is the very familiar " at selection-screen."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ypra_sample60. .

INCLUDE &amp;lt;icon&amp;gt;.

DATA: ls_icon(14).


SELECTION-SCREEN:
BEGIN OF BLOCK b3 WITH FRAME,
BEGIN OF LINE,
COMMENT 1(32) text-001,
PUSHBUTTON 33(10) pushy USER-COMMAND upload,
END OF LINE,
END OF BLOCK b3.

INITIALIZATION.
CONCATENATE icon_export text-002 INTO ls_icon.
MOVE ls_icon TO pushy.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here text-001 = Index and Quotations Upload,&lt;/P&gt;&lt;P&gt;text-002 = Upload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the user presses this button selection screen event will triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644517#M286866</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-13T11:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644518#M286867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this example and use accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT DEMO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SSCRFIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FLAG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN:&lt;/P&gt;&lt;P&gt;  BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,&lt;/P&gt;&lt;P&gt;    BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,&lt;/P&gt;&lt;P&gt;    END OF LINE,&lt;/P&gt;&lt;P&gt;    BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,&lt;/P&gt;&lt;P&gt;      PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,&lt;/P&gt;&lt;P&gt;    END OF LINE,&lt;/P&gt;&lt;P&gt;  END OF SCREEN 500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE SSCRFIELDS.&lt;/P&gt;&lt;P&gt;    WHEN 'CLI1'.&lt;/P&gt;&lt;P&gt;      FLAG = '1'.&lt;/P&gt;&lt;P&gt;    WHEN 'CLI2'.&lt;/P&gt;&lt;P&gt;      FLAG = '2'.&lt;/P&gt;&lt;P&gt;    WHEN 'CLI3'.&lt;/P&gt;&lt;P&gt;      FLAG = '3'.&lt;/P&gt;&lt;P&gt;    WHEN 'CLI4'.&lt;/P&gt;&lt;P&gt;      FLAG = '4'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TIT  = 'Four Buttons'.&lt;/P&gt;&lt;P&gt;  BUT1 = 'Button 1'.&lt;/P&gt;&lt;P&gt;  BUT3 = 'Button 3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL SELECTION-SCREEN 500 STARTING AT 10 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE FLAG.&lt;/P&gt;&lt;P&gt;    WHEN '1'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 1 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN '2'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 2 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN '3'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 3 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN '4'.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button 4 was clicked'.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;      WRITE / 'No Button was clicked'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&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;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644518#M286867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644519#M286868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the capital letter and small letter also please use capital letter for defining user-command and case statement also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen pushbutton 5(5) push user-command PUSH1&lt;/P&gt;&lt;P&gt;selection-screen pushbutton 20(5) push1 user-command PUSH2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'PUSH1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'PUSH2'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644519#M286868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Selection-screen pushbutton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644520#M286869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;tables: sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT Selection-Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case &amp;lt;b&amp;gt;sscrfields.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;when 'pbutt1'. (pbutt1 is a pushbutton)&lt;/P&gt;&lt;P&gt;perform subroutine1.&lt;/P&gt;&lt;P&gt;when 'pbutt2'.&lt;/P&gt;&lt;P&gt;perform subroutine2.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-pushbutton/m-p/1644520#M286869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:08:18Z</dc:date>
    </item>
  </channel>
</rss>

