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: 

error

Former Member
0 Kudos

i am using a fmodule called md_convert_unit but it is giving me a dump error saying

The call to the function module "MD_CONVERT_MATERIAL_UNIT" is incorrect:

The function module interface allows you to specify only fields

of a particular type under "I_MATNR". The field "GT_TRANS-PRODUCTID" specified

here

has a different field type.

wat can be the reason

4 REPLIES 4

Former Member
0 Kudos

Hi

In the FM call the passing parameters should have the same data types as specified in the FM.

Otherwise such Errors occurs.

Change the datatype of the parameter u getting in the Error to same as the FM .

Hope it helps.

Praveen

Former Member
0 Kudos

Helllo Jamnum-

The field type should be same I tested this FM in my sandbox its working fine you need to pass all the parametrs this means all are mandatory with same field type.

Cheers,

~Srini....

Former Member
0 Kudos

Haiiii,,

VALUE(I_MATNR) LIKE MARA-MATNR

VALUE(I_IN_ME) LIKE MARA-MEINS

VALUE(I_OUT_ME) LIKE MARA-MEINS

VALUE(I_MENGE) LIKE EKPO-MENGE

VALUE(E_MENGE) LIKE EKPO-MENGE

this should be the data types os ur passing varriable.

also pass all the parameters.

it will work fine.

Regards

Sarath

Former Member
0 Kudos

Hi

The function module u have mentioned MD_CONVERT_MATERIAL_UNIT have four parameters :

VALUE(I_MATNR) LIKE MARA-MATNR

*" VALUE(I_IN_ME) LIKE MARA-MEINS

*" VALUE(I_OUT_ME) LIKE MARA-MEINS

*" VALUE(I_MENGE) LIKE EKPO-MENGE

These four parameters are mandatory that is these four parameters are need to be given value. The value that is passed through this parameter should exactly match the date type which is mentioned in the function module. If the data type does nt matches it raises such exceptions else it works fine in its functionality..

Hope it helps you

Bhuvaneswari