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

refresh ALV list?

former_member537489
Participant
0 Likes
818

Dear experts,

I have used REUSE_ALV_GRID_DISPLAY to display some data of an internal table. I modified it and I need to display the refreshed data again.

How can I do that?

Thank you...

Roxani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
667

Hi,

In the user command subroutine modify the parameter for the structure slis_selfield with the field

REFRESH = 'X'.

Thanks,

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
667

Check this thread:

Read only

Former Member
0 Likes
668

Hi,

In the user command subroutine modify the parameter for the structure slis_selfield with the field

REFRESH = 'X'.

Thanks,

Naren

Read only

Former Member
0 Likes
667

Hi,

In ALV, to refresh the table you have to call the method "refresh_table_display".

It has the syntax very similar to creating the table.

It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)

or

if you want to refresh only the icons around the grid (the data is not refreshed - this option is mostly not used in day to day applications).

the synatx is :-

<b>call method grid (name of grid )->refresh_table_display

exporting

IS_STABLE = <STRUCT OF TYPE LVC_S_STBL> (THIS IS FOR DATA REFRESHING)</b>

<b>I_SOFT_REFRESH = <VARIABLE OF CHAR 01> (THIS IS FOR ICON REFRESHING).</b>

<b>Refresh grid display</b>

Use the grid method REFRESH_TABLE_DISPLAY

<b>Sample code:-</b>

http://www.erpgenie.com/sap/abap/controls/alvgrid.htm#Refresh%20grid%20display

TO refresh the ALV Lsit :

http://www.sap-basis-abap.com/abap/auto-refresh-alv-list.htm

Regards

Sudheer

Read only

Former Member
0 Likes
667

Hi,

ALV :

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = SY-REPID

i_callback_pf_status_set = 'SET_PF_STATUS'

<b>i_callback_user_command = 'USER_COMMAND'</b>

i_structure_name = 'ITAB_DISPLAY'

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '&DEALL'.

  • Message for reselection of lines

IF itab_display-kalab LE 0.

MESSAGE i101.

EXIT.

To refresh...

rs_selfield-refresh = 'X'.

regards,

vin