IF p_tree IS NOT INITIAL.
CALL METHOD g_container2->set_focus
EXPORTING
control = p_tree.
CALL METHOD p_tree->frontend_update.
* CALL METHOD p_tree->refresh_table_display
* EXCEPTIONS
* program_error = 1
* OTHERS = 2.
ENDIF.
CHECK p_tree IS INITIAL.
* create tree object
CREATE OBJECT p_tree
EXPORTING
parent = g_container2
node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
no_html_header = 'X'
item_selection = 'X'.
DATA lt_fieldcat TYPE lvc_t_fcat.
DATA ls_head TYPE treev_hhdr.
PERFORM get_tree_head USING ls_head.
PERFORM get_tree_fieldcat TABLES lt_fieldcat.
CALL METHOD p_tree->set_table_for_first_display
EXPORTING
is_hierarchy_header = ls_head
i_background_id = 'ALV_BACKGROUND'
CHANGING
it_outtab = gt_template
it_fieldcatalog = lt_fieldcat.
PERFORM add_node USING p_tree.
PERFORM register_tree_events USING p_tree.
SET HANDLER lcl_event_receiver=>on_link_click FOR p_tree.
CALL METHOD g_container2->set_focus
EXPORTING
control = p_tree.
* CALL METHOD p_tree->frontend_update.
찾아보니까
frontend_update 메소드...
refresh_table_display 메소드를 쓰면 된다고 해서...
refresh_table_display 가 private 이라서 쓸 수 없다고 메세지가 뜹니다.
어떻게 해주어야할까요??
에러 메세지는
refresh_table_display is unknown or protected or private.
입니다.
그냥 output table만 refresh 시켜주면 되는데 어떻게하는지를 잘 몰라서요 ^^;;