on 08-29-2013 2:22 PM
Hi experts,
I am facing an issue with an abap code on a field routine level.
I am trying to modify the last digit of a record with '0'. For this i used function STRLEN but it doesen't work, it's not reconized as a funtion (see below)
Any other option to replace the last digit are wellcome
Thanks for your support.
Amine
Hi Amine,
You can use FM STRING_REVERSE if available
OR You Can use following code
SHIFT string RIGHT CIRCULAR BY 1 PLACES.
REPLACE 1st Occurrence and Again Shift Left.
Let me know if it helps.
Regards,
Gaurang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Gaurang,
My issue was due to spaces, i found my answer in this thread
http://scn.sap.com/thread/880269
Amine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.