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

Quotation mark

Former Member
0 Likes
490

How can I know if the content of a variable has quotation mark?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

Try the FIND sentence (it will affect SY-SUBRC according to the result).

Don't forget that the quotation mark is an special character in ABAP, you should compare against '''' (four consecutive quotation marks).

3 REPLIES 3
Read only

Former Member
0 Likes
440

Hi,

Use 'FIND' statement and check sy-subrc value.

Pranav

Read only

Former Member
0 Likes
441

Try the FIND sentence (it will affect SY-SUBRC according to the result).

Don't forget that the quotation mark is an special character in ABAP, you should compare against '''' (four consecutive quotation marks).

Read only

0 Likes
440

Thanks, I missed the four ''''. Problem solved.