2009 Jul 07 6:43 PM
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.
Depending on your databse, you may be able to use native SQL to do this. It works in Oracle and DB6.
Rob
2009 Jul 07 7:01 PM
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
2009 Jul 07 7:02 PM
Depending on your databse, you may be able to use native SQL to do this. It works in Oracle and DB6.
Rob
2009 Jul 07 7:46 PM
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
2009 Jul 07 9:05 PM
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.
2009 Jul 07 10:27 PM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |