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: 

ALV grid filter ignores symbol

0 Kudos
957

Hi, I have an ALV table that can have values like IF+ or IF# in one column. When I try to filter that column and I enter IF+, it also shows the IF# entries.

Is it because the filter treats the plus as wildcard? And if that is the case, how can I tell the filter, to not accept wildcards but treat every input as literal?

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
864

+ is a wildcard for any character

* is a wildcard for zero or any number of (any) characters

# in front of + or * to escape

e.g.

IF#+

If you don't have enough room to type 4 characters (if the field is 3 characters long), try to find workaround in select-options like below i.e. to find IF+, find anything ending with + and exclude anything which doesn't start with IF:

Include =  *#+
Exclude <> IF*
4 REPLIES 4

thkolz
Contributor
0 Kudos
864

I'm not sure, but maybe you can escape special characters via '\'.

0 Kudos
864

This doesn't work, because the field for the filter criteria only allows 3 characters, since the datatype only has 3 characters.

0 Kudos
864

Just found this, but it belongs more to F4 helps:
https://me.sap.com/notes/0002488648

Sandra_Rossi
Active Contributor
865

+ is a wildcard for any character

* is a wildcard for zero or any number of (any) characters

# in front of + or * to escape

e.g.

IF#+

If you don't have enough room to type 4 characters (if the field is 3 characters long), try to find workaround in select-options like below i.e. to find IF+, find anything ending with + and exclude anything which doesn't start with IF:

Include =  *#+
Exclude <> IF*