Application Development 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: 

function modules from sap standard ones

Former Member
0 Kudos

How to create remote function modules from sap standard ones?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

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

check this:

http://saptechnical.com/Tutorials/ABAP/RFCCall/Page1.htm

Regards

Anji

5 REPLIES 5

Former Member
0 Kudos

Hi

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

check this:

http://saptechnical.com/Tutorials/ABAP/RFCCall/Page1.htm

Regards

Anji

uwe_schieferstein
Active Contributor
0 Kudos

Hello Reddy

The easiest way is to copy the SAP standard function module to your own (z-) function group. Next you replace the entire coding with the call of the standard function module.

When you set the function module as RFC-enabled it may be necessary to change the types of the interface parameters because for RFC function modules all parameters must be typed to DDIC types.

Sometimes it is necessary to copy global type definitions from the SAP function group to your z-function group as well.

Finally, if the standard function module can raise exceptions it does not make sense to raise them in your RFC-fm, too, because this will result in a dump of the RFC connection. Instead, collect the error message(s) in a RETURN parameter (of type BAPIRET2) like BAPIs do.

Regards,

Uwe

Former Member
0 Kudos

Hi,

In the Function Module Attributes tab you will have 3 radio buttons Normal Function Module, Remote Function Module & Update Function Module. you just need to change it from Normal to Remote. When you change to RFC you may required to change the parameter details as well.

Kindly Award Points If You Find The Reply Helpful.

Cheers,

Chaitanya.

Former Member
0 Kudos

Hi this will be of some help to u.

RFC and BAPIs are remote enabled function modules. They are practicly the same. A BAPI is one step further as it usually is a self contained business function, such as "Create Purchase Order", or "Change Sales Document". BAPIs interface is very well defined and documented. BAPIs can be found in the BAPI browser via transaction BAPI. RFCs are just remote enabled function modules.

BAPI stands for Business Application Programming Interface. It is a library of functions that are released to the public as an interface into an existing SAP system from an external system.

RFC is the protocol used to call functions in an R/3 system by a caller external to R/3 or to call programs external to R/3 from an R/3 system. Functions can only be called via RFC, if they are tagged as RFC functions in the SAP development workbench.

Also,

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

with regards,

Hema Sundara.

pls reward points if u find it helpful.

Former Member
0 Kudos

Hi,

If you want you can copy the standard FM provided by SAP to "Z" or "Y" and in the attributes tab select the RFC enabled radio button.

Thanks,

Sriram Ponna.