‎2009 Mar 13 8:04 PM
Hi Friends
how to pass direct select-option values in a Function Module and later how to retrive the values from FM as well ?
Regards
Meeta
‎2009 Mar 13 8:06 PM
There are some predefined structures too for eg. IWSELOPT, which you can use. In case you are not able to find the appropriate structure, create another structure.
Create a structure with field
Sign(1)
Option(2)
Low type field name
high type fieldname.
use this structure in the tables parameter and then you can directly pass the select options in this and use it like the select-options.
Edited by: Navneet Chaubey on Mar 14, 2009 1:36 AM
‎2009 Mar 13 8:11 PM
‎2009 Mar 13 10:12 PM
Hello Meeta
You may use a generic table type like RSELOPTION or RSDSSELOPT_T. However, this requires that you shuffle the data from twice from your specific select-options to this generic select-option and vice versa.
A much simpler way is to import the name of the report from which you want to retrieve its select-options into the function module and within the fm just call fm RS_REFRESH_FROM_SELECTOPTIONS.
Regards
Uwe
‎2009 Mar 14 2:53 AM
Hi Meeta
you can pass the selectoption to the changing parameter of the function module,since TABLES parameter is OBSOLETE in new releases it would be recomented to use CHANGING parameter.
Regards
Hareesh Menon
‎2009 Mar 19 8:34 AM