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: 

RFC Program

Former Member
0 Kudos

Hi All,

Can anybody send RFC example program.

Thanks in advance,

Das.......

1 ACCEPTED SOLUTION
6 REPLIES 6

Former Member
0 Kudos

RFC is not a program...

when you create a function module, you can specify if this function module can be called from another logical system (either a totally different system or a different client in the same system). you can do this by selecting the "Remote enabled module" radio button in the attributes tab of the function builder.

Once you do this, this function module can be called from another logical system. In the calling system, you first need to create a RFC destination in transaction SM59 which points to the system where the function module has to be executed. You need to specify the ip address of the system, a name for the destination and the login information for that system.

After doing this, you can write the following sample code in the calling program to call the remote enabled function module (RFC function module).

CALL FUNCTION '<Your function name>' DESTINATION <'name of rfc destination created above>'

<parameter list>.....

hope that helps...

Former Member

Former Member
0 Kudos

Hi ,

RFC is not a program. It is similar like funtion module but remote function call enabled so that u can call it from other applications.

Some of the points to take care abt RFC are :

1. Check the radio button RFC enabled in Attribute after going to SE37.

2. In the import export parameters check the pass by value options. otherwise it will show error.

Thanks

Papiya

Former Member
0 Kudos

Hi All,

Acually my problem is I have to fetching and sending data from third party tool for that I have to write a program. So I need exmple program for reference.

Thanks in advance,

Das........

0 Kudos

in that case you need to find out how your tool integrates with sap to call the rfc function modules....as far as writing the RFC is concerned,.....its same as writing a function module which fetches some data and returns it in the form of an internal table....you need to check in your tool how to call this FM and how to use the data that it is returning.....