2007 Apr 25 12:52 PM
Hi all,
In func moule,how to give select options in input screen.
Regards,
Ram
2007 Apr 25 12:55 PM
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
2007 Apr 25 1:04 PM
HOW TO GIVE IMPORT PARAMETERS TO LOW AND HIGH..
GIVE ME ONEEXAMPLE.
2007 Apr 25 1:09 PM
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.
2007 Apr 25 12:55 PM
how do u execute after giving select opttions inputs?
u have to make use of Export parameters.
Regards
Prabhu
2007 Apr 25 12:56 PM
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
2007 Apr 25 12:56 PM
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
2007 Apr 25 12:58 PM
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
2007 Apr 25 1:02 PM
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
2007 Apr 25 1:16 PM
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>
2007 Apr 25 1:24 PM
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
2007 Apr 25 1:31 PM