Application Development 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: 

SORTING

Former Member
0 Kudos
127

I have an internal table containing date field. Now i want to sort this internal table in ascending order by date field so that I get the latest date as the last record in the internal table.

12 REPLIES 12

Former Member
0 Kudos
110

use sort by date.

default sorting is ascending so no need to specify.

also refer the following link

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm

regards,

srinivas

<b>*reward for useful answers*</b>

Former Member
0 Kudos
110

sort itab by date

Former Member
0 Kudos
110

hi,

use this command:

sort itab by fld_date.

jogdand M B

0 Kudos
110

I ALREADY TRIED DOING THAT.

THIS IS THE COMMAND WHICH I GAVE

SORT ITAB_QTY1 BY BUDAT

BUT THERE IS NO EFFECT.

Former Member
0 Kudos
110

<b>Sort itab by date ascending.</b>

Reward if helpful.

Former Member
0 Kudos
110

Hi,

Just use the command SORT itab by <date_field>.

Hope it is useful.

Thanks,

Sandeep.

Former Member
0 Kudos
110

Hi,

Say ur date field is i_date in the internal table itab.

sort itab by i_date.

this would solve ur problem.

Rewards points if this helps,

Kiran

0 Kudos
110

I already tried doing this.

My itab name is itab_qty1 having date field budat.

The command which i gave was

SORT ITAB_QTY1 BY BUDAT.

But there is no effect

0 Kudos
110

hi,

put a breakpoint, before the sort and after the sort....

chk whether control is coming there,

then chk whether all dates are the same....

With regards,

S.Barani

0 Kudos
110

Hi,

Try SORT ITAB_QTY1 BY BUDAT ascending.

Ashvender

Former Member
0 Kudos
110

Hi

SORT that Internal table by date

<b>sort itab by date.</b>

<b>Reward points for useful Answers</b>

Regards

Ashu

Former Member
0 Kudos
110

hi,

SORT ITAB ASCENDING BY DATE.

(or)

SORT ITAB DESECNDING BY DATE.

With Regards,

S.Barani