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

Data is not getting refreshed

Former Member
0 Likes
386

Hi All,

I have created a program, in this program I am working on the tree and the grid alv.

Initially on selecting a record of the tree displays the data correctly but when i select some other record form the tree the ALV contents does not change and it displays the previous data.

I have tried using flush method and refresh_table_display.

But the problem still persist.

Is there any way i can solve this problem ?

Thanks in Advance

Regards

Sohit Gulati

Hi All,

I have created a program, in this program I am working on the tree and the grid alv.

Initially on selecting a record of the tree displays the data correctly but when i select some other record form the tree the ALV contents does not change and it displays the previous data.

I have tried using flush method and refresh_table_display.

But the problem still persist.

Is there any way i can solve this problem ?

Thanks in Advance

Regards

Sohit Gulati

2 REPLIES 2
Read only

Former Member
0 Likes
362

Hi Sohit ,

Try using the below code by freeing the ALV grid.

IF NOT o_alvgrid IS INITIAL.

CALL METHOD o_alvgrid->free

EXCEPTIONS

cntl_error = 1

cntl_system_error = 2

OTHERS = 3.

CLEAR o_alvgrid.

ENDIF.

Hope this helps.

Regards,

Chitra

Read only

Former Member
0 Likes
362

Hi,

Please refer the std programs BCALV_TREE_DEMO or BCALVTREE* .

Regards,

Rajesh