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

Comparison operators for character-type operands

Former Member
0 Likes
519

Hi Experts,

I have one internal table in that Name is one field(char type) .

some records have upper case,

some in lower case,

some are mixed.

in selection screen i am entering the name and i am serching the record using search button.

i am using code like as below,

loop at itab where name cs name.

endloop.

cs operator is not working properly.

can any body tell me how to do this.

thanks in advance.

tharangini.

Hi Experts,

I have one internal table in that Name is one field(char type) .

some records have upper case,

some in lower case,

some are mixed.

in selection screen i am entering the name and i am serching the record using search button.

i am using code like as below,

loop at itab where name cs name.

endloop.

cs operator is not working properly.

can any body tell me how to do this.

thanks in advance.

tharangini.

2 REPLIES 2
Read only

Former Member
0 Likes
471

first of all change both the strings into one comman case like uppercase or lowercase.

TRANSLATE w-string2 TO LOWER CASE.

or

TRANSLATE w-string2 TO UPPER CASE.

then do the search operation in internal table.

Read only

0 Likes
471

Hi,

i have the data in mixed cases.

thanks,

tharangini.