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

Internal Table

Former Member
0 Likes
501

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
Read only

former_member194669
Active Contributor
0 Likes
479

Hi,

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

then


sort itab by qty.

a®

5 REPLIES 5
Read only

Former Member
0 Likes
479

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

Read only

former_member194669
Active Contributor
0 Likes
480

Hi,

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

then


sort itab by qty.

a®

Read only

Former Member
0 Likes
479

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

sort itab ascending by qty.

Read only

0 Likes
479

Didn't notice at all.

Smart..

A

Read only

Former Member
0 Likes
479

Thanks to all