08-04-2005 3:58 AM
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?
08-04-2005 4:42 AM
08-04-2005 5:01 AM
08-04-2005 5:08 AM
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.
08-04-2005 5:12 AM
Hi, you can rewrite the result in the event AT user-command.
When you click the 'refresh' button, this event will be trigger.
08-04-2005 5:19 AM
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>].
08-04-2005 5:55 AM
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.
08-04-2005 6:05 AM