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

SORT problem in classes

Former Member
0 Likes
243

Hi all,

I am facing sort sequence problem in classes.Here is my situation.

1.Displayed data to ALV.

2.Suppose user has his own layout sorted on some fields

3.Click on Refresh button (not standard its custom)

4.Submitting the Z* program upon refresh to get the latest data into internal table

5.I want to apply the user sorted criteria whatever the criteria onlayout...

tries with set sort criteria but its is giving the sequence of fields but my question is how do i apply those fields to our internal table....

If you have any light just throw on me...

appreciate your ideas and advises...

thanks

1 REPLY 1
Read only

Former Member
0 Likes
221

Hi

If you have the name of the fields you need to sort the table, you can try to use this statament:

SORT ITAB BY (FIELD1) (FIELD2) (FIELD3) .... (FIELDN).

FIELD1,....are variables where you store the name of the fields

Max