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 grid Refresh.

Former Member
0 Likes
2,608

Hi All,

I'm using "REUSE_ALV_GRID_DISPLAY"

I want to refresh ALV grid after a SUBMIT statement. I'm deleting the data in SUBMIT statement and when I come back to the screen I'm getting the deleted record also.

How can I refresh the grid?

Thanks in advance.

Bhavana

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,401

Hi Bhavana,

Try this-

DATA: LC_GLAY TYPE LVC_S_GLAY.

LC_GLAY-EDT_CLL_CB = 'X'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_GRID_SETTINGS = lc_glay

IT_FIELDCAT = l_fialdcattab

TABLES

T_OUTTAB = t_itab.

hope this helps u.

Regards,

Seema.

8 REPLIES 8
Read only

Laxmana_Appana_
Active Contributor
0 Likes
1,401

Hi,

Check this link:

Regards

Appana

Read only

Former Member
0 Likes
1,401

HI BHAVANA,

CHECK THIS THREAD...

<b>http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON_3.html</b>

Message was edited by: Priya

Read only

Former Member
0 Likes
1,402

Hi Bhavana,

Try this-

DATA: LC_GLAY TYPE LVC_S_GLAY.

LC_GLAY-EDT_CLL_CB = 'X'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_GRID_SETTINGS = lc_glay

IT_FIELDCAT = l_fialdcattab

TABLES

T_OUTTAB = t_itab.

hope this helps u.

Regards,

Seema.

Read only

0 Likes
1,401

Bhavan,

Are you using OO ALV_GRID or FM?

thanks,

Bt

Read only

Former Member
0 Likes
1,401

I tried the below code but still its not refreshing the grid.

Any other way?

DATA: LC_GLAY TYPE LVC_S_GLAY.

LC_GLAY-EDT_CLL_CB = 'X'.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_GRID_SETTINGS = lc_glay

IT_FIELDCAT = l_fialdcattab

TABLES

T_OUTTAB = t_itab.

Thanks,

Bhavana

Read only

Former Member
0 Likes
1,401

hi bhavana,

just use

SUBMIT <REPORTNAME>.

this will refresh the grid display

Read only

Former Member
0 Likes
1,401

if your submit is dane after command triggered from alv do that:

FORM alv_commander USING ex_comm TYPE sy-ucomm

ex_field TYPE slis_selfield.

CASE ex_comm. "alv - command

WHEN 'your_command'.

......

...... "you code.

ex_field-refresh = 'X'.

endcase.

BR, JAcek