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

Checking Characters

Former Member
0 Likes
720

Hi

How to chek Caaracters

eg: AB = AB

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
690

Hi,

is AB declared with DATA or a real text like 'AB'.

Did you try anything in Report???

Regards, Dieter.

5 REPLIES 5
Read only

Former Member
0 Likes
691

Hi,

is AB declared with DATA or a real text like 'AB'.

Did you try anything in Report???

Regards, Dieter.

Read only

Former Member
0 Likes
690

you can use the operations

Like CS, CA, CN, CP

and also you can use Regular expression to check .

Read only

kiran_k8
Active Contributor
0 Likes
690

Surendra,

Use if sy-abcde CA.......endif.

K.Kiran.

Read only

Former Member
0 Likes
690

Hi

You can try

if var CA sy-abcde.

else.

endif.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
690

Hi,

SY-ABCDE : Contains the alphabet.

comparision of strings can be done by following opearators :

CO Contains Only

CN Contains Not only

CA Contains Any

NA contains Not Any

CS Contains String

NS contains No String

CP Contains Pattern

NP contains No Pattern

example :

if char1 CA sy-abcde.

..

endif.

thanx.

Edited by: Dhanashri Pawar on Sep 11, 2008 10:56 AM