Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV tree not displaying data sometimes

Former Member
0 Likes
663

Hi everybody

I have created an ALV tree to display data but sometimes the correct data is not getting displayed, the nodes are properly getting displayed though

code below

IF cl_salv_tree=>is_offline( ) EQ if_salv_c_bool_sap=>false.

CREATE OBJECT gr_container

EXPORTING

container_name = 'ALV_CONTAINER'.

ENDIF.

*... §1 create an ALV table

TRY.

cl_salv_tree=>factory(

EXPORTING

r_container = gr_container

IMPORTING

r_salv_tree = gr_tree

CHANGING

t_table = wt_outtab ).

CATCH cx_salv_no_new_data_allowed cx_salv_error.

  • EXIT.

ENDTRY.

PERFORM create_tree.

lr_functions = gr_tree->get_functions( ).

lr_functions->set_all( wk_x ).

lr_columns = gr_tree->get_columns( ).

lr_columns->set_optimize( wk_x ).

gr_tree->display( ).

can anybody help me on this issue please?

thanks for your help

Hi everybody

I have created an ALV tree to display data but sometimes the correct data is not getting displayed, the nodes are properly getting displayed though

code below

IF cl_salv_tree=>is_offline( ) EQ if_salv_c_bool_sap=>false.

CREATE OBJECT gr_container

EXPORTING

container_name = 'ALV_CONTAINER'.

ENDIF.

*... §1 create an ALV table

TRY.

cl_salv_tree=>factory(

EXPORTING

r_container = gr_container

IMPORTING

r_salv_tree = gr_tree

CHANGING

t_table = wt_outtab ).

CATCH cx_salv_no_new_data_allowed cx_salv_error.

  • EXIT.

ENDTRY.

PERFORM create_tree.

lr_functions = gr_tree->get_functions( ).

lr_functions->set_all( wk_x ).

lr_columns = gr_tree->get_columns( ).

lr_columns->set_optimize( wk_x ).

gr_tree->display( ).

can anybody help me on this issue please?

thanks for your help

1 REPLY 1
Read only

0 Likes
543

Hi,

There are no issues in the piece of code you pasted here. Have you checked your code for when your lines are actually being inserted along with the nodes?

best regards,

Asim