‎2007 Jun 15 2:37 AM
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.
‎2007 Jun 15 2:41 AM
Hi Praveena,
1. No need to mention RFC destination.
2. No there will be no issue with performance.
Reward points if useful.
Regards,
Atish
‎2007 Jun 15 2:45 AM
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.
‎2007 Jun 15 4:36 AM
One more
Please capture all exceptions properly, this will help calling systems get proper return messages.
aRs
‎2007 Jun 15 4:50 AM
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
‎2007 Jun 15 7:47 AM
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.