cancel
Showing results for 
Search instead for 
Did you mean: 

ITAB sorting problem

Former Member
0 Kudos

I have one internal table ITAB & 2 fields f1 f2

Table records are :

f1 f2

-


M1 24

M2 22

M2 29

M1 31

M1 20

M3 11

M4 15

M1 10

I have to sort above table such that

O/p :

f1 f2

-


M1 31

M1 24

M1 20

M1 10

M2 29

M2 22

M3 11

M4 15

How to code for above prob?

Thanks & Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Amol,

Use the follwing statement your problem will be resolved:

SORT ITAB BY f1 ASCENDING f2 DESCENDING.

Reward points if helpful answer.

Ashvender

Answers (2)

Answers (2)

Former Member
0 Kudos

here you go

SORT ITAB BY f1 ASCENDING f2 DESCENDING.

regards,

shaik

Former Member
0 Kudos

Hi

Sort the Itab by F1 ascending then F2 descending

SORT ITAB BY F1 ASCENDING F2 DESCENDING

Reward points for useful Answers

Regards

Anji