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

Replace single quote with space

Former Member
0 Likes
3,818

Hello All,

Could anyone tell me (with ABAP Statement) how to replace a single quote with space? I am getting syntax left and right.

REPLACE " ' " WITH space INTO v_temp.

Thanks,

Alex (Arthur Samson)

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,570

Hi Alex

Try

REPLACE ALL OCCURANCES OF ' ' ' ' WITH space INTO v_temp.

Regards,

Atish

Message was edited by:

Atish Sarda

5 REPLIES 5
Read only

Former Member
0 Likes
1,571

Hi Alex

Try

REPLACE ALL OCCURANCES OF ' ' ' ' WITH space INTO v_temp.

Regards,

Atish

Message was edited by:

Atish Sarda

Read only

Former Member
0 Likes
1,570

Samsun,

do like this

REPLACE ''''(4 single quote equal to 1 single quote) WITH space INTO v_temp.

<b>Reward if it helps,</b>

Satish

Read only

Former Member
0 Likes
1,570

Hi

declare quote as constant with single char field

and use REPLACE command

REPLACE v_quote WITH space INTO v_temp.

Regards

Anji

Read only

Former Member
0 Likes
1,570

Hi Alex,

try this..

REPLACE '''' WITH space INTO v_temp.

Read only

naimesh_patel
Active Contributor
0 Likes
1,570

Try with this ...

REPORT  ZTEST_NP.

parameters:p_Text(10) .

translate p_text using ''' '.  "<<<<
write: p_text.

Regards,

Naimesh Patel