2011 Mar 08 5:58 AM
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
2011 Mar 22 9:06 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |