<?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: Error message in cl_gui_column_tree in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353879#M804563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;perhaps this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE node_key TYPE 'S' display like 'E'. " display in "command line"&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;MESSAGE node_key TYPE 'I' display like 'E'. " display in popup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moreover perhaps the F1 Doku for "message" helps ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;olaf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 07:24:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-05T07:24:25Z</dc:date>
    <item>
      <title>Error message in cl_gui_column_tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353876#M804560</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;  I'm trying to create a program (module pool) that should display a column tree. Some nodes has a context menu. What I need is to output an error message if the user click on a context menu choice that is not yet implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I'm using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS lcl_application DEFINITION.

  PUBLIC SECTION.
    METHODS:
      handle_ctx_menu_req
        FOR EVENT node_context_menu_request
        OF cl_gui_column_tree
        IMPORTING node_key
                  menu,

      handle_ctx_menu_sel
        FOR EVENT node_context_menu_select
        OF cl_gui_column_tree
        IMPORTING node_key
                  fcode.

ENDCLASS.

CLASS lcl_application IMPLEMENTATION.

  METHOD handle_ctx_menu_req.
  ...
  ENDMETHOD.

  METHOD handle_ctx_menu_sel.
    CASE fcode.
      WHEN co_display.
      ...
      WHEN co_edit.
        MESSAGE e049.
      WHEN OTHERS.
    ENDCASE.
  ENDMETHOD.

ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that this code stops the application and put the user to the initial menu while what I want is to stay on the tree screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help me please!&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 14:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353876#M804560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T14:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in cl_gui_column_tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353877#M804561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try to use an other message type, e.g. type 'I' :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE 'Function not implemented' TYPE 'I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps, regards&lt;/P&gt;&lt;P&gt;olaf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 15:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353877#M804561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T15:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in cl_gui_column_tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353878#M804562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olaf,&lt;/P&gt;&lt;P&gt;  of course it helps but the result is not exactly the same. I'd like to produce a "real" error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 16:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353878#M804562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-04T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error message in cl_gui_column_tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353879#M804563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;perhaps this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE node_key TYPE 'S' display like 'E'. " display in "command line"&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;MESSAGE node_key TYPE 'I' display like 'E'. " display in popup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moreover perhaps the F1 Doku for "message" helps ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;olaf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 07:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message-in-cl-gui-column-tree/m-p/3353879#M804563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T07:24:25Z</dc:date>
    </item>
  </channel>
</rss>

