Problem solve Get help with specific problems with your technologies, process and projects.

Using upper and lower case alphas in the where clause

I have a database table I want to select data from using a text field in the where clause that contains both upper and lower case alphas. However, the comparison field in the where clause may contain only upper case or only lower case values.

Is there any way to do this type of selection and have the where clause match without regard to case? Perhaps with a native SQL select statement?
To do this in ABAP, you must in some way copy the target records, so the mixed case field is converted to, e.g. upper case. Then you can do the match from your comparison field. Perhaps an interim internal table could be used to achieve this. If native SQL has a solution, it would depends on your database.

Dig Deeper on SAP ABAP

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.