Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SE37 use of wildcard

Hi Abapers,

I start to build function module on SE37.

I have 3 imput parameters all of then optional. I need to use a wildcard on two of then.

How can i do that? I thought that we must use % but i tryed on SE37 and i get not any result.

Thank you and Best regards

João Fernandes



One option is to work with ranges:

in your FM:

ranges: r_aufnr for aufk-aufnr,

             r_erdat for sy-datum,

             r_aedat for sy-datum.

if i_aufnr is not iinitial.

  r_aufnr-option = 'EQ'.

  r_aufnr-sign = 'I'.

  r_aufnr-low = i_aufnr.

  append r_aufnr.


the same for the dates.

select * from aufnk where ...

and aufnr in r_aufnr

and erdat in r_erdat

and aedat in r_aedat.


Maria João Rocha

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question