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

update table in another SAP system

Former Member
0 Likes
2,487

Hi Guru's

I have requirement, in which the outout of the report should be update Z table in another SAP System.

How we can do this?

Thanks

Karthi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,459

hello,

you can write a RFC to get select data from system A..

call that RFC from system B to get that data and update require Z table...

Thanks.

6 REPLIES 6
Read only

Former Member
0 Likes
1,460

hello,

you can write a RFC to get select data from system A..

call that RFC from system B to get that data and update require Z table...

Thanks.

Read only

0 Likes
1,459

Thanks yar,

So i have write the RFC code in the system A, which display the output?

and the call the same RFC in the system B and update the table.

its rite?

Thanks

karthi

Read only

0 Likes
1,459

Hi Karthi,

You have to create RFC FM in the system B where you want to update the database.

And call that RFC FM in the system A where your output is getting displayed.

You can use simple code like Modify table from Internal table statement in that FM.

Thanks

Naresh.

Read only

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Likes
1,459

Hello karthis,

if you want to execute report in system A which will update table in system B,

You can:

1. develop a function module "ZUPDATEXXX" in system B, make sure mark it as "remote enabled module" in SE37 or else you will meet with runtime error.

2. in your report in system A, call 'ZUPDATEXXX' in system A ( this function module needn't exist in system A )

3. in system A, tcode SM59, create a RFC destination which points to system B.

Hope it works.

Best Regards,

Jerry

Read only

Former Member
0 Likes
1,459

Hello Karthik ,

added to the above mentioned points , While Calling function you need to call other system FM with Destination with its parameters.

Create a FM in System B with parameter for passing the Source Code from system A. Write your code to update the source code.


call Function 'XYZ' Destination  Destination_name
  IMPORT

  EXPORT
.

Please refer the below links.

[http://www.sapdev.co.uk/bapirfc/rfcsap.htm]

Read only

Former Member
0 Likes
1,459

RFC from display system

Calling the RFC to update system