Skip to Content
0
Aug 03, 2006 at 11:07 AM

problem detecting uppercase

33 Views

hi,

I'm beginner.

I have a stupid question :-). Paste my Example:

DATA: lowletters(28) TYPE c VALUE 'abcdefghijklmnñopqrstuvwxyz',

string(100) TYPE c VALUE 'WORDINUPPERCASE'.

IF string CA lowletters.

WRITE 'string is lower-case'.

ELSE.

WRITE 'string is upper-case'.

ENDIF.

Result of report:

string is lower-case

Why??? I don't understand. I read help a lot of time about CA (Contains Any) and it say: "c1 contains at least one character from the string c2. ". In my Example c1 (string) NOT CONTAINS at least one character from the string lowletters. Maybe Im crazy.

Can you help me?

A lot of thanks in advance.

Best regards.

djlu