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

Type conflict when calling a function module., error key: RF

Former Member
0 Likes
2,119

Good morning everybody,

  as it is in the subject, I get a Fehlermledung while executing the planning function, for more details:


So I've created a planning function is to work with call funtion of FOX formula (please see below)

"LV_RESULTVAR DATA TYPE I.

CALL FUNCTION ZADVAREXIT_FORMULA_ICK_01

EXPORTING

VAR_COSTS = ZLMUCOST
VAR_DBR = ZLMUDBR

IMPORTING

EV_RESULT = LV_RESULTVAR. "

in SE80 I used a very simple program:

"EV_RESULT = VAR_COSTS + VAR_DBR."

maybe someone here can help with.

Greeting ichtouk

P.S: in SE80 (Please see photos)


4 REPLIES 4
Read only

Former Member
0 Likes
1,615

Hi,

please check the variables or tables which are passing to function module ,

u have not declared as function module variable declaration.

if u post the dumpit helps.

Read only

0 Likes
1,615

Hi Ismail,

You first need to convert the values of var_costs and var_dbr into integer format then, make the addition and assign the result to ev_result.

Read only

Former Member
0 Likes
1,615

Type conflict when calling a function module.

This type of error occur only when Exporting / Importing type of FM didn't got matched with the parameter while calling them.

As Suggest Please check type of all parameter and try to convert it according to your parameter in FM.

BR

ChanS.

Read only

Former Member
0 Likes
1,615

Hi friend,

We need to follow these things explicitly.

1. When you call a FM to your Program, Please check the data type of the parameters which you are going pass the values to it.

If you are mapping the different data type it will lead to type conflict.

Thanks

Pavan.N