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

refreshing the list

Former Member
0 Likes
664

experts,

i have used reuse_alv_grid_display to display a report and used my own pf status and added a pushbutton on the application tool bar named 'refresh'.when ever i am clicking refresh a new list is getting generated overlapping the other,the problem is when i press 'back' the lists generated are equivalent to the number of times i press 'refresh'.

how to overcome this problem (or) how to display the list only and refresh it automatically

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
593

1) In case you have to use your own PF Status - Always copy the standard GUI status

(Program : SAPLSLVC_FULLSCREEN,

Status : STANDARD_FULLSCREEN )

And add and delete the function codes as per your custome requirements.

2) For REFRESH - Include parameter for "USER_COMMAND" in the Function module interface.

Inside the User command subroutine - set "RS_SELFIELD-REFRESH" = "X". It will automatically refresh the ALV and there is no requirement to call ALV again. Just Setting this field is suffice.

Reward if useful.

3 REPLIES 3
Read only

Former Member
0 Likes
594

1) In case you have to use your own PF Status - Always copy the standard GUI status

(Program : SAPLSLVC_FULLSCREEN,

Status : STANDARD_FULLSCREEN )

And add and delete the function codes as per your custome requirements.

2) For REFRESH - Include parameter for "USER_COMMAND" in the Function module interface.

Inside the User command subroutine - set "RS_SELFIELD-REFRESH" = "X". It will automatically refresh the ALV and there is no requirement to call ALV again. Just Setting this field is suffice.

Reward if useful.

Read only

0 Likes
593

thank's

Read only

Former Member
0 Likes
593

Hi,

If you are using OOPs ALV,

then use the method CALL METHOD w_alv_grid->refresh_table_display.

If you are using normal ALV, then in the even of 'REFRESH', before calling the subroutine or FM, try giving:

LEAVE TO SCREEN 0.

Regards,

Subramanian