Skip to Content
0
Former Member
Apr 11, 2007 at 02:04 PM

Slashes "/" in character strings matching "search" argument

187 Views

I am using the construct:

"SEARCH wa_longtext FOR p_phrase."

to search the wa for the argument '050' in the parm p_phrase.

The search returns sy-subrc = 0 on a string with the substring '05/01', which does contain '050' if you ignore the dash.

Am I correct in assuming that the standard "SEARCH" construct ignores non-alphanum characters, thereby yielding the above result.

If so, is there an alternative "search' function module that I can use to avoid this problem?

Please advise.

Thanks

djh