Skip to Content

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

regarding the string

Hi All,

I have a string with 9 character.

Now I need to delete the 5th character and make it into 8 character string.

Can u plz tel me the exact procedure?

Thank u and Best Regards,

Rohit

Tags:
Former Member
Former Member replied

Hi,

Try in this way

DATA: value1 TYPE string VALUE 'abcdefghi', 
           value2 TYPE string.

CONCATENATE value1+0(4) value1+5(4) INTO value2.
WRITE value2.

Cheers,

Kothand

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