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

Function module for Reversing internal table entries

Former Member
0 Likes
1,225

Hi All,

I have 2 issues.

1. Is there any Function module to reverse the internal table entries.

In my I.Table i have only one field with so many entries now i want to store that internal table in reverse order using some F.M.

2. I have a string[Internal table field] value which is having last character as - i want to make it space.

Can anybody solve above issues!

Thanks in advance.

Thanks,

Deep.

4 REPLIES 4
Read only

Former Member
0 Likes
733

Hi Deep,

1 Don't think there is any FM.

2 You can use keyword REPLACE.

Regards,

Atish

Read only

Former Member
0 Likes
733

Hi,

1. SORT ITAB BY FIELD DESCENDING.

2.REPLACE '-' WITH '' INTO STRING

Read only

0 Likes
733

Hi,

Thanks for those replies.

2. I want to replace only last character which is '-' in between the string there might be some other '-' characters, I just want to delete last occurence of '-' in last character of a string.

My version is: 4.6C

Thanks,

Deep.

Read only

Former Member
0 Likes
733

hi

good

Ans1- There is no such function module availble which can reverse your internal table values.

Ans2-You can declare an character variable with value space and you can overwrite the last character of the field with that value.

thanks

mrutyun^