Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

truncate last 3 chatechter from a string

i want to show the last 3 charecter from a string ,

how do i do that

Tags:
replied

Hi,

Try this,

DATA : wf_len type c.

wf_len = strlen(wf_string).

Wf_len = wf_len - 3.

write : wf_string+wf_len(3).

Regards,

Sachin M M

Edited by: Sachin Mathapati on Sep 9, 2008 3:30 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question