Application Development and Automation 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: 
Read only

THE CHARACTER ( ' )

Former Member
0 Likes
694

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
Read only

JozsefSzikszai
Active Contributor
0 Likes
667

hi,

you should enter a double '

TRANSLATE text USING ''' '.

hope this helps

ec

8 REPLIES 8
Read only

Former Member
0 Likes
667

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

Read only

JozsefSzikszai
Active Contributor
0 Likes
668

hi,

you should enter a double '

TRANSLATE text USING ''' '.

hope this helps

ec

Read only

Former Member
0 Likes
667

use the keyword REPLACE.

With luck,

Pritam.

Read only

Former Member
0 Likes
667

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

Read only

Former Member
0 Likes
667

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

Read only

Former Member
0 Likes
667

Use


TRANSLATE w_name USING ''' '.

Read only

Former Member
0 Likes
667

hi lakbir,

use this

replace ''' with ' ' in <workarea>

with regards

s.janagar

Read only

Former Member
0 Likes
667

REPORT zrnd5003.

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

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

write tval.