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

Program

Former Member
0 Likes
587

Hi,

I want to sort data that display in simple list with a button (Sort) creating via screen painter.

best regards.

4 REPLIES 4
Read only

Former Member
0 Likes
557

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

Read only

Former Member
0 Likes
557

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..

Read only

andreas_mann3
Active Contributor
0 Likes
557

as Ravi said, use ALV - coz it's more simple.

if you must program per list or TC, use fm RKE_SORT_ELEMENTS

A.

Read only

Former Member
0 Likes
557

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