<?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: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669161#M616113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALV Demo program&lt;/P&gt;&lt;P&gt;BCALV_DEMO_HTML &lt;/P&gt;&lt;P&gt;BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode &lt;/P&gt;&lt;P&gt;BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode &lt;/P&gt;&lt;P&gt;BCALV_GRID_DEMO Simple ALV Control Call Demo Program &lt;/P&gt;&lt;P&gt;BCALV_TREE_DEMO Demo for ALV tree control &lt;/P&gt;&lt;P&gt;BCALV_TREE_SIMPLE_DEMO &lt;/P&gt;&lt;P&gt;BC_ALV_DEMO_HTML_D0100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 05:47:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-14T05:47:10Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669160#M616112</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;I am using class CL_GUI_COLUMN_TREE and attempt to establish an item of a column like editable in &amp;#147;the item_table&amp;#148; table of the type mtreeitm. &lt;/P&gt;&lt;P&gt;I have tried with &amp;#147;the editable&amp;#148; field of this table and with method ITEM_SET_EDITABLE, but with both it gives dump me. &lt;/P&gt;&lt;P&gt;Item_class of this item is item_class_text. &lt;/P&gt;&lt;P&gt;Hay some way to cause that this item is editable? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669160#M616112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669161#M616113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALV Demo program&lt;/P&gt;&lt;P&gt;BCALV_DEMO_HTML &lt;/P&gt;&lt;P&gt;BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode &lt;/P&gt;&lt;P&gt;BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode &lt;/P&gt;&lt;P&gt;BCALV_GRID_DEMO Simple ALV Control Call Demo Program &lt;/P&gt;&lt;P&gt;BCALV_TREE_DEMO Demo for ALV tree control &lt;/P&gt;&lt;P&gt;BCALV_TREE_SIMPLE_DEMO &lt;/P&gt;&lt;P&gt;BC_ALV_DEMO_HTML_D0100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669161#M616113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669162#M616114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None of these examples shows how to make a field editable in ALV tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone pls help with an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 05:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669162#M616114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T05:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669163#M616115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Constants *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_me like trdir-cnam value 'VNDOVV',&lt;/P&gt;&lt;P&gt;c_myurl type scarr-url value&lt;/P&gt;&lt;P&gt;'http://www.brainbench.com/transcript.jsp?pid=147699',&lt;/P&gt;&lt;P&gt;c_width type i value 260,&lt;/P&gt;&lt;P&gt;c_height type i value 130.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Types *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_pgm,&lt;/P&gt;&lt;P&gt;year(4) type c,&lt;/P&gt;&lt;P&gt;name like trdir-name,&lt;/P&gt;&lt;P&gt;end of t_pgm,&lt;/P&gt;&lt;P&gt;begin of t_pgmkey,&lt;/P&gt;&lt;P&gt;id type i,&lt;/P&gt;&lt;P&gt;name like trdir-name,&lt;/P&gt;&lt;P&gt;end of t_pgmkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_pgmkey type table of t_pgmkey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Classes *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Definitions *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class screen_init definition create private.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;class-methods init_screen returning value(this)&lt;/P&gt;&lt;P&gt;type ref to screen_init.&lt;/P&gt;&lt;P&gt;methods constructor.&lt;/P&gt;&lt;P&gt;private section.&lt;/P&gt;&lt;P&gt;class-data a_id type i.&lt;/P&gt;&lt;P&gt;data: splitter_h type ref to cl_gui_splitter_container,&lt;/P&gt;&lt;P&gt;splitter_v type ref to cl_gui_splitter_container,&lt;/P&gt;&lt;P&gt;picture type ref to cl_gui_picture,&lt;/P&gt;&lt;P&gt;tree type ref to cl_gui_simple_tree.&lt;/P&gt;&lt;P&gt;methods: fill_tree,&lt;/P&gt;&lt;P&gt;fill_picture.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class screen_handler definition.&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;methods: constructor importing container&lt;/P&gt;&lt;P&gt;type ref to cl_gui_container,&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_simple_tree&lt;/P&gt;&lt;P&gt;importing node_key,&lt;/P&gt;&lt;P&gt;handle_picture_double_click&lt;/P&gt;&lt;P&gt;for event picture_dblclick&lt;/P&gt;&lt;P&gt;of cl_gui_picture.&lt;/P&gt;&lt;P&gt;private section.&lt;/P&gt;&lt;P&gt;data: html_viewer type ref to cl_gui_html_viewer,&lt;/P&gt;&lt;P&gt;editor type ref to cl_gui_textedit.&lt;/P&gt;&lt;P&gt;methods: fill_html,&lt;/P&gt;&lt;P&gt;fill_src importing programid type trdir-name.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Implementations *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class screen_init implementation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method init_screen.&lt;/P&gt;&lt;P&gt;data screen type ref to screen_init.&lt;/P&gt;&lt;P&gt;create object screen.&lt;/P&gt;&lt;P&gt;this = screen.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method constructor.&lt;/P&gt;&lt;P&gt;data: events type cntl_simple_events,&lt;/P&gt;&lt;P&gt;event like line of events,&lt;/P&gt;&lt;P&gt;event_handler type ref to screen_handler,&lt;/P&gt;&lt;P&gt;container_left type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;container_right type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;container_top type ref to cl_gui_container,&lt;/P&gt;&lt;P&gt;container_bottom type ref to cl_gui_container.&lt;/P&gt;&lt;P&gt;create object splitter_h&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;parent = cl_gui_container=&amp;gt;screen0&lt;/P&gt;&lt;P&gt;rows = 1&lt;/P&gt;&lt;P&gt;columns = 2.&lt;/P&gt;&lt;P&gt;call method splitter_h-&amp;gt;set_border&lt;/P&gt;&lt;P&gt;exporting border = cl_gui_cfw=&amp;gt;false.&lt;/P&gt;&lt;P&gt;call method splitter_h-&amp;gt;set_column_mode&lt;/P&gt;&lt;P&gt;exporting mode = splitter_h-&amp;gt;mode_absolute.&lt;/P&gt;&lt;P&gt;call method splitter_h-&amp;gt;set_column_width&lt;/P&gt;&lt;P&gt;exporting id = 1&lt;/P&gt;&lt;P&gt;width = c_width.&lt;/P&gt;&lt;P&gt;container_left = splitter_h-&amp;gt;get_container( row = 1 column = 1 ).&lt;/P&gt;&lt;P&gt;container_right = splitter_h-&amp;gt;get_container( row = 1 column = 2 ).&lt;/P&gt;&lt;P&gt;create object splitter_v&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;parent = container_left&lt;/P&gt;&lt;P&gt;rows = 2&lt;/P&gt;&lt;P&gt;columns = 1.&lt;/P&gt;&lt;P&gt;call method splitter_v-&amp;gt;set_border&lt;/P&gt;&lt;P&gt;exporting border = cl_gui_cfw=&amp;gt;false.&lt;/P&gt;&lt;P&gt;call method splitter_v-&amp;gt;set_row_mode&lt;/P&gt;&lt;P&gt;exporting mode = splitter_v-&amp;gt;mode_absolute.&lt;/P&gt;&lt;P&gt;call method splitter_v-&amp;gt;set_row_height&lt;/P&gt;&lt;P&gt;exporting id = 1&lt;/P&gt;&lt;P&gt;height = c_height.&lt;/P&gt;&lt;P&gt;container_top = splitter_v-&amp;gt;get_container( row = 1 column = 1 ).&lt;/P&gt;&lt;P&gt;container_bottom = splitter_v-&amp;gt;get_container( row = 2 column = 1 ).&lt;/P&gt;&lt;P&gt;create object picture&lt;/P&gt;&lt;P&gt;exporting parent = container_top.&lt;/P&gt;&lt;P&gt;create object tree&lt;/P&gt;&lt;P&gt;exporting parent = container_bottom&lt;/P&gt;&lt;P&gt;node_selection_mode =&lt;/P&gt;&lt;P&gt;cl_gui_simple_tree=&amp;gt;node_sel_mode_single.&lt;/P&gt;&lt;P&gt;create object event_handler&lt;/P&gt;&lt;P&gt;exporting container = container_right.&lt;/P&gt;&lt;P&gt;event-eventid = cl_gui_simple_tree=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;event-appl_event = ' '. "system event, does not trigger PAI&lt;/P&gt;&lt;P&gt;append event to events.&lt;/P&gt;&lt;P&gt;call method tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;exporting events = events.&lt;/P&gt;&lt;P&gt;clear: event, events[].&lt;/P&gt;&lt;P&gt;event-eventid = cl_gui_picture=&amp;gt;eventid_picture_dblclick.&lt;/P&gt;&lt;P&gt;event-appl_event = ' '. "system event, does not trigger PAI&lt;/P&gt;&lt;P&gt;append event to events.&lt;/P&gt;&lt;P&gt;call method picture-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;exporting events = events.&lt;/P&gt;&lt;P&gt;set handler: event_handler-&amp;gt;handle_node_double_click for tree,&lt;/P&gt;&lt;P&gt;event_handler-&amp;gt;handle_picture_double_click for picture.&lt;/P&gt;&lt;P&gt;call method: me-&amp;gt;fill_picture,&lt;/P&gt;&lt;P&gt;me-&amp;gt;fill_tree.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method fill_picture.&lt;/P&gt;&lt;P&gt;call method:&lt;/P&gt;&lt;P&gt;picture-&amp;gt;load_picture_from_sap_icons exporting icon = '@J4@',&lt;/P&gt;&lt;P&gt;picture-&amp;gt;set_display_mode&lt;/P&gt;&lt;P&gt;exporting display_mode = picture-&amp;gt;display_mode_fit_center.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method fill_tree.&lt;/P&gt;&lt;P&gt;data: node_table type table of abdemonode,&lt;/P&gt;&lt;P&gt;node type abdemonode,&lt;/P&gt;&lt;P&gt;w_pgm type t_pgm,&lt;/P&gt;&lt;P&gt;w_cdat type rdir_cdate,&lt;/P&gt;&lt;P&gt;it_pgm type table of t_pgm,&lt;/P&gt;&lt;P&gt;w_pgmkey type t_pgmkey.&lt;/P&gt;&lt;P&gt;clear: a_id, it_pgmkey[].&lt;/P&gt;&lt;P&gt;select distinct name cdat from trdir into (w_pgm-name, w_cdat)&lt;/P&gt;&lt;P&gt;where cnam = c_me.&lt;/P&gt;&lt;P&gt;w_pgm-year = w_cdat(4).&lt;/P&gt;&lt;P&gt;append w_pgm to it_pgm.&lt;/P&gt;&lt;P&gt;clear w_pgm.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;sort it_pgm.&lt;/P&gt;&lt;P&gt;node-hidden = ' '. " All nodes are visible,&lt;/P&gt;&lt;P&gt;node-disabled = ' '. " selectable,&lt;/P&gt;&lt;P&gt;node-isfolder = 'X'. " a folder,&lt;/P&gt;&lt;P&gt;node-expander = ' '. " have no '+' sign for expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_pgm into w_pgm.&lt;/P&gt;&lt;P&gt;at new year.&lt;/P&gt;&lt;P&gt;node-node_key = w_pgm-year.&lt;/P&gt;&lt;P&gt;clear node-relatkey.&lt;/P&gt;&lt;P&gt;clear node-relatship.&lt;/P&gt;&lt;P&gt;node-text = w_pgm-year.&lt;/P&gt;&lt;P&gt;node-n_image = ' '.&lt;/P&gt;&lt;P&gt;node-exp_image = ' '.&lt;/P&gt;&lt;P&gt;append node to node_table.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;at new name.&lt;/P&gt;&lt;P&gt;add 1 to a_id.&lt;/P&gt;&lt;P&gt;node-node_key = w_pgmkey-id = a_id.&lt;/P&gt;&lt;P&gt;w_pgmkey-name = w_pgm-name.&lt;/P&gt;&lt;P&gt;node-relatkey = w_pgm-year.&lt;/P&gt;&lt;P&gt;node-relatship = cl_gui_simple_tree=&amp;gt;relat_last_child.&lt;/P&gt;&lt;P&gt;node-text = w_pgm-name.&lt;/P&gt;&lt;P&gt;node-n_image = '@0P@'.&lt;/P&gt;&lt;P&gt;node-exp_image = '@0P@'.&lt;/P&gt;&lt;P&gt;append w_pgmkey to it_pgmkey.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;append node to node_table.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;call method tree-&amp;gt;add_nodes&lt;/P&gt;&lt;P&gt;exporting table_structure_name = 'ABDEMONODE'&lt;/P&gt;&lt;P&gt;node_table = node_table.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class screen_handler implementation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method constructor.&lt;/P&gt;&lt;P&gt;create object: html_viewer exporting parent = container,&lt;/P&gt;&lt;P&gt;editor exporting parent = container&lt;/P&gt;&lt;P&gt;wordwrap_mode =&lt;/P&gt;&lt;P&gt;cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;/P&gt;&lt;P&gt;wordwrap_position = 72.&lt;/P&gt;&lt;P&gt;call method: fill_html,&lt;/P&gt;&lt;P&gt;editor-&amp;gt;set_readonly_mode exporting readonly_mode = 1.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method handle_node_double_click.&lt;/P&gt;&lt;P&gt;data: w_name type programm,&lt;/P&gt;&lt;P&gt;w_id type i,&lt;/P&gt;&lt;P&gt;w_year(4) type c,&lt;/P&gt;&lt;P&gt;w_pgmkey type t_pgmkey.&lt;/P&gt;&lt;P&gt;w_name = node_key+4.&lt;/P&gt;&lt;P&gt;w_id = w_name.&lt;/P&gt;&lt;P&gt;clear w_name.&lt;/P&gt;&lt;P&gt;read table it_pgmkey into w_pgmkey with key id = w_id&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;w_name = w_pgmkey-name.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;w_year = node_key(4).&lt;/P&gt;&lt;P&gt;if w_name is initial.&lt;/P&gt;&lt;P&gt;call method: fill_html,&lt;/P&gt;&lt;P&gt;html_viewer-&amp;gt;set_visible exporting visible = 'X',&lt;/P&gt;&lt;P&gt;editor-&amp;gt;set_visible exporting visible = ' '.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;call method: fill_src exporting programid = w_name,&lt;/P&gt;&lt;P&gt;editor-&amp;gt;set_visible exporting visible = 'X',&lt;/P&gt;&lt;P&gt;html_viewer-&amp;gt;set_visible exporting visible = ' '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method handle_picture_double_click.&lt;/P&gt;&lt;P&gt;call method: fill_html,&lt;/P&gt;&lt;P&gt;html_viewer-&amp;gt;set_visible exporting visible = 'X',&lt;/P&gt;&lt;P&gt;editor-&amp;gt;set_visible exporting visible = ' '.&lt;/P&gt;&lt;P&gt;call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method fill_html.&lt;/P&gt;&lt;P&gt;call method html_viewer-&amp;gt;show_url exporting url = c_myurl.&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method fill_src.&lt;/P&gt;&lt;P&gt;types t_line(72) type c.&lt;/P&gt;&lt;P&gt;data src type table of t_line.&lt;/P&gt;&lt;P&gt;read report programid into src.&lt;/P&gt;&lt;P&gt;call method: editor-&amp;gt;delete_text,&lt;/P&gt;&lt;P&gt;editor-&amp;gt;set_text_as_r3table exporting table = src[].&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data this_screen type ref to screen_init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Program execution *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load-of-program.&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dialog Modules PBO *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;P&gt;set pf-status 'SCREEN_100'.&lt;/P&gt;&lt;P&gt;set titlebar 'TIT_100'.&lt;/P&gt;&lt;P&gt;this_screen = screen_init=&amp;gt;init_screen( ).&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dialog Modules PAI *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module cancel input.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for methods of handling events in class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5ecd2fe11d2b467006094192fe3/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 06:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2669163#M616115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T06:03:25Z</dc:date>
    </item>
  </channel>
</rss>

