Skip to Content
author's profile photo Former Member
Former Member

creating the custom rfc

hi,

Is it possible to create custom rfc function module, to call all function modules which are not rfc from external environment like .Net... etc.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 05:05 AM

    <b>yes it is possible</b> ..

    <b>Create an RFC type function module which is called BAPI ...</b>

    Thorugh BAPI'S we can do data transfer ..... once the data is trasferred the within it you can have your own function module which is non-rfc type also ... For some other manipulation ....

    Examples like :

    <b>Authorisation check ,

    posting not valid ,

    posting dates verification ,</b>

    the above are alll not RFC type but it gets called with in the BAPIS ...

    reward points if it is usefulll.....

    Girish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 13, 2007 at 05:12 AM

    mukka chakradhar

    <b>

    Is it possible to create custom rfc function module, to call all function modules which are not rfc from external environment like .Net... etc

    </b>

    Regarding your question i understand that you need common RFC fm (say fm1)within you need functionality to call any non RFC function modules(say fm2)?

    My question is if

    fm2 contains exporting paramters are like EKKO and EKPO

    and in other scenario

    fm2 contains exporting paramters are like MARA and MARC

    in this case how you define these exporting tables in fm1?

    aRs

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 04:52 AM

    Hi Chakradhar,

    It is definitely possible to create a custom RFC inorder to call non-RFC FM's from SAP from other legacy systems.

    We create an FM(Z_XFM) and call non-FM's within this FM (Z_XFM). We need to take care that all the parameters (both import and export) of the called FM's inside Z_XFM are defined for Z_XFM as well.

    Now just RFC Enable this FM (Z_XFM) and all what is required is done.

    <b>

    Reward points if this helps,</b>

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 13, 2007 at 05:00 AM

    Hi,

    No This isnot possible, due to exporting parameters and exporting tables are different in each function module.

    aRs

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 05:02 AM

    Hi

    Yes, You can create Custom RFC to call a External Fun module

    RFC (Remote Function Call) is similar to the general SAP fun module: except that in the attributes you click the radio button: RFC enabled;

    and you will be passing an Import parameter DESTINATION to it.

    Other code and usage will be similar to any fun module;

    Have a look at any fun module in SE37 to understand better about the different components of Fun modules;

    Refer this link:

    http://help.sap.com/saphelp_nw04/helpdata/en/22/042518488911d189490000e829fbbd/frameset.htm

    check out the following link it might help you

    http://help.sap.com/printdocu/core/Print46c/de/data/pdf/BCFESDE2/BCFESDE2.pdf

    <b>Reward points for useful Answers</b>

    Regards

    Anji

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.