2008 Jan 07 3:56 AM
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
2008 Jan 07 4:00 AM
Use the MATNR under the tables TAB.
You can then pass a internal table which contains multiple MATNR's
Regards
Gopi
2008 Jan 07 4:01 AM
try some thing on with tables.
the tables tab in the FM.. create your own structure as use it.
2008 Jan 07 4:02 AM
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....
2008 Jan 07 4:23 AM
Hi Murali,
Will this work if they send material number in ranges also.
Let me know.
2008 Jan 07 4:25 AM
ranges cant be defined in FM so there will be a type conflict..
2008 Jan 07 5:07 AM
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
2008 Jan 07 5:11 AM
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
2008 Jan 07 5:15 AM
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
2008 Jan 08 5:15 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |