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: 

SORT internal table BY text AS number

Former Member
0 Kudos

Hi all,

How do I sort an internal table by a text field, like a number?

The table is a bapisrmrec_element and I have to sort by field element_id type char.

like there is a sentence SORT ... AS TEXT, Is not there something similar to do this in reverse? How we would do?

Thanks in advance.

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

Check this.

[SORT internal table BY text AS number|https://forums.sdn.sap.com/click.jspa?searchID=24201392&messageID=4093665]

1 REPLY 1

GauthamV
Active Contributor
0 Kudos

Check this.

[SORT internal table BY text AS number|https://forums.sdn.sap.com/click.jspa?searchID=24201392&messageID=4093665]