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: 

select options in function module

Former Member
0 Kudos

Hi all,

In func moule,how to give select options in input screen.

Regards,

Ram

11 REPLIES 11

Former Member
0 Kudos

There is no option for select option. Instead you can have two import paramer to the FM:

1. one containing high value

2.other containing low value

0 Kudos

HOW TO GIVE IMPORT PARAMETERS TO LOW AND HIGH..

GIVE ME ONEEXAMPLE.

0 Kudos

Hi,

look at this code :


select-options : s_matnr for mara-matnr.
...
...
Call function <FM name>
         TABLE 
            r_matnr = s_matnr.
...
...

with r_matnr declared as a range in the FM.

Reward if usefull.

Regards,

Stéphane.

Former Member
0 Kudos

how do u execute after giving select opttions inputs?

u have to make use of Export parameters.

Regards

Prabhu

Former Member
0 Kudos

Hi if you check the SAP standard BAPI - BAPIWWG5_MATERIAL_GROUP_RANGE there you will find select-options for material group range. In the similar manner you can define in your FM as table parameter with select-option..

Cheers

Former Member
0 Kudos

Hi Lokesh,

You cannot have any SELECT-OPTION or any direct input to FM through screens.

FM are called in a programso u can create a SELECT-OPTION in that program and then u can pass it to FM.

But it will take some effort to do that.

Thanks,

Utsah Garg

former_member196299
Active Contributor
0 Kudos

HI,

you can not give select-options in Function modules ...

rather to pass multiple values you can pass an internal table . and in the function module creation mention the internal table name as tables parameter.

pass the multiple values to this itab and then to the function module ..

this is the solution known to me for passing muiltiple values

to a function module .

Reward if helpful !

Thanks

Ranjita

Former Member
0 Kudos

Hi,

You can build ranges instead , it works similar to select options

ranges : r_matnr for mara-matnr.

r_matnr-sign = 'I'.
r_matnr-option = 'BT'.
r_matnr-low = '0000000'.
r_matnr-high = '999999'.
append r_matnr

former_member189631
Active Contributor
0 Kudos

Hi Lokish,

  • It is not possible to have select options in Function Module

The one way is,

  • You can create a import and Export Parameter for Inputs and output

  • You can create webdynpro ABAP project in se80.

  • Let your webdynpro project to utilize your FM.

  • Create UI element screen and Bind your Import with any UI element such as Input field,Table,Textedit,etc.

  • You use webdynpro Java for the same Functionality.

Regards,

<b>Ramganesan K.</b>

athavanraja
Active Contributor
0 Kudos

do you want to take a range table (aka select option field values) as import parameter for your function module.

then use a import parameter of type RSSELECT_TAB

Raja

0 Kudos

DEAR FRIENDS,

HERE MY VERSION IS 4.6C

SO PLEASE SUGGEST ME..