Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select option how to pass in Function Module

Former Member
0 Likes
3,376

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

5 REPLIES 5
Read only

Former Member
0 Likes
815

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

Read only

faisalatsap
Active Contributor
0 Likes
815

Hi,

You can Leave the Type Field Blank in the Function Module Table Tab and pass your Select-Option to this for more info [Click Here|]

Regards,

Faisal

Read only

uwe_schieferstein
Active Contributor
0 Likes
815

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

Read only

Former Member
0 Likes
815

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

Read only

Former Member
0 Likes
815

ok