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: 

How to declare a constant with a value of Single quote.?

Former Member
0 Kudos

Hello,

I'm creating a program which is validation the text value for valid characters only. I already indicated all the valid characters in a Constant field but I am having trouble include single quote ( ' ) in the constant field . Can anyone help me how to do this?

Thanks,

Alfred

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check this..

CONSTANTs : C_com TYPE C VALUE ''''.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Check this..

CONSTANTs : C_com TYPE C VALUE ''''.

mvoros
Active Contributor
0 Kudos

Hi,

You need to escape your ' character. It's simple just write '' (twice character ')in your constant field.

Cheers