<?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 abap objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271991#M493596</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; please send me some documents on abap objects...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;ashu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2007 06:29:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-18T06:29:26Z</dc:date>
    <item>
      <title>abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271991#M493596</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; please send me some documents on abap objects...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;ashu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271991#M493596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271992#M493597</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 link for concepts and examples in OOPS&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abapuk.html" target="test_blank"&gt;http://www.henrikfrank.dk/abapuk.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/eg.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/eg.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/syntax.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/syntax.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/index.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/OO/defn.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/OO/defn.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these links&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For funtion module to class&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for classes&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for methods&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for inheritance&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for interfaces&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271992#M493597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271993#M493598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;  check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ale2.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ale2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/idoc_abap.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/idoc_abap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap.html" target="test_blank"&gt;http://www.sappoint.com/abap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc" target="test_blank"&gt;http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419" target="test_blank"&gt;http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.netweaverguru.com/EDI/HTML/IDocBook.htm" target="test_blank"&gt;http://www.netweaverguru.com/EDI/HTML/IDocBook.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/sapedi/index.htm" target="test_blank"&gt;http://www.sapgenie.com/sapedi/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/idoc_sample.html" target="test_blank"&gt;http://www.allsaplinks.com/idoc_sample.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these step-by-step links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e" target="test_blank"&gt;https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271993#M493598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271994#M493599</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;Cockpit to organise the Zdevelopments or related transactions.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Features:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1.	One point of access for related transactions and z developments. &lt;/P&gt;&lt;P&gt;2.	Centralized creation maintenance and display of the help text for the all transactions and zdevelopments. &lt;/P&gt;&lt;P&gt;3.	User dependent view based on the authorization. &lt;/P&gt;&lt;P&gt;4.	Flexible for new transaction to be added to the cockpit. &lt;/P&gt;&lt;P&gt;5.	User friendly. &lt;/P&gt;&lt;P&gt;6.	Internet site can be browsed. &lt;/P&gt;&lt;P&gt;7.	Presentation server applications can be run. &lt;/P&gt;&lt;P&gt;8.	Different related transactions or zdevelopments can be clubbed together under one parent node.&lt;/P&gt;&lt;P&gt;Technical Details: &lt;/P&gt;&lt;P&gt;1.  Define two custom containers one for the transaction tree and the other for help text.&lt;/P&gt;&lt;P&gt; g_custom_container TYPE REF TO cl_gui_custom_container&lt;/P&gt;&lt;P&gt;     g_custom_container_help TYPE REF TO cl_gui_custom_container&lt;/P&gt;&lt;P&gt; 2.  Define reference to column tree class.&lt;/P&gt;&lt;P&gt;     g_tree TYPE REF TO cl_gui_column_tree&lt;/P&gt;&lt;P&gt; 3.  Define reference to the editor class.&lt;/P&gt;&lt;P&gt;    g_editor TYPE REF TO cl_gui_textedit.&lt;/P&gt;&lt;P&gt; 4.  Define reference to the editor class.&lt;/P&gt;&lt;P&gt;    g_editor TYPE REF TO cl_gui_textedit.&lt;/P&gt;&lt;P&gt;  5.  The second custom container is linked to the custom control &amp;#147;EDITOR&amp;#148;.&lt;/P&gt;&lt;P&gt; CREATE OBJECT g_custom_container_help&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      Container name = 'V_HELP'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      Cntl_error = 1&lt;/P&gt;&lt;P&gt;      Cntl_system_error = 2&lt;/P&gt;&lt;P&gt;      Create_error = 3&lt;/P&gt;&lt;P&gt;      Lifetime_error = 4&lt;/P&gt;&lt;P&gt;      Lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;        CREATE OBJECT g_editor EXPORTING parent = g_custom_container_help.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;6.  The first custom container is linked to the custom control &amp;#147;COLUMN            TREE&amp;#148;.&lt;/P&gt;&lt;P&gt; CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      Container name = 'TREE_CONTAINER'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      Cntl_error = 1&lt;/P&gt;&lt;P&gt;      Cntl_system_error = 2&lt;/P&gt;&lt;P&gt;      Create_error = 3&lt;/P&gt;&lt;P&gt;      Lifetime_error = 4&lt;/P&gt;&lt;P&gt;      Lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; CREATE OBJECT g_tree&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      Parent              = g_custom_container&lt;/P&gt;&lt;P&gt;      Node_selection_mode = cl_gui_column_tree=&amp;gt;node_sel_mode_single&lt;/P&gt;&lt;P&gt;      Item_selection = 'X'&lt;/P&gt;&lt;P&gt;      Hierarchy_column_name = 'Column1'&lt;/P&gt;&lt;P&gt;      Hierarchy_header = hierarchy_header&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      Cntl_system_error           = 1&lt;/P&gt;&lt;P&gt;      Create_error                = 2&lt;/P&gt;&lt;P&gt;      Failed                      = 3&lt;/P&gt;&lt;P&gt;      Illegal_node_selection_mode = 4&lt;/P&gt;&lt;P&gt;      Illegal_column_name         = 5&lt;/P&gt;&lt;P&gt;      Lifetime_error              = 6.&lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  7.  Add the second column to the tree, which will contain the icon for help.&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;add column&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      Name                         = 'Column2'&lt;/P&gt;&lt;P&gt;      Width                        = 8&lt;/P&gt;&lt;P&gt;      Header_text                  = 'Help'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      Column_exists                = 1&lt;/P&gt;&lt;P&gt;      Illegal_column_name          = 2&lt;/P&gt;&lt;P&gt;      Too_many_columns             = 3&lt;/P&gt;&lt;P&gt;      Illegal_alignment            = 4&lt;/P&gt;&lt;P&gt;      Different_column_types       = 5&lt;/P&gt;&lt;P&gt;      Cntl_system_error            = 6&lt;/P&gt;&lt;P&gt;      Failed                       = 7&lt;/P&gt;&lt;P&gt;      Predecessor_column_not_found = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;8.  Define the events, which will be passed to the backend.&lt;/P&gt;&lt;P&gt; " Node double click&lt;/P&gt;&lt;P&gt;  Event-eventid = cl_gui_column_tree=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;  Event-appl_event = 'X'. " Process PAI if event occurs&lt;/P&gt;&lt;P&gt;  APPEND event TO events.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; " Item double click&lt;/P&gt;&lt;P&gt;  Event-eventid = cl_gui_column_tree=&amp;gt;eventid_item_double_click.&lt;/P&gt;&lt;P&gt;  Event-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND event TO events.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; " Expand no children&lt;/P&gt;&lt;P&gt;  Event-eventid = cl_gui_column_tree=&amp;gt;eventid_expand_no_children.&lt;/P&gt;&lt;P&gt;  Event-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND event TO events.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; " Link click&lt;/P&gt;&lt;P&gt;  Event-eventid = cl_gui_column_tree=&amp;gt;eventid_link_click.&lt;/P&gt;&lt;P&gt;  Event-appl_event = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND event TO events.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      Events                    = events&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      Cntl_error                = 1&lt;/P&gt;&lt;P&gt;      Cntl_system_error         = 2&lt;/P&gt;&lt;P&gt;      Illegal_event_combination = 3.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&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;  &lt;/P&gt;&lt;P&gt;9.  Add initial parent nodes to the tree control, which is displayed in screen shot 1.&lt;/P&gt;&lt;P&gt;        CALL METHOD g_tree-&amp;gt;add_nodes_and_items&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      Node_table                     = node_table&lt;/P&gt;&lt;P&gt;      Item_table                     = item_table&lt;/P&gt;&lt;P&gt;      Item_table_structure_name      = 'S_NAME'&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      Failed                         = 1&lt;/P&gt;&lt;P&gt;      Cntl_system_error              = 3&lt;/P&gt;&lt;P&gt;      Error_in_tables                = 4&lt;/P&gt;&lt;P&gt;      Dp_error                       = 5&lt;/P&gt;&lt;P&gt;      Table_structure_name_not_found = 6.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;         Node table &amp;amp; item table are filled with the images, text and nodekey for the parent         nodes. &lt;/P&gt;&lt;P&gt;  Node-node_key = 'DWV'.           &lt;/P&gt;&lt;P&gt;  Node-relatkey = 'TRANSACTION'.&lt;/P&gt;&lt;P&gt;  Node-relatship = cl_gui_column_tree=&amp;gt;relat_last_child.&lt;/P&gt;&lt;P&gt;  Node-hidden = ' '.&lt;/P&gt;&lt;P&gt;  Node-disabled = ' '.&lt;/P&gt;&lt;P&gt;  Node-isfolder = 'X'.&lt;/P&gt;&lt;P&gt;  CLEAR node-n_image.&lt;/P&gt;&lt;P&gt;  CLEAR node-exp_image.&lt;/P&gt;&lt;P&gt;  Node-expander = 'X'. " The node is marked with a '+'&lt;/P&gt;&lt;P&gt;  APPEND node TO node_table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Node with key 'DWV'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR item.&lt;/P&gt;&lt;P&gt;  Item-node_key = 'DWV'.&lt;/P&gt;&lt;P&gt;  Item-item_name = 'Column1'.&lt;/P&gt;&lt;P&gt;  Item-class = cl_gui_column_tree=&amp;gt;item_class_text.&lt;/P&gt;&lt;P&gt;  Item-text = 'Vendor Profile Maintenance'.           &lt;/P&gt;&lt;P&gt;  APPEND item TO item_table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CLEAR item.&lt;/P&gt;&lt;P&gt;  Item-node_key = 'DWV'.&lt;/P&gt;&lt;P&gt;  Item-item_name = 'Column2'.     "&lt;/P&gt;&lt;P&gt;  Item-class = cl_gui_column_tree=&amp;gt;item_class_text.&lt;/P&gt;&lt;P&gt;  APPEND item TO item_table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   10. Set the initial screen by expanding the root node Transaction.&lt;/P&gt;&lt;P&gt;  CALL METHOD g_tree-&amp;gt;expand_node&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      Node_key            = 'TRANSACTION'  &lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      Failed              = 1&lt;/P&gt;&lt;P&gt;      Illegal_level_count = 2&lt;/P&gt;&lt;P&gt;      Cntl_system_error   = 3&lt;/P&gt;&lt;P&gt;      Node_not_found      = 4&lt;/P&gt;&lt;P&gt;      Cannot_expand_leaf  = 5.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;          11.  Define the application class to handle the events added in step 8.&lt;/P&gt;&lt;P&gt;CLASS lcl_application DEFINITION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      handle_node_double_click&lt;/P&gt;&lt;P&gt;        FOR EVENT node_double_click&lt;/P&gt;&lt;P&gt;        OF cl_gui_column_tree&lt;/P&gt;&lt;P&gt;        IMPORTING node_key,&lt;/P&gt;&lt;P&gt;      handle_expand_no_children&lt;/P&gt;&lt;P&gt;        FOR EVENT expand_no_children&lt;/P&gt;&lt;P&gt;        OF cl_gui_column_tree&lt;/P&gt;&lt;P&gt;        IMPORTING node_key,&lt;/P&gt;&lt;P&gt;      handle_item_double_click&lt;/P&gt;&lt;P&gt;        FOR EVENT item_double_click&lt;/P&gt;&lt;P&gt;        OF cl_gui_column_tree&lt;/P&gt;&lt;P&gt;        IMPORTING node_key item_name,&lt;/P&gt;&lt;P&gt;      handle_link_click&lt;/P&gt;&lt;P&gt;        FOR EVENT link_click&lt;/P&gt;&lt;P&gt;        OF cl_gui_column_tree&lt;/P&gt;&lt;P&gt;        IMPORTING node_key item_name.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "LCL_APPLICATION DEFINITION&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;&lt;P&gt;CLASS lcl_application IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_node_double_click.&lt;/P&gt;&lt;P&gt;*&amp;amp;--this method handles the node double click event of the tree&lt;/P&gt;&lt;P&gt;*&amp;amp;--control instance&lt;/P&gt;&lt;P&gt;    PERFORM hadle_doubleclick USING node_key.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "HANDLE_NODE_DOUBLE_CLICK&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  METHOD  handle_item_double_click.&lt;/P&gt;&lt;P&gt;*&amp;amp;--this method handles the item double click event of the tree&lt;/P&gt;&lt;P&gt;*&amp;amp;--control instance&lt;/P&gt;&lt;P&gt;    PERFORM hadle_doubleclick USING node_key.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "HANDLE_ITEM_DOUBLE_CLICK&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  METHOD  handle_link_click.&lt;/P&gt;&lt;P&gt;*this method handles the link click event of the tree&lt;/P&gt;&lt;P&gt;*control instance&lt;/P&gt;&lt;P&gt;    PERFORM show_help USING node_key&lt;/P&gt;&lt;P&gt;                            item_name.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "HANDLE_LINK_CLICK&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  METHOD handle_expand_no_children.&lt;/P&gt;&lt;P&gt;    PERFORM expand_no_children USING node_key.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "HANDLE_EXPAND_NO_CHILDREN&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDCLASS.               "LCL_APPLICATION&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;       12. Assign event handlers in the application class to each desired event.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;       SET HANDLER g_application-&amp;gt;handle_node_double_click FOR g_tree.&lt;/P&gt;&lt;P&gt;       SET HANDLER g_application-&amp;gt;handle_item_double_click FOR g_tree.&lt;/P&gt;&lt;P&gt;       SET HANDLER g_application-&amp;gt;handle_expand_no_children FOR g_tree.&lt;/P&gt;&lt;P&gt;SET HANDLER g_application-&amp;gt;handle_link_click FOR g_tree.&lt;/P&gt;&lt;P&gt;13. Write the logic to be performed under the handlers, which needs to be            called when a particular event is triggered.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-objects/m-p/2271994#M493599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-18T06:31:53Z</dc:date>
    </item>
  </channel>
</rss>

