‎2006 Oct 25 11:20 AM
HI
how can we pass a select-options as a parameter to a function, i maintained additional rages in select-option in extension
‎2006 Oct 25 11:26 AM
try looping the select option and passing one value at a time
loop at s_option.
CALL FUNTION 'XYZ'
EXPOTING = s_option-low
endloop.
‎2006 Oct 25 11:23 AM
‎2006 Oct 25 11:23 AM
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.
‎2006 Oct 25 11:26 AM
try looping the select option and passing one value at a time
loop at s_option.
CALL FUNTION 'XYZ'
EXPOTING = s_option-low
endloop.
‎2006 Oct 25 11:26 AM
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