2007 Mar 13 11:11 AM
Hi
I need to enter multiple values in the import parameters in my custom FM....
How to achieve the same(Range)?
Regards
Gunjan
2007 Mar 13 11:14 AM
Hello Gunjan,
U mean to say u need to pass a table in Import parameter.
If I understand u correctly then U can have a look at the FM REUSE_ALV_GRID_DISPLAY and do it for ur requirement. SInce in this we are passing the fieldcatalog as table .
Regards,
Vasanth
2007 Mar 13 11:14 AM
Hi,
You are talking about multiple values for a single parameter.
Use <b>Tables</b> paramters instead of export and Import .
Regards,
Anji
2007 Mar 13 11:15 AM
Hi,
You can define an structure in se11:
ZRANGE
SIGN(1),
OPTION(2),
LOW LIKE f,
HIGH LIKE f,
and then define in the import/tables of the FM your variable of type ZRANGE
Regards
2007 Mar 13 11:18 AM
You need create a struct in SE11. You need this four fields:
ZRANGE.
SIGN char 1
OPTION char 2
LOW and HIGH type of your range values
Now, in TABLES you have to pass a table range like new struct.
RANGE LIKE ZRANGE.
2007 Mar 13 11:24 AM
If u dont kwno how fill the range:
For interval range:
sign = 'I'.
option = 'BT'.
Low = your low limit
high = your high limit
Append.
For multiple entries:
sign = 'I'.
option = 'EQ'.
low = value
append.
sign = 'I'.
option = 'EQ'.
low = value
append.
etc
Hope it helps u
2007 Mar 13 11:33 AM
you dont need to create it . its already availalbe .
check out this table type RSELOPTION.
use this as import parameter of your FM