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-options

Former Member
0 Likes
578

HI

how can we pass a select-options as a parameter to a function, i maintained additional rages in select-option in extension

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
538

try looping the select option and passing one value at a time

loop at s_option.

 CALL FUNTION 'XYZ'
    EXPOTING = s_option-low

endloop.

4 REPLIES 4
Read only

Former Member
0 Likes
538

hi,

Check these threads....

Cheers

Alfred

Reward with points for helpful answers

Read only

Former Member
0 Likes
538

Hi namburi,

1. Find the appropriate structure in se11,

for the range.

2. In FM, pass it using TABLES

(and not export)

3. EG

4. For BUKRS Select option,

we can use the standard structure

RNG_BUKRS

as TABLES parameter in se37 , FM definition.

5. Then we simply pass the select-option,

in tables

CALL FUNCTION 'XYZ'

EXPORTING

TABLES

MYBUKRS = BUKRS.

.

regards,

amit m.

Read only

Former Member
0 Likes
539

try looping the select option and passing one value at a time

loop at s_option.

 CALL FUNTION 'XYZ'
    EXPOTING = s_option-low

endloop.

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
538

Hi,

You can pass it with generic data type and then cast it to your required select-options type in the function module.

Or else you can create type using type range of in a type-pool and then use this type in the function module interface.

Have this in a type-pool.

TYPES: sel_type type range of data_type.

use sel_type in the function module interface.

Regards,

Sesh