‎2009 Jul 18 5:21 AM
Hai friends
I have doubt on case sensitive of upper case or lower case
EXP:
I have two string in two variable
Data: string1 type string value u2018ABCDu2019 ,
String2 type sting value u2018abcdu2019.
How do I comparing which string upper case or lower case of the string?
by
imuthu.
‎2009 Jul 18 6:27 AM
‎2009 Jul 18 5:25 AM
you can use regular expression to check upper case or lower case.
type regex in SE38. press F1 . you will get all options.
‎2009 Jul 18 6:27 AM
‎2009 Jul 18 7:23 AM
There are 2 methods you can use it,
1 Convert any one of the variable in lowecase or uppercase and then compare it.
To convert text to uppercase or lowercase use TRANSLATE stmt.
Data: string1 type string value u2018ABCDu2019 ,
String2 type sting value u2018abcdu2019.
Translate string2 to Upper case.
or
Translate String1 to lower case
if string1 eq string2.
endif.
2 USE Find Stmt.
FIND ALL OCCURRENCES OF STRING1 to STRING2 RESPECTING CASE.
Thanks & Regards,
ShreeMohan
‎2010 Mar 11 5:56 AM