cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with STRLEN at field routine level

amine_lamkaissi
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

gaurang_gujar
Active Participant
0 Kudos

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

Answers (1)

Answers (1)

amine_lamkaissi
Active Contributor
0 Kudos

Thanks Gaurang,

My issue was due to spaces, i found my answer in this thread

http://scn.sap.com/thread/880269

Amine