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: 

Quotation mark

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

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

Pranav

Former Member
0 Kudos

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).

0 Kudos

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