Application Development and Automation 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: 
Read only

Import Parameters with sigle multiple ranges

Former Member
0 Likes
1,614

Hi,

I have a requirement like , to create a Function module but to that function module i am importing the parameter material number(MATNR).

But to the import parameter MATNR they can pass

single values or mutiple values or ranges.

How to declare this parameter in FM.

Please anybody help me .

Regards,

Madhavi

Hi,

I have a requirement like , to create a Function module but to that function module i am importing the parameter material number(MATNR).

But to the import parameter MATNR they can pass

single values or mutiple values or ranges.

How to declare this parameter in FM.

Please anybody help me .

Regards,

Madhavi

9 REPLIES 9
Read only

gopi_narendra
Active Contributor
0 Likes
1,445

Use the MATNR under the tables TAB.

You can then pass a internal table which contains multiple MATNR's

Regards

Gopi

Read only

former_member156446
Active Contributor
0 Likes
1,445

try some thing on with tables.

the tables tab in the FM.. create your own structure as use it.

Read only

Former Member
0 Likes
1,445

Madhavi,

Declare an internal table with MATNR .

DATA : Begin of i_mara OCCURS 0,

matnr LIKE mara-matnr,

END OF i_mara .

Instead of Importing parameter

Under " TABLES" tab in FM create internal table like i_mara.

use that internal table to get multiple values.

Don't forget to reward if useful....

Read only

0 Likes
1,445

Hi Murali,

Will this work if they send material number in ranges also.

Let me know.

Read only

0 Likes
1,445

ranges cant be defined in FM so there will be a type conflict..

Read only

Former Member
0 Likes
1,445

Hi Madhavi,

For any function module u r importing the param

(or) ur giving the i/p to tht fnmodule means u hav

to declare tht parameter name under *import*

section ok.

For import parameter of the function module we

will be used to pass single value ok.

If u get any further queries post it.

Regards

AshokChowdhary

Read only

0 Likes
1,445

i hope you didnt get my question,

Yes in importing parameters only i need to send sometimes single values and also multiple values and alslo ranges.

how to deal with this

Read only

0 Likes
1,445

Hi Madhavi,

As mentioned earlier, you can use the tables parameter to pass single value or multiple values.

You can not be able to send Ranges to the tables parameters.

Regards

Gopi

Read only

0 Likes
1,445

hi

this is my requirement.

I have to do validation to this field

As import parameters ( with some checks and conversions )

• __matnr LIKE MARA-MATNR__

__check on MARA-MATNR and MARA-LVORM not equal to “x”.__

__The range of articles can be single or multi article or in a range__

This is will importing parameter, i have to do validation to this field .

How to do.

Let me know