Replacing ',,' by space
I have a variable in that the value is "3,,,,,,,,,,Test".
Now the user wants to replace the ",," by space.
Can anyone give me a solution.
Points will be rewarded immediately.
Satish Panakala replied
Do like this
data: text(50) type c value 'a,,,,,b,,,,', len type i, ind type i, pos type i. len = strlen( text ). do len times. ind = sy-index. pos = sy-tabix. if text+ind(pos) = ','. replace ',' with space into text. endif. enddo. condense text no-gaps. write text.