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

How To Sort Dynamic table Created by Create table method

Former Member
0 Likes
384

Hi dudes,

I have created a dynamic table using field symbol logic i.e. by using Create table ...

Now I have 3 column in this dynamic table like Col1,Col2 and Col3 .

I wann sort this dynamic table by using the Col3 in Decending Order.

Can u please guide me for this .

I have tried but it gives the error msg that Table doesnt have header line.

Please put u r suggtion ASAP .

Dont worry @ Points every1 get points respectively

Gain Points

1 ACCEPTED SOLUTION
Read only

christian_wohlfahrt
Active Contributor
0 Likes
355

Hi!

Sort has a dynamic option:

sort itab by (col3) descending.

Here col3 is the variable with the actual fieldname.

Regards,

Christian

2 REPLIES 2
Read only

Former Member
0 Likes
355

SORT_FIELD = 'COL3'.

SORT <MY_TABLE> BY (SORT_FIELD) DESCENDING

Read only

christian_wohlfahrt
Active Contributor
0 Likes
356

Hi!

Sort has a dynamic option:

sort itab by (col3) descending.

Here col3 is the variable with the actual fieldname.

Regards,

Christian