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

RFC Function Module

Former Member
0 Likes
544

Hi all,

I am creating an RFC Function Module. I have some doubts in that.

1. While creating the RFC FM do I need to mention anywhere the RFC Destination? (Apart from making the FM as remote call)

2. I read that it is advisable to creating import and export parameters in RFC FM using the LIKE reference to DDIC fields. But in my requirement I am using in built types. Does this make any impact on the efficiency of the FM?

Thanks,

Mungala.

5 REPLIES 5
Read only

Former Member
0 Likes
499

Hi Praveena,

1. No need to mention RFC destination.

2. No there will be no issue with performance.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
499

Hi Praveena,

1. You do not need to specify a destination in the FM when you are creating it. Once you remote enable it, the function module can be called remotely.

2. It is good practice to create import and export parameters that are typed to a DDIC field, since this will allow for design time checking of type compatibility. In terms of efficiency, I doubt there would be much improvement, but it would be better design in my opinion.

Read only

former_member194669
Active Contributor
0 Likes
499

One more

Please capture all exceptions properly, this will help calling systems get proper return messages.

aRs

Read only

Former Member
0 Likes
499

for creating rfc you need not to concentrate on destination but after creating that when you will call the fn module in program then you have to specify destination..

call function 'ZRFC' destination <dest name>...

and you can create the destination in SM59.

for parameter you can not use type <built in type> it will show you the error for rfc. So always you have to reffer to data elemnt or ddic field and use like.

regards

shiba utta

Read only

Former Member
0 Likes
499

Hi Praveena,

You need not specify the destination type for RFC FM. It can be called from any other system, and while calling , the destination of Remote Enabled FM needs to be specified so that the system can call the required Remote enabled FM.

Also you will get an error if you use type specification. Also take care of the data types while making of RFC FM as mismatch in data types can lead to short dumps...

Reward points if useful

Harmeet.