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

select lowercase.

Former Member
0 Likes
700

Hi experts ,

i need to select a record from a table using the lower case statement as follows :

Data : wa_value type pa0006.

select single * from pa0006 into wa_value where lowercase (stras) = 'abcd'.

Stras is of type pad_stras .

so i want to get the result of in the table pa0006 the valoe of stras = 'AbCD' (abCd) ..etc.

This is not wirking in abap , so how to slove this problem ?

ps : transalte to lowercase /upper case doesnt help.

Thanks in advance.

5 REPLIES 5
Read only

former_member189420
Active Participant
0 Likes
653

Hi,

>

> Hi experts ,

>

> i need to select a record from a table using the lower case statement as follows :

>

> Data : wa_value type pa0006.

>

> select single * from pa0006 into wa_value where lowercase (stras) = 'abcd'.

Try the following.

select single * from  pa0006 into wa_value 
where (stras+1(1) = 'a' or 'A') and
            (stras+2(1) = 'b' or 'B') and
            (stras+3(1) = 'c' or 'C') and
            (stras+4(1) = 'd' or 'D').

Hope this helps. Let me know if it works.

Thanks & Regards,

Anand Patil

Read only

Former Member
0 Likes
653

Depending on your databse, you may be able to use native SQL to do this. It works in Oracle and DB6.

Rob

Read only

suresh_datti
Active Contributor
0 Likes
653

What exactly you are trying to validate? PA0006 is the address infotype and maintained at the employee (pernr) level & can have more than one subtype. You cannot do a perfect select single statement on pa0006, so you can do your validation inside the select..endselect loop.

~Suresh

Read only

Former Member
0 Likes
653

The select i have in my question is just an example .

i try to select from a z-table with a condition using lowercase, to check if the a record exists with the same streetname, house number, postal code and city .

i know it working only with native sql , but our database is sql server.

Read only

0 Likes
653

If it is a Z-table, have you looked at using the 'Lower Case' property at the domain level for the fields in question?

~Suresh