Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to search a apostrophe in my_string?

$
0
0

Hello

 

my_string = 'Robert's Company'

 

Here we are seeing a apostrophe (') in my_string, pls. let me know how to figure out whether it containing a apostrophe or not? I tried below, but throwing syntax error

 

FIND ''' IN my_string. "3 quotes

IF sy-subrc = 0.

WRITE: 'Found the Apostrophe'

ENDIF.

Thank you



Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>