Application Development and Automation 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: 
Read only

RFC

Former Member
0 Likes
787

Hi,

I have to update the data from one server to another one(same table in both the server).that's why i created 1 function module,which is remote enabled in both the server, but i don't know what in the program i have to write?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
766

Suppose you want to transmit records from Server A to Server B.

1. First create a Remote enables Function module in server 'A'.

2. Create an internal table 'itab' in the FM.

3. Use 'select' statement to populate the 'itab'.

4. Enter 'itab' in the tables parameter of the FM.

In the B server, create a report program

1. Call the FM using: Call function <FMname> destination

<dest name>.

2. create internal table of same type.

3. Update into the database table.

6 REPLIES 6
Read only

Former Member
0 Likes
766

Hi Priya,

craete a tables parameter in the RFC,

In the calling program of RFC , select the data from the table pass it to the tables parameter of the RFC.

In the RFC,

Use the table parameter to update the dtabase table in that server.

Thanks,

Keerthi.

Read only

Former Member
0 Likes
766

You mark the Function as RFC enabled. ans use all parms as pass by value.

I hope the destinations (RFC) are there...for connecting one server to another.

and Write the same code.... normal procedure.

use update or modify or insert according to your requirement.

Read only

Former Member
0 Likes
766

Hi Priya,

You can use BAPI for this

or you can use ALE / IDOC

create RFC Between two servers.

create Model view. in bd64

if you are using BAPI then select ADD Bapi.

and give bapi object name and method name.

if you are using IDOC , then give message type

Click Environment - > Generate Partner Profiles

it should display message as PORT created

create IDOC

and transfer request IDOC

from receiver system , Receive request IDOC

check IDOC no in WE05 and process in WE19

Regards,

Ani

Read only

Former Member
0 Likes
766

.

Read only

Former Member
0 Likes
766

HI,

please refer to this link below. u can find the example to work with transactional RFC

help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE2/BCFESDE2.pdf

rgds,

bharat.

Read only

Former Member
0 Likes
767

Suppose you want to transmit records from Server A to Server B.

1. First create a Remote enables Function module in server 'A'.

2. Create an internal table 'itab' in the FM.

3. Use 'select' statement to populate the 'itab'.

4. Enter 'itab' in the tables parameter of the FM.

In the B server, create a report program

1. Call the FM using: Call function <FMname> destination

<dest name>.

2. create internal table of same type.

3. Update into the database table.