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: 

creating range for my import parameters in my custom FM

Former Member
0 Kudos
1,533

Hi

I need to enter multiple values in the import parameters in my custom FM....

How to achieve the same(Range)?

Regards

Gunjan

6 REPLIES 6

Former Member
0 Kudos
301

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

Former Member
0 Kudos
301

Hi,

You are talking about multiple values for a single parameter.

Use <b>Tables</b> paramters instead of export and Import .

Regards,

Anji

Former Member
0 Kudos
301

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

former_member582701
Contributor
0 Kudos
301

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.

former_member582701
Contributor
0 Kudos
301

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

0 Kudos
301

you dont need to create it . its already availalbe .

check out this table type RSELOPTION.

use this as import parameter of your FM