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

Remote enable module - exceptions issue

Former Member
0 Likes
1,294

Hello all,

I have a function module.

I choosed to make it RFC : Remote enable module.

Then I got the message During RFC/update, no exception classes can be used, when I try to check it.

So I commented all parts regarding exceptions, deleted the Exceptions part .

And I still receive the same message

I don't know what else to do... Does anybody has an advice ?

Thank you !!!

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
1,062

Ariana,

on the exception tab of your RFC, you must have marked the checkbox 'Exceptn Classes' (checkbox just above your first exception). Uncheck this and you'll be fine.

5 REPLIES 5
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,062

Hello Ariana,

Can you share your code with us ?

BR,

Suhas

Read only

Former Member
0 Likes
1,062

Did you remove the exceptions from the FM interface?

Rob

Read only

Former Member
0 Likes
1,062

Hi Ariana,

Try not to use exceptions in an RFC, collect all the error in a return table rather than giving an exceptions.

If possible try to show the code which you have written.

Regards,

Prashant

Read only

Sm1tje
Active Contributor
1,063

Ariana,

on the exception tab of your RFC, you must have marked the checkbox 'Exceptn Classes' (checkbox just above your first exception). Uncheck this and you'll be fine.

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,062

Hello Ariana

Most likely there is an exception class defined in the signature of your function module.

Remove the exception class and replace it with a standard exception and then the compilation error should disappear.

However, RFC-enabled fm's should not raise any exception because otherwise the RFC connection will dump. Instead, return the errors as messages in a RETURN parameter (of table type BAPIRETTAB) like it is done in BAPIs.

Regards

Uwe