cancel
Showing results for 
Search instead for 
Did you mean: 

Reading context on upper case

Former Member
0 Kudos

Hi All!!

I have done a Web Dynpro ABAP which access to a table of the database to retrieve some entries. This access is made by a field introduced on the main view.

The data on the table are sensitive to capital and small letters.

I use the method if_wd_context_element->get_static_attributes to get the value of the field on the main window, but this method retrieve the value on capital letters, being this a problem, because doesn´t find any value on the table.

Somebody knows if this problem has solution??

Thankfull answers will be rewarded.

Thanks and regards,

Manuel.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi miguez...........

you can convert into lower case using the syntax... "to lowercase".

eg:

att1 has the value "NAME".

transalate att1 to lower case.

so att1 becomes "name".

---regards,

alex b justin

Former Member
0 Kudos

Hi Alex,

I have not been clear at all, sorry.

The field I read on the main view could be a name or surname, or company initials.

The value of the field could be 'Smith', 'BBA Company', ...

I hope the question will be clearer.+

Thanks and regards,

Manuel.

Yashpal
Active Contributor
0 Kudos

Hi ,

check the domain of the context attribute ( se11 ) using which u r running the query ... in the defination tab lower case must be ticked . otherwise the runtime environment will convert the entered data in capital. so solution is create ur own domain and in the defination tab mark it as lower case and then use it ..

hope it will solve ur problem..

Regards

Yash

Former Member
0 Kudos

hi.......

one more way is to use the "like" keyword while using the select query to fetch the data.

---regards,

alex b justin

Former Member
0 Kudos

Thanks Yashpal,

Doing this I asolved my problem.

Answers (0)