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

Regarding Select-options

Former Member
0 Likes
1,022

Hi,

How to pass Select-options to a Function Module ,

One by one the the whole range should be passed to the Function Module,

1 ACCEPTED SOLUTION
Read only

faisalatsap
Active Contributor
0 Likes
1,002

HI,

Have a look at my post in the following Thread

[select option in function module |;

Hope will solve out.

Kind Regards,

Faisal

9 REPLIES 9
Read only

former_member386202
Active Contributor
0 Likes
1,002

Hi,

Just loop on selct option table.

Regards,

Prashant

Read only

Former Member
0 Likes
1,002

Hi,

Select Option is like an internal table.

So you can either assign that table name to FM at one go

or Loop at the Select option and then call FM inside that.

For reference

[;

Hope it will help you.

Regards

Natasha Garg

Edited by: Natasha Garg on Feb 5, 2009 7:54 AM

Read only

0 Likes
1,002

hi,

How can looping solve it,

The table will have the fields Low and High,

I want to paas all the data between this low and high including this low and high to the function module.

I tried this by creating another table and took all the values from low to high in that and then passed it to the Function Module, But will the work with the character field.

Read only

0 Likes
1,002

Hi,

You can do one thing. Fetch all the values from the table based on your select option and get them in some internal table.

Select <your_field> from <corresponding_table>

in i_tab where <your_field> in select_option.

Then you can give it in FM.

Regards

Natasha Garg

Read only

0 Likes
1,002

Thanks Natasha ,

Even I was thinking of doing the same,

Read only

faisalatsap
Active Contributor
0 Likes
1,003

HI,

Have a look at my post in the following Thread

[select option in function module |;

Hope will solve out.

Kind Regards,

Faisal

Read only

kamesh_g
Contributor
0 Likes
1,002

hi

better option : as select option is like internal table directly pass internal table to FM as considering performance ( when we use LOOP it will take too long in production ).

Read only

Former Member
0 Likes
1,002

Hi,

refer selectoptionfunctionmodule in se37

Read only

abap_team
Explorer
0 Likes
1,002

Hi Nair

Please use the link below to find the solution.