09-30-2008 9:12 AM
HELLO EVERYONE,
i need to replace ,in a name, the character ( ' ) by a sapce, i try to use the instruction TRANSLATE but what's the word for ( ' ) because it's will not work if i use the character .
thank you.
09-30-2008 9:14 AM
hi,
you should enter a double '
TRANSLATE text USING ''' '.
hope this helps
ec
09-30-2008 9:14 AM
Hi,
Try this :
translate a using '''' '.
You can also use replace statement.
regards,
Advait
Edited by: Advait Gode on Sep 30, 2008 10:14 AM
09-30-2008 9:14 AM
hi,
you should enter a double '
TRANSLATE text USING ''' '.
hope this helps
ec
09-30-2008 9:15 AM
09-30-2008 9:19 AM
Hello,
Check out the piece of code
data: char(2) type c value ''''.
write: char.
replace all occurrences of '''' in char with ''.
write: char.
Hope you will get what you need.
-Rajat
09-30-2008 9:21 AM
hii
try using below code
DATA:
wa_val(13) TYPE c VALUE 'SAP''ABAP'.
replace '''' with space into wa_val.
WRITE: / wa_val.
regards
twinkal
09-30-2008 9:21 AM
09-30-2008 9:22 AM
hi lakbir,
use this
replace ''' with ' ' in <workarea>
with regards
s.janagar
09-30-2008 9:25 AM
REPORT zrnd5003.
DATA: tval TYPE char40 VALUE 'abcd''efghi'.
REPLACE all occurrences of '''' in tval with space.
write tval.