‎2007 Dec 26 10:00 AM
Hi,
I have an internal table with the below data.
date
________
________
________
________
20040130
20071231
i want it to be sorted so that the result is as follows
date
20040130
________
________
________
________
20071231
Is there any sort technique by which i can achieve the above result????
Cheers,
Raghav.
‎2007 Dec 26 10:05 AM
Hi,
i don't think there is any sort technique for this...
try to delete the space values in the itab.now u will have two records
then try to insert blank record between the two records..
Regards,
Nagaraj
‎2007 Dec 26 10:02 AM
‎2007 Dec 26 10:02 AM
Hi,
use sort decending
or sort asscending
regards,
siva chalasani.
‎2007 Dec 26 10:02 AM
‎2007 Dec 26 10:06 AM
If i sort it by ascending, the result is
________
________
________
________
20040130
20071231
and by descending sort the result is
20071231
20040130
________
________
________
________
Can anyone please help out???
‎2007 Dec 26 10:13 AM
hi,
As per my knowledge their is no sort technique for that.
to achieve u r requirement. give input in the same order in which order you wantt, to internal table and use it without sorting
regards,
pavan
Edited by: pavan kumar pisipati on Dec 26, 2007 11:14 AM
‎2007 Dec 26 10:03 AM
‎2007 Dec 26 10:03 AM
HI
Satwik
yes directly u can write
sort itab_name by field(date) ascending.
it solves u r problem...
plzz reward if helpfull
for any further quiries my mailid is mutyalasunilkumar@gmail.com ok
dont forget to reward....
‎2007 Dec 26 10:05 AM
Hi,
i don't think there is any sort technique for this...
try to delete the space values in the itab.now u will have two records
then try to insert blank record between the two records..
Regards,
Nagaraj