<?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: Menu in Selection Screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798848#M40708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this code, would not work. It would not be possible to easily mix Selection Screen events and List events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change your Function Code to 'ONLI', it will go to start-of-selection, but for any other Function Code, I doubt, it will go to the start-of-selection event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2004 04:57:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-12-08T04:57:00Z</dc:date>
    <item>
      <title>Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798842#M40702</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;
  &lt;P&gt; How can i attach a menu in my selection scren . &lt;/P&gt;
  &lt;P&gt;i have set the pf status in the &lt;/P&gt;
  &lt;P&gt; at selection-screen output event&lt;/P&gt;
  &lt;P&gt;, tough the menu appears , but i am not able to use it as the sy-ucomm is not set equal to the value of the menu option when i click the menu option.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;arun&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2004 13:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798842#M40702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-07T13:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798843#M40703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A little confused here. As your question is "How can I attach a menu in my selection screen" and below , you mention, that you have attached the menu, but not able to get the function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, let us know, whether the menu that you see in the selection screen is the same menu that you have set in the PF-STATUS. Also, where have you set the PF-STATUS, under which event ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also post your code ? (or do you want us to post a code ? )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.
 SET PF-STATUS 'ABCD' 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double check, whether you have attached a function code to all the new functions(menu items) entered in the PF-STATUS. Also check whether the PF-STATUS is activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all the above steps are done properly(and if I have not overlooked any steps), I think the selection screen should work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have found the answer, do share it with us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 13:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798843#M40703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-07T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798844#M40704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;   Yes the menu that i have on the selection screen is same as that which i set in PF-STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the event is at AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will just lliustrate my problem :&lt;/P&gt;&lt;P&gt;i have a menu with 2options&lt;/P&gt;&lt;P&gt;Display : DIS&lt;/P&gt;&lt;P&gt;Exit    : EXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EACH MENU OPTION IS ATTACHED WITH ITS FUNCTION CODE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now IN THE SELECTION SCREEN WHEN I GIVE THE INPUT AND CLICK THE Display option , SY-UCOMM must be set equal to DIS , but when i debug my program no value is assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 14:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798844#M40704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-07T14:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798845#M40705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may occur if the type for your function (i.e. 'DIS') is NOT &amp;lt;b&amp;gt;"Application Function"&amp;lt;/b&amp;gt; (i.e. = space)? You can see this at GUI status maintenance screen when you double click the function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May have you cleaned sy-ucomm before the point you stop for break-point? &lt;/P&gt;&lt;P&gt;Look also at the content of &amp;lt;b&amp;gt;"SSCRFIELDS-ucomm"&amp;lt;/b&amp;gt;. It shoul also contain the function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2004 19:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798845#M40705</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-12-07T19:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798846#M40706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wrote this program(first thing in the morning) and it worked perfectly fine. I believe, you are checking your sy-ucomm in &lt;/P&gt;&lt;P&gt;a) &amp;lt;b&amp;gt;AT USER-COMMAND&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;b) &amp;lt;b&amp;gt;START-OF-SELECTION&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;c) &amp;lt;b&amp;gt;END-OF-SELECTION&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the reasons, why sy-ucomm will not be present, here, is these events are for the list and not for the selection-screen. So you need to check it in the event:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT SELECTION-SCREEN&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK BLK_001.
parameters: p_lifnr type lfa1-lifnr.
SELECTION-SCREEN END OF BLOCK BLK_001.

AT SELECTION-SCREEN OUTPUT.
SET PF-STATUS 'PFST'.

AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'MENU1'.
  message i184(bctrain) with 'YAY its working'.
ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. - If this works, make sure you mark the question as answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 03:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798846#M40706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T03:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798847#M40707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;   The option is working , but my requiremet is that based on the option selected i want to display a list. Now when i debug it the start-of-selection event is not executed.&lt;/P&gt;&lt;P&gt;My partial code is attached &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  set pf-status 'TEST'.  " My Menu&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 SY-UCOMM.&lt;/P&gt;&lt;P&gt;   WHEN '0002'.&lt;/P&gt;&lt;P&gt;   perform basic_list.  " Function to populate an &lt;/P&gt;&lt;P&gt;                          internal table&lt;/P&gt;&lt;P&gt;   test1 = '0002'.  &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;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if test1 = '0002'.&lt;/P&gt;&lt;P&gt;   perform print1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly look into the code and suggest a way out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 04:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798847#M40707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T04:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798848#M40708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this code, would not work. It would not be possible to easily mix Selection Screen events and List events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you change your Function Code to 'ONLI', it will go to start-of-selection, but for any other Function Code, I doubt, it will go to the start-of-selection event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 04:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798848#M40708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T04:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Menu in Selection Screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798849#M40709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main problem, as I see it is the use of the SY-UCOMM value in your program to catch the function-code. In all selection-screen processing, you are to use SSCRFIELDS structure defined in the ABAP dictionary. There is a field called UCOMM in this structure which you are supposed to use for selection-screen PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, refer to the following link in the SAP Online documentation :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's another post on SDN where I have explained about the usage of SSCRFIELDS.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="185370"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember you would have to declare the SSCRFIELDS structure in your program with a tables statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;====================================&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

tables sscrfields.

data: ..........
      ..........

parameters: ........
            ........

AT SELECTION-SCREEN OUTPUT.
  set pf-status 'TEST'


AT SELECTION-SCREEN.
  case sscrfields-ucomm.
    when 'DIS'.
      perform display.
    when 'EXT'.
      perform exit_program.
  endcase.

START-OF-SELECTION.
 
&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;Hope I have struck the right note. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. if this solves your problem, don't forget to reward the points &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 06:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-in-selection-screen/m-p/798849#M40709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T06:11:59Z</dc:date>
    </item>
  </channel>
</rss>

