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

Compare without case sensitive

Former Member
0 Likes
863

Dear All,

I have 2 variables

A with value Madhu.

B with Value MADHU.

in my code

If A = B.

Statment 1

Endif.

In this scenario, as A is not equal B, I am unable to execute my Statement 1.

Please let me know, if there is any option to compare without Case sensitive.

Thank you for looking at my question.

Regards

Madhu.

Edited by: Alvaro Tejada Galindo on Apr 3, 2008 5:06 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

The only way to compare mixed case strings is to convert both the strings to either lower case or upper case first, and then compare.

Use TRANSLATE statement to convert the case.

2 REPLIES 2
Read only

Former Member
0 Likes
742

The only way to compare mixed case strings is to convert both the strings to either lower case or upper case first, and then compare.

Use TRANSLATE statement to convert the case.

Read only

0 Likes
741

Hi Sudhi,

Thanks for your reply. neither I found any ABAP Statement to compare mixed case strings.

Closing Thread. Alloting points for your imputs.

Thank You.

Regards

Madhu.