2007 Nov 26 4:32 PM
Hi Experts,
In my Internal table structure is,
matno Qty Price
1 10 5.00
2 5 6.00
3 30 7.00
Now my requirement is, I want to change the Internal table order as,
2 5 6.00
1 10 5.00
3 30 7.00
But My internal table has no header line.
How can I do that?
Thanks in advance,
Points assured.
2007 Nov 26 4:37 PM
Hi,
I think you are asking your internal table sort on Qty field?
then
sort itab by qty.
a®
2007 Nov 26 4:35 PM
Read table at index 2 and store in a work area. Then delete the table at index2. Inset the work area at index 1.
this would make sense if you know the indexes for sure. won't work where indexes change dynamically.
A
2007 Nov 26 4:37 PM
Hi,
I think you are asking your internal table sort on Qty field?
then
sort itab by qty.
a®
2007 Nov 26 4:37 PM
This is specific to your test case.I hope it helps
sort itab ascending by qty.
2007 Nov 26 4:39 PM
2007 Nov 27 10:38 AM