Skip to Content

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

replace charachters

I have abcc345. i need to replace all the charachters by spaces.

incase i have asdfghj00001 again all charachters by spaces.

but number remains the same.

in all cases i just need to replace the charachters numbere remaining the same

Tags:
Former Member
Former Member replied

HI,

See if one variable has value like abc456.

simply declare one variable with type N.

example ..

data:  
  w_var1(20) type c value 'ABC1101',
  w_var2(20) type N.

w_var2 = w_var1.

write : / w_var2. 
Then simply it writes ....  1101.

hope u got it..

this is the concept of type conversion...................

Regards

Sunil Kumar Mutyala.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question