‎2008 Feb 25 2:44 AM
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.
‎2008 Feb 25 2:52 AM
Hi Deep,
1 Don't think there is any FM.
2 You can use keyword REPLACE.
Regards,
Atish
‎2008 Feb 25 3:00 AM
Hi,
1. SORT ITAB BY FIELD DESCENDING.
2.REPLACE '-' WITH '' INTO STRING
‎2008 Feb 25 3:27 AM
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.
‎2008 Feb 25 3:31 AM
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^