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

Sorting internal table records

Former Member
0 Likes
545

Hi friends,

i want sort the internal table field records,

Eg: in itab have 4 fields,

like field1,field2,field3,field4.

in the field2 have some records, like

MCPUR,

MCRAW,

MCMOH,

MCRAW,

MCRAW,

MCPUR,

LOPCK.

After sort get this like

MCPUR

MCPUR

MCRAW

MCRAW

MCRAW

MCMOH

LOPCK.

(Note: the records are fields of another internal table(itab2))

5 REPLIES 5
Read only

Former Member
0 Likes
527

Hello,

You can sort your internal table with field2 then.

Thanks,

Jayant

Read only

Former Member
0 Likes
527

You can sort your internal table with field2 then.

Thanks

Jayant

Read only

Former Member
0 Likes
527

Hi Venkat,

Someone may confuse seeing our names Dude but definitely i am not you and you are not me.

Coming to your issue try to check SORT keyword with F1 help in ABAP editor.

Cheers!!

VEnk@

Read only

0 Likes
527

>

> Hi Venkat,

>

> Someone may confuse seeing our names Dude but definitely i am not you and you are not me.

> Cheers!!

> VEnk@

Really i thought it was you Thanks for the clarification Venkat(balu)..

Regards

Karthik D

Read only

Former Member
0 Likes
527

explain clearly abount your note message. Use sort syntax by req_field.

SORT ITAB by FIELD2.

Regards

R