Skip to Content
0
Dec 16, 2015 at 03:54 PM

search criteria not filled correctly in search uibb

36 Views

Hi,

I have a problem with the search criteria in my search uibb.

When I use operator 'starts with' or 'contains' the search criteria in methods PROCESS_EVENT and GET_DATA is not filled correctly.

In the search uibb I have two search attributes, both data type CHAR. When I execute a search using search operator 'contains' or 'starts with' the search does not work if I only enter numbers in the search field. As soon as I add a character, everything works fine.


In the debugger I can see that the 'low'-value of the search attribute is filled wrong.

For example:

If I search for 'AUFNR starts with A20', the 'low'-value of the search criteria is filled correctly with 'A20', perfectly like I would expect it.

If I search for 'AUFNR starts with 20', without the character in front of it, the 'low'-value of the search criteria is '000000000000000020' instead of value '20' which I would expect.

This leads to problems in the search conversion because the asterisk can't be appended to the end of the value. So in the end, I get a ranges tab with entry (AUFNR CP 000000000000000020) instead of (AUFNR CP 20*) which would be correct.

Am I missing something and do I have to set a flag somewhere in order to get the correct value in the search criteria or is this really a bug?

Andy help is appreciated.

Best regards

Rebekka