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

Simple ABAP Question

Former Member
0 Likes
1,271

hi,

How Can I print a Single quote ( ' ) in a Write statement..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,250

Hi Karthik,

write ` ' `.

use ` symbol.

Regards,

Mandeep

hi,

How Can I print a Single quote ( ' ) in a Write statement..

12 REPLIES 12
Read only

Former Member
0 Likes
1,250

Hi,


write: ''''.

<REMOVED BY MODERATOR>

Manish

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:09 PM

Read only

Former Member
0 Likes
1,250

` symbol is der in ur keyboard left to 1............

write ` 'hi' `.

Edited by: jose on Feb 22, 2008 6:57 AM

Read only

0 Likes
1,250

hi ,

To print i'm in display whether this syntax correct

else send me a piece of code implementing this..


write  : / 'i`'`m in display'.

Read only

0 Likes
1,250
write ` i'm in display `.
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,250

Check this..


data:wk_print type string.
data:wk_val(15) type c value 'SINGLEQUOTATION'.
concatenate '''' wk_val '''' into wk_print.
write : wk_print.

<REMOVED BY MODERATOR> ...:-)

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:11 PM

Read only

Former Member
0 Likes
1,250

write ''''. " that is write and 4 ' then period.

Read only

Former Member
0 Likes
1,251

Hi Karthik,

write ` ' `.

use ` symbol.

Regards,

Mandeep

Read only

Former Member
0 Likes
1,250

Hi,

u must double the single quotation to get a single one

u must write like this

write 'customer ' ' s name'.

to get output like this

customer ' s name.

write : / 'i ' ' m in display'

Regards

Read only

Former Member
0 Likes
1,250

Hi,

WRITE: / 'This is John''s bicycle'.

This statement generates the following output:

This is John's bicycle

Regards,

Bhaskar

Read only

Former Member
0 Likes
1,250

Hi karthik,

Didn't understand why my answer does not reply your initial question.

Anyway find your complete answer.

write: 'I' ,'''' ,'m in display'.

Manish

Read only

Former Member
0 Likes
1,250

Hi Karthik,

Please try with this statement:::::::::


*write : / ' Iam in display mode. it''s my code ' .*

<REMOVED BY MODERATOR>

Regards,

Maha.

Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:12 PM

Read only

Former Member
0 Likes
1,250

Thanks all..

I got my Output.

i'l reward all soon