Application Development 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: 

How to refresh a standard list?

Former Member
0 Kudos

Hi all,

I want to refresh a list when user click the 'refresh' button, but when I recall the output routine it just generate a new list. Is there any way to 'clear' a list so that I can rewrite it?

7 REPLIES 7

former_member221770
Contributor
0 Kudos

Hi Bob,

Is this for a ALV list?

Pat.

0 Kudos

Hi Patrick,

No, it's just for normal report list.

Former Member
0 Kudos

hi bob,

if it is normal list ,then assign refresh button function key as 'PICK' and gui status function key f2 as 'PICK'. which will trigger 'AT line-selection' event. write some message in this event which will call new list. if it is a alv the refresh the internal table it will clear only the body not the header.

Former Member
0 Kudos

Hi, you can rewrite the result in the event AT user-command.

When you click the 'refresh' button, this event will be trigger.

Former Member
0 Kudos

hi ,

if u want to rewrite on same list ,u can use this syntax :

MODIFY LINE <n> [INDEX <idx>|OF CURRENT PAGE|OF PAGE <p>] [<modifications>].

Former Member
0 Kudos

Thank you all, I have setup the 'refresh' function and written the code for 'at user-command' event, what I need is clear the existing list and rewrite on it. I have got the solution from sapfans, set SY-LSIND = 0 can do this . Thank you all anyway.

0 Kudos

also check out this link

http://www.sap-img.com/fu014.htm

Regards

Raja