Application Development 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: 

Pass Select-option as FunctioModule parameter ?

Former Member
0 Kudos

Hi experts,

I need to pass the Select-option parameter as import of a function module.

How can i do that?

Regards

Dhanya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

e.g: SELECT-OPTIONS: EBELN FOR EKKO-EBELN.

the value of the EBELN will be 'IEQ0049' in the EBELN internal table.

If u r passing the value u have to truncate the first 3 characters.

Then only u have to pass the value to function module.

Or

U can pass the value like EBELN-LOW / HIGH.

Thanks & Regards

Santhosh

5 REPLIES 5

Former Member
0 Kudos

Hi Dhanya,

Just pass it in TABLES and do not specify any type for the table.

Reward points if useful.

Regards,

Atish

amit_khare
Active Contributor
0 Kudos

Ok, so you can start by creating your structure in the ABAP dictionary, define 4 fields, SIGN, OPTION, LOW and HIGH. SIGN should be character with length 1, OPTION should be character length 2, LOW and HIGH should be the same type as your select-option fields, for example, the first one BUKRS, it should be typed like this field. Now that you have your structure, you can now use it in the definition of your funciton module in the TABLES tab, now all you need to do is pass the select-option to your function call via this new TABLES parameter.

~ As find in forum.

Regards,

Amit

reward all helpful replies.

Former Member
0 Kudos

Hi,

e.g: SELECT-OPTIONS: EBELN FOR EKKO-EBELN.

the value of the EBELN will be 'IEQ0049' in the EBELN internal table.

If u r passing the value u have to truncate the first 3 characters.

Then only u have to pass the value to function module.

Or

U can pass the value like EBELN-LOW / HIGH.

Thanks & Regards

Santhosh

former_member404244
Active Contributor
0 Kudos

Hi,

create a structure in SE11 with four fields.

For example(ZSTRT)

1>SIGN

2>OPTION

3>LOW

4>HIGH.

Now in the tables parameter give some name (like this)

I_select type ZSTRT.

Regards,

nagaraj

Former Member
0 Kudos

Hi,

use it as a table without mentioning any associate in function module.because select-options internally create an internal table with fields low,high,sign,and option.

rgds,

bharat.