Skip to Content
0
Jul 31, 2008 at 10:11 AM

ALV Tree Problem with Checkboxes

19 Views

Hello,

i've got a problem.

I have an ALV-Tree and die ALV-Detaillist of the tree are type checkbox.

That's working correct.

But i want to fill initial data in the checkboxes but the checkbox isnt set.

i've done as followed:

CALL METHOD go_alv_tree->set_table_for_first_display

EXPORTING

  • I_STRUCTURE_NAME =

  • IS_VARIANT =

  • I_SAVE =

i_default = abap_false

is_hierarchy_header = ls_header

  • IS_EXCEPTION_FIELD =

  • IT_SPECIAL_GROUPS =

  • IT_LIST_COMMENTARY =

  • I_LOGO =

  • I_BACKGROUND_ID =

  • IT_TOOLBAR_EXCLUDING =

CHANGING

it_outtab = <go_data_tab>

  • IT_FILTER =

it_fieldcatalog = lt_fcat.

fieldcat are several fields all as checkbox.

Then i get a component of the output structure and set a X.

ASSIGN COMPONENT lv_help_arbpl OF STRUCTURE <go_data_struc>

TO <fs_arbl>.

IF <fs_arbl> IS ASSIGNED.

<fs_arbl> = lc_xfeld.

ENDIF.

CALL METHOD go_alv_tree->add_node

EXPORTING

i_relat_node_key = lv_matnr

i_relationship = cl_gui_column_tree=>relat_last_child

is_outtab_line = <go_data_struc>

is_node_layout = ls_layout

  • IT_ITEM_LAYOUT =

i_node_text = lv_node_text

IMPORTING

e_new_node_key = lv_period

EXCEPTIONS

relat_node_not_found = 1

node_not_found = 2

OTHERS = 3.

in <go_data_struc> the fields which should be set, are set with X.

But after i add all of my nodes and do CALL METHOD p_go_alv_tree->frontend_update, the checkbox is empty but there is an X in the field beside the checkbox.

Thanks in advance.

best regards,

Dennis