Application Development 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: 

Code push down string comparison

Former Member
0 Kudos

My requirement:

I have a Z config table which stores email addresses along with other stuff. I am writing a new method which queries that table to see if it contains a specific email address.

Problem:

If the email address I am querying contains upper case characters, I get wrong results.

Current process:

I select all the email addresses into an internal table, loop through and convert both to upper case and compare.

Question:

Is there a way to do code push down (ie) getting HANA to do all the hard work? I want to write something like SELECT SINGLE @ABAP_TRUE FROM.... I don't want to read all the email addresses and transfer them to application server. All I need is a YES or NO.

1 REPLY 1

pfefferf
Active Contributor
0 Kudos

That is possible. For instance if you are using an AMDP to push down the logic. In the AMDP you could use the UPPER function if you wanna compare against your upper case converted address. Or you could use a regular expression (with LIKE_REGEXPR) with case insensitive search option to compare against your not upper case converted address.

Regards,

Florian