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: 

probelem with passing parameters to function module

Former Member
0 Kudos

hey i am facing a problem to pass the parameters to function module.let me explain.. we cant pass the parameters which we are using in the select option statements directly to a function module called...i just wanna know if there is any way so that i can pass those values to a fnc module while passing it from select options

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

you have to use loop at s_lifnr.

call your Fm.

pass s_lifnr-low.

endloop.

4 REPLIES 4

Former Member
0 Kudos

Hi,

You have to create a table type in SE11..

Check this sample table type PDSMAINT_MATNR_RNG_T...

Then use that table type in the importing parameter of FM..

PT_MATNR TYPE PDSMAINT_MATNR_RNG_T..

For which field you have created select-options..I will check if there is any existing table type in se11..

Thanks,

Naren

former_member632991
Active Contributor
0 Kudos

Hi,

since select option are itself as internal table so either pass the low or high value of select option or use loop at the internal table nad use FM in the loop.

Regards,

Sonika

Former Member
0 Kudos

hi,

you have to use loop at s_lifnr.

call your Fm.

pass s_lifnr-low.

endloop.

0 Kudos

hey could jst tell me in detail the method i dint get u... i am very new to abap world