Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

THE CHARACTER ( ' )

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

hi,

you should enter a double '

TRANSLATE text USING ''' '.

hope this helps

ec

8 REPLIES 8

Former Member
0 Kudos

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

JozsefSzikszai
Active Contributor
0 Kudos

hi,

you should enter a double '

TRANSLATE text USING ''' '.

hope this helps

ec

Former Member
0 Kudos

use the keyword REPLACE.

With luck,

Pritam.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Use


TRANSLATE w_name USING ''' '.

Former Member
0 Kudos

hi lakbir,

use this

replace ''' with ' ' in <workarea>

with regards

s.janagar

Former Member
0 Kudos

REPORT zrnd5003.

DATA: tval TYPE char40 VALUE 'abcd''efghi'.

REPLACE all occurrences of '''' in tval with space.

write tval.