Skip to Content
author's profile photo
Former Member

RFC Enabling a Function Module

Hi Friends

I need to remote enable a Function Module( for RFCs ) which was already developed some years ago.

I need to know what all things I need to take care of when remote enabling such a Function Module.

Thanks

~S

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Oct 03, 2005 at 07:51 AM

    Well you can do it through attributes tab. There is a radio button for this but keep in mind a few things about RFC function calls, as you may have to change the function code a little bit

    1: Certain abap statements are not allowed in RFC functions such as 'Leave'

    2: If the orignal function is throwing Exceptions, it is better to return the exceptions in a 'Return' table for your RFC enabled function.

    3: All your import and export parameters must be passed by value.

    Cheers.

    Add comment
    10|10000 characters needed characters exceeded

    • Well it should work. We used to have some RFc functions which were updating some data in other system through call transaction (but those call transactions were in background mode)so this should not be a problem.

      Also i would suggest make a copy of that FM, RFC enable it and test it through in your own system. You can use the RFC destination 'NONE' for that.

  • author's profile photo
    Former Member
    Oct 03, 2005 at 06:54 AM

    Hi,

    First of all u need to know the data is sharing b/w client to client or system to system. u need to go to sm59 tcode to configure the rfc. after that u need to develop fun. module based on client to client or system to system.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 06:54 AM

    NOTHING ONLY THING YOU HAVE TO DO IS IN THE ATTRIBUTES TAB MAKE INSTEAD OF NORMAL FUNCTION MODULE MAKE IT HAS REMOTE ENABLED FUNCTION MODULE

    CHERRS

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 07:43 AM

    this is what u need to do...

    1) change attributes of FM to Remote-Enabled

    2) create RFC destination in SM59, u can specify the logon information here to access the remote system

    3) call the function by specifying the DESTINATION addition in the CALL FUNCTION statement...

    that is...

    CALL FUNCTION <func_name>

    DESTINATION <RFC destination name>

    but make sure of the following...

    1) if u r going to use asynchronous RFC, there should not be a return parameter in the FM,

    2) table header lines cannot be passed in RFC FMs

    3) no parameters can be passed by reference

    read the documentation on RFC for details...

    http://help.sap.com/saphelp_erp2004/helpdata/en/22/042abd488911d189490000e829fbbd/frameset.htm

    rgds,

    PJ

    Add comment
    10|10000 characters needed characters exceeded