2008 Jul 09 11:35 AM
hi friends,
how should i pass values or range of values or select-options to function module so that it return value in some itab.
with regards
2008 Jul 09 11:40 AM
Hi,
If you want to pass Ranges or select optios to the FM
If you are creating a 'Z' FM
then create a structure with high,low,sign,options
then create a table type using this structure..
then u can pass ranges or select-options to this FM.
if u are using any standard FM then there must be an option to pass ranges..
Regards,
Kiran
Hi,
If you want to pass Ranges or select optios to the FM
If you are creating a 'Z' FM
then create a structure with high,low,sign,options
then create a table type using this structure..
then u can pass ranges or select-options to this FM.
if u are using any standard FM then there must be an option to pass ranges..
Regards,
Kiran
2008 Jul 09 11:37 AM
in function module u have to create an export parameter...
and u can pass the range of vaues as internal table and can get the resiult.
CALL FUNCTION 'ZTEST'
tables
DATA = itab
result = it_result.
2008 Jul 09 11:37 AM
Refer this link it wil help for u..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
Regards
Sowmya
2008 Jul 09 11:40 AM
Hi,
If you want to pass Ranges or select optios to the FM
If you are creating a 'Z' FM
then create a structure with high,low,sign,options
then create a table type using this structure..
then u can pass ranges or select-options to this FM.
if u are using any standard FM then there must be an option to pass ranges..
Regards,
Kiran
2008 Jul 09 11:41 AM
You can Define the paramters in the Table tab with out referencing to any Data type.
And in the coding part
You move that to appropriate ranges.
TABLES
*" SEL_OPT
data: r_matnr type range of matnr.
r_matnr[] = sel_opt[].
then perform that select using the R_MATNR in where condition.
then return the table data.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |