‎2008 Jun 11 1:38 PM
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?
‎2008 Jun 11 1:50 PM
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.
‎2008 Jun 11 1:42 PM
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.
‎2008 Jun 11 1:42 PM
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.
‎2008 Jun 11 1:46 PM
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
‎2008 Jun 11 1:49 PM
‎2008 Jun 11 1:50 PM
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.
‎2008 Jun 11 1:50 PM
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.