<?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: Regarding button in selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458180#M551303</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;&amp;lt;b&amp;gt;CHECK THIS CODE now it's working&amp;lt;/b&amp;gt;&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 pushbutton /20(10) but1 user-command CLI1.&lt;/P&gt;&lt;P&gt;selection-screen pushbutton /20(10) but2 user-command CLI2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;but1 = 'Button 1'.&lt;/P&gt;&lt;P&gt;but2 = 'Button 2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-ucomm = 'CLI1'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '1'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;elseif sy-ucomm = 'CLI2'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '2'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;if flag = '1'.&lt;/P&gt;&lt;P&gt;write :/'Button 1 was clicked'.&lt;/P&gt;&lt;P&gt;elseif flag = '2'.&lt;/P&gt;&lt;P&gt;write :/'Button 2 was clicked'.&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;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 09:35:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T09:35:35Z</dc:date>
    <item>
      <title>Regarding button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458175#M551298</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;A query...&lt;/P&gt;&lt;P&gt;After clicking the button on the screen, when i press the execute button it should give a display saying the corresponding button i clicked....&lt;/P&gt;&lt;P&gt; But its not working out frnds...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;tables sscrfields.&lt;/P&gt;&lt;P&gt;data flag.&lt;/P&gt;&lt;P&gt;parameters test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen pushbutton /20(10) but1 user-command cli1.&lt;/P&gt;&lt;P&gt;selection-screen pushbutton /20(10) text-020 user-command cli2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;but1 = 'Button 1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen.&lt;/P&gt;&lt;P&gt;if sscrfields-ucomm = 'cli1'.&lt;/P&gt;&lt;P&gt; flag = '1'.&lt;/P&gt;&lt;P&gt;elseif sscrfields-ucomm = 'cli2'.&lt;/P&gt;&lt;P&gt; flag = '2'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;if flag = '1'.&lt;/P&gt;&lt;P&gt; write :/'Button 1 was clicked'.&lt;/P&gt;&lt;P&gt;elseif flag = '2'.&lt;/P&gt;&lt;P&gt; write :/'Button 2 was clicked'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking u all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458175#M551298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T09:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458176#M551299</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;The problem is here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES SSCRFIELDS.
DATA FLAG.
PARAMETERS TEST.

SELECTION-SCREEN PUSHBUTTON /20(10) BUT1 USER-COMMAND CLI1.
SELECTION-SCREEN PUSHBUTTON /20(10) TEXT-020 USER-COMMAND CLI2.

INITIALIZATION.
  BUT1 = 'Button 1'.

AT SELECTION-SCREEN.
  IF SSCRFIELDS-UCOMM = 'CLI1'.  " Change to upper case
    FLAG = '1'.
  ELSEIF SSCRFIELDS-UCOMM = 'CLI2'. " Change to upper case

    FLAG = '2'.
  ENDIF.

START-OF-SELECTION.
  IF FLAG = '1'.
    WRITE :/'Button 1 was clicked'.
  ELSEIF FLAG = '2'.
    WRITE :/'Button 2 was clicked'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VAsanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458176#M551299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458177#M551300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suraj,&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;P&gt;At selection-screen.&lt;/P&gt;&lt;P&gt;if sscrfields-ucomm = &amp;lt;b&amp;gt;'CLI1'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '1'.&lt;/P&gt;&lt;P&gt;elseif sscrfields-ucomm = &amp;lt;b&amp;gt;'CLI2'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '2'.&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;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458177#M551300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458178#M551301</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;At selection-screen.&lt;/P&gt;&lt;P&gt;if sscrfields-ucomm = &amp;lt;b&amp;gt;'CLI1'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '1'.&lt;/P&gt;&lt;P&gt;elseif sscrfields-ucomm = &amp;lt;b&amp;gt;'CLI2'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '2'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458178#M551301</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-26T09:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458179#M551302</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;check this demo report 'demo_sel_screen_pushbutton.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458179#M551302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding button in selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458180#M551303</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;&amp;lt;b&amp;gt;CHECK THIS CODE now it's working&amp;lt;/b&amp;gt;&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 pushbutton /20(10) but1 user-command CLI1.&lt;/P&gt;&lt;P&gt;selection-screen pushbutton /20(10) but2 user-command CLI2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;but1 = 'Button 1'.&lt;/P&gt;&lt;P&gt;but2 = 'Button 2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if sy-ucomm = 'CLI1'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '1'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;elseif sy-ucomm = 'CLI2'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;flag = '2'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;if flag = '1'.&lt;/P&gt;&lt;P&gt;write :/'Button 1 was clicked'.&lt;/P&gt;&lt;P&gt;elseif flag = '2'.&lt;/P&gt;&lt;P&gt;write :/'Button 2 was clicked'.&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;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-button-in-selection-screen/m-p/2458180#M551303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T09:35:35Z</dc:date>
    </item>
  </channel>
</rss>

