‎2006 Nov 22 3:07 PM
Hi,
I want to sort data that display in simple list with a button (Sort) creating via screen painter.
best regards.
‎2006 Nov 22 3:13 PM
You can do that automatically using a ALV List display.
You will have to use REUSE_ALV_LIST_DISPLAY.
Regards,
Ravi
Note - Please mark all the helpful answers
‎2006 Nov 22 3:16 PM
instead display data in ALV report.
Now, ALV will have all options of which one of them is SORT...Place on the field which needs to be sorted & press SORT...It's done..
‎2006 Nov 22 3:16 PM
as Ravi said, use ALV - coz it's more simple.
if you must program per list or TC, use fm RKE_SORT_ELEMENTS
A.
‎2006 Nov 22 3:17 PM
hi,
for button u have to set a function code (sy-ucomm).
IN PAI write code as
case sy-ucomm
if sy-ucomm eq ' fcode'.
sort itab by matnr
endcase
regards
srinivas