cancel
Showing results for 
Search instead for 
Did you mean: 

rfc connection

Former Member
0 Kudos

Can anybody descibe me steps to create rfc with bapi?

Accepted Solutions (1)

Accepted Solutions (1)

dev_parbutteea
Active Contributor
0 Kudos

HI,

first create a function group

create your structures or tables that you will import and export in se11

then create your function module(ensure that it is remote enabled)

use data from your import table(s) to call bapi's

Regards,

Sooness

Answers (1)

Answers (1)

Former Member
0 Kudos

RFC: Stands for Remote Enabled Function Module, this is nothing but a Function Module, Actually FM you can call with in same server, but RFCs can call in between different servers but same Environment. i.e. In different SAP servers.

BAPI: Stands for Business Application Programming Interface, this is nothing RFC. But after creating RFC it should be release and create object in SW01 T-Code to Create a BAPI. In this we have to add the RFC to API method. BAPIs are to connect in between different servers in different environments.

Steps To Create RFC and BAPI.

RFC

1. Create Normal Function Module in attributes Tab you can find a Radio buttons

As Normal, Remote Enabled etc… you have to select Remote Enabled.

2. In Export and Import Parameters should be Pass by value. RFCs parameters are always Pass by value only.

3. This FM should be In a Function group and it should be in a Package, Not local.

4. In tables and source code tabs as usual you can write the code.

5. After creating RFC you have to call the FM in destination system.

6. To connecting between different servers we have to create destinations actually this is BASIS people work.

7. SM59 is T-Code to create Destination.

8. Once create the destination you can call the FM in target system.

BAPI: After completion of all these above steps. We have to release the FM. Up to RFC creation Same after that follow the below steps.

1. Once it is released you can go to SW01

2. Create Object follow all the steps and to that object we have to add our FM name in API method. It should be implement and relased.

3. Here Key fields, Methods, object etc… we have to add Key fields to that object.

4. If you want to create a BAPI the RFC name should be follow as BAPIZXXXX and import and export parameters also follow BAPIXXX and return type should be BAPIRETURN.

5. Once it is created, implemented and released successfully you can see in BOR Business Object Repository it is BAPI explorer here you can find all the BAPIs list.

If any doubts reply.

Regards

Ganesh