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: 

Checking Characters

Former Member
0 Kudos

Hi

How to chek Caaracters

eg: AB = AB

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

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

Did you try anything in Report???

Regards, Dieter.

5 REPLIES 5

Former Member
0 Kudos

Hi,

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

Did you try anything in Report???

Regards, Dieter.

former_member188685
Active Contributor
0 Kudos

you can use the operations

Like CS, CA, CN, CP

and also you can use Regular expression to check .

kiran_k8
Active Contributor
0 Kudos

Surendra,

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

K.Kiran.

Former Member
0 Kudos

Hi

You can try

if var CA sy-abcde.

else.

endif.

Regards

Sumit Agarwal

Former Member
0 Kudos

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