‎2008 Aug 22 5:55 PM
hai
how can we use select-options in function module.
select-options:s_ebeln for ekko-ebeln.
call function ' '
exporting
ebeln = s_ebeln
importing
itab = it_ekpo.
it gives error
plz post how to use.
‎2008 Aug 22 6:01 PM
‎2008 Aug 22 6:01 PM
Use Proper subject line.
one way..
in the Function module have a table parameter name it ebeln with out refering to any structure.
Inside the Function module.
function 'ZTEST_SEL'.
data: r_range type range of ebeln.
"move select option value to the range values
r_range = ebeln[].
"now use this r_range for your select
in the calling side
"pass the select options to the table parameter,
call function 'ZTEST_SEL'.
tables
ebeln = s_ebeln.