Skip to Content

Issue with STRLEN at field routine level

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

Sans titre2.png (15.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 29, 2013 at 02:04 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 29, 2013 at 02:05 PM

    Thanks Gaurang,

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

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

    Amine

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.