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: 

Internal Table

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

I think you are asking your internal table sort on Qty field?

then


sort itab by qty.

5 REPLIES 5

Former Member
0 Kudos

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

former_member194669
Active Contributor
0 Kudos

Hi,

I think you are asking your internal table sort on Qty field?

then


sort itab by qty.

Former Member
0 Kudos

This is specific to your test case.I hope it helps

sort itab ascending by qty.

0 Kudos

Didn't notice at all.

Smart..

A

Former Member
0 Kudos

Thanks to all