2008 Nov 20 2:45 PM
Hi experts,
that's my question;
this is my code :
DATA: spazio(1) VALUE '$'.
DATA: nome TYPE string VALUE '$blabla$blabla$blabla$blabla$'
REPLACE ALL OCCURRENCES OF spazio IN nome WITH space.
Why my result is 'blablablablablablablabla' all condensed ?
where am I wrong ?
Thanx in advance.
2008 Nov 20 2:49 PM
Instead of REPLACE, use TRANSLATE.
Like:
DATA: spazio(1) VALUE '$'.
DATA: nome TYPE string VALUE '$blabla$blabla$blabla$blabla$'.
translate nome using '$ '.
write: nome.
Regards,
Naimesh Patel
2008 Nov 20 2:49 PM
Instead of REPLACE, use TRANSLATE.
Like:
DATA: spazio(1) VALUE '$'.
DATA: nome TYPE string VALUE '$blabla$blabla$blabla$blabla$'.
translate nome using '$ '.
write: nome.
Regards,
Naimesh Patel