Skip to Content
0
Former Member
Mar 13, 2007 at 10:41 AM

Function module with import as select options

592 Views

Hi All,

In my Function Module import parameter is select option say MATNR_FROM, MATNER_TO. In source code i write a range like this

data:r_matnr TYPE RANGE OF mseg-matnr,

r_matnr_line LIKE LINE OF r_matnr.

r_matnr_line-sign = 'I'.

r_matnr_line-option = 'BT'.

r_matnr_line-low = matnr_from.

r_matnr_line-high = matnr_to.

APPEND r_matnr_line TO r_matnr.

then

select matnr, maktx from makt into table it_maktx where MATNR in R_MATNR...

But i am not getting data in my internal table it_maktx....I thought problem is with RANGES...Could any one tell me or send me the code...how to handle select option in function module...