07-05-2007 8:02 AM
Hi experts,
I need to pass the Select-option parameter as import of a function module.
How can i do that?
Regards
Dhanya
07-05-2007 8:09 AM
Hi,
e.g: SELECT-OPTIONS: EBELN FOR EKKO-EBELN.
the value of the EBELN will be 'IEQ0049' in the EBELN internal table.
If u r passing the value u have to truncate the first 3 characters.
Then only u have to pass the value to function module.
Or
U can pass the value like EBELN-LOW / HIGH.
Thanks & Regards
Santhosh
07-05-2007 8:04 AM
Hi Dhanya,
Just pass it in TABLES and do not specify any type for the table.
Reward points if useful.
Regards,
Atish
07-05-2007 8:08 AM
Ok, so you can start by creating your structure in the ABAP dictionary, define 4 fields, SIGN, OPTION, LOW and HIGH. SIGN should be character with length 1, OPTION should be character length 2, LOW and HIGH should be the same type as your select-option fields, for example, the first one BUKRS, it should be typed like this field. Now that you have your structure, you can now use it in the definition of your funciton module in the TABLES tab, now all you need to do is pass the select-option to your function call via this new TABLES parameter.
~ As find in forum.
Regards,
Amit
reward all helpful replies.
07-05-2007 8:09 AM
Hi,
e.g: SELECT-OPTIONS: EBELN FOR EKKO-EBELN.
the value of the EBELN will be 'IEQ0049' in the EBELN internal table.
If u r passing the value u have to truncate the first 3 characters.
Then only u have to pass the value to function module.
Or
U can pass the value like EBELN-LOW / HIGH.
Thanks & Regards
Santhosh
07-05-2007 8:18 AM
Hi,
create a structure in SE11 with four fields.
For example(ZSTRT)
1>SIGN
2>OPTION
3>LOW
4>HIGH.
Now in the tables parameter give some name (like this)
I_select type ZSTRT.
Regards,
nagaraj
07-05-2007 8:31 AM
Hi,
use it as a table without mentioning any associate in function module.because select-options internally create an internal table with fields low,high,sign,and option.
rgds,
bharat.