Skip to Content
0
Former Member
Apr 03, 2009 at 09:34 AM

SELECT with pattern CP '50*' is not working on material numbers MATNR

16813 Views

Hello,

I have a specific matchcode for searching on material numbers with a function module as selection method.

In this function module, the SELECT clause is built dynamically as bellow.

SELECT (temp3)

INTO CORRESPONDING FIELDS OF TABLE result_tab UP TO CALLCONTROL-MAXRECORDS ROWS

FROM (temp)

WHERE (temp2) .

In the "temp2" variable, I use RANGES for the selection simply built with values of SELECT-OPTIONS coming from the search help selection screen.

I am facing the following problem :

When a search is executed on material number with the following pattern '50*' --> nothing is found !

When I run a search on '50575' --> the material number is found !

I expect it is a problem of convertion routines (external to internal format) but I am not able to fix a solution...

We are in SAP_BASIS 700.