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

Container/ALV cannot be refreshed

b_deterd2
Active Contributor
0 Likes
1,172

Hi,

I have one container with a splitter to split the container in :

container1

container2.

In both containers I show an ALV (CL_SALV_TABLE).

I want to refresh the table of container2 (ALV2) when I click on a button in container1 (ALV1).

The first time the ALV2 is shown but then it is not getting new data (no refresh).

Hope i make myself clear.

Any input will be appreciated.

regards,

bert

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,109

Hi,

Try this

data: gr_selections type ref to cl_salv_selections,

gt_rows type salv_t_row.

refresh : gt_rows. " clear out selections

clear : gt_rows.

gr_selections = gr_table->get_selections( ).

gr_selections->set_selected_rows( gt_rows ).

Regards,

Raj.

Hi,

Try this

data: gr_selections type ref to cl_salv_selections,

gt_rows type salv_t_row.

refresh : gt_rows. " clear out selections

clear : gt_rows.

gr_selections = gr_table->get_selections( ).

gr_selections->set_selected_rows( gt_rows ).

Regards,

Raj.

4 REPLIES 4
Read only

Former Member
0 Likes
1,110

Hi,

Try this

data: gr_selections type ref to cl_salv_selections,

gt_rows type salv_t_row.

refresh : gt_rows. " clear out selections

clear : gt_rows.

gr_selections = gr_table->get_selections( ).

gr_selections->set_selected_rows( gt_rows ).

Regards,

Raj.

Read only

Former Member
0 Likes
1,109

i_callback_user_command = 'USER_COMMAND'

...

FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.

case UCOMM.

when '&IC1'. "this is for double click.

READ TABLE it_idoc INDEX selfield-tabindex.

SET PARAMETER ID 'DCN' FIELD it_idoc-docnum.

SUBMIT RSEIDOC2 WITH DOCNUM = it_idoc-docnum

WITH CREDAT = It_idoc-credat AND RETURN.

selfield-refresh = 'X'.

ENDCASE.

Read only

Former Member
0 Likes
1,109

You have one method in cl-gui-alv-grid...which is REFRESH_TABLE_DISPLAY.

Regards.

Dara.

Read only

0 Likes
1,109

Hi,

Thanks for answering but i am using cl_salv_table and not cl_gui_alv_grid.

In cl_salv_table i already use o_table->refresh( ).

I think the problem is in the container. It seems persistent in keeping the old ALV and data.

Regards,

Bert