cancel
Showing results for 
Search instead for 
Did you mean: 

creating the custom rfc

Former Member
0 Kudos
887

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.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member194669
Active Contributor
0 Kudos

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

Former Member
0 Kudos

<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

Former Member
0 Kudos

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

former_member194669
Active Contributor
0 Kudos

Hi,

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

aRs

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

thankyou for ur reply.but the export parameters for every functionmodule is changed na, how it is possible.