<?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: At selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629309#M1090263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nambiar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  At user-command is a list event for interactive list, so for selection screen you can proceesd liker this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen pushbutton 10(20) text-001 user-command engl.
selection-screen pushbutton 50(20) text-002 user-command germ.

at selection-screen.
*at user-command.
case sy-ucomm.

when 'ENGL'.
Message 'English' type 'I'.
when 'GERM'.
Message 'German' type 'I'.
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2008 09:37:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-21T09:37:16Z</dc:date>
    <item>
      <title>At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629308#M1090262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following snippet mentioned below as been taken from a book&lt;/P&gt;&lt;P&gt;but doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen pushbutton 10(20) text-001 user-command engl.&lt;/P&gt;&lt;P&gt;selection-screen pushbutton 50(20) text-002 user-command germ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;at user-command.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'engl'.&lt;/P&gt;&lt;P&gt;lang-engl = 'Y'.&lt;/P&gt;&lt;P&gt;write:/ 'English'.&lt;/P&gt;&lt;P&gt;when 'germ'.&lt;/P&gt;&lt;P&gt;lang-german = 'Y'.&lt;/P&gt;&lt;P&gt;write:/ 'German'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the push button is pressed it doesn't triggers the user command and also doesn't write the contents as per the case selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody has a better code or a sample to explain this better&lt;/P&gt;&lt;P&gt;ie AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjith Nambiar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 09:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629308#M1090262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629309#M1090263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nambiar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  At user-command is a list event for interactive list, so for selection screen you can proceesd liker this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen pushbutton 10(20) text-001 user-command engl.
selection-screen pushbutton 50(20) text-002 user-command germ.

at selection-screen.
*at user-command.
case sy-ucomm.

when 'ENGL'.
Message 'English' type 'I'.
when 'GERM'.
Message 'German' type 'I'.
endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 09:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629309#M1090263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629310#M1090264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which book was this example given in ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP editor write AT USER-COMMAND and press F1. You can see an example given for AT USER-COMMAND&lt;/P&gt;&lt;P&gt;&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 09:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629310#M1090264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T09:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629311#M1090265</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;    one thing keep in yor mind in  in single cotations( 'engl' IT'S a worg. 'ENGL' ) we have to keep  in CAPITAL LETTERS only&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 &amp;amp; Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;swamy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 09:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629311#M1090265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T09:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629312#M1090266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Ranjith nambiar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 10:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629312#M1090266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T10:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629313#M1090267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    You cant use At User Command in the events which are used on Selection screen as At User Command event is a List Event.&lt;/P&gt;&lt;P&gt;It means you can use  At User-Command event on the output screen of the report (Same as we use At Line Selection Event) but you cant use it on the selection screen itself.&lt;/P&gt;&lt;P&gt;&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;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2008 13:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629313#M1090267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-21T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629314#M1090268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;it may solve u r problem&lt;/P&gt;&lt;P&gt;&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(1) TYPE c.&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;  MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.&lt;/P&gt;&lt;P&gt;  CASE sscrfields-ucomm.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; but2 = 'Button 2'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  but3 = 'Button 3'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; but4 = 'Button 4'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2008 08:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629314#M1090268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-22T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: At selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629315#M1090269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 09:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-selection-screen/m-p/4629315#M1090269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T09:12:12Z</dc:date>
    </item>
  </channel>
</rss>

