cancel
Showing results for 
Search instead for 
Did you mean: 

Error:The return type is incompatible

Former Member
0 Kudos

Hi Friends,

I am getting these errors when a new structure has been added to my Function Module.

1)The return type is incompatible with DynamicRFCModelClassExecutable.getResult()

2)The return type is incompatible with ICMIQuery.getResult()

Can anyone explain me what exactly might be the problem and also if possible can anyone help me out to resolve this issue.

I am struck at this point wherein i cannot deploy my application.

Please help.

Thanks and regards,

Chandrashekar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

The return value from the RFC is not compatible with the receiving structure that you have created.. After importing the model try to map the imported model structure with the component context by click and drag method. And try to bind the values to any UI element and try.

Hope this time it should work

Regards

- Vinod

xxxxxxxxxxxxxxxxxx

Edited by: Armin Reichert on Apr 26, 2008 6:42 PM

edwinguedez
Explorer
0 Kudos

Hello,

To  solve this issue, you must change the result parameter name. This happens because the 'result' name has conflicts with the name method of those classes.

Regards,

Edwin Guedez

Former Member
0 Kudos

Hi,

When their is a change in your RFC(backend), you need to reimport the model.

You need to clear the metadata cache on the server or

(restart the server)

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ayyapparaj,

Firstly i have reimported the model for the changes,and got the server restarted.

Again i have reimported for some testing purpose and left the model like that.

Now i have Created a New Model and got all my Function Modules and binded.

Now i am still getting these errors.

My Question is ,is it still necessary to restart the server though i have created a fresh Model.

Regards,

Chandrashekar.

Former Member
0 Kudos

Hi,

"My Question is ,is it still necessary to restart the server though i have created a fresh Model"

Server restart(metadata refresh) is not needed if their is no changes in the backend(ABAP side).

One thing you have to make sure is that their no further changes that can impact your model once its imported.

Regards

Ayyapparaj