4 Replies Latest reply: Mar 15, 2010 5:16 PM by Ansberry Kevin RSS

How to handle single quote between two single quotes in ABAP?

Ansberry Kevin
Currently Being Moderated

Dear SAP Gurus




I have a question regarding handling a string data.



Say I have a string  ABCD'\&%$!!ABC'AAA123.   Please notice that there are single quotes in my string.




I am writing a parser code in ABAP and getting into problem with if statement to check if the character read is a single quote.


When I type the following with a singleQuote between 2 singleQuoes as below, it gives error.


If CHAR = '''.



How do I handle that? I searched for escape sequence and couldn't get any useful info.



Any feedback will be highly appreciated.