2010 May 23 1:46 PM
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
2010 May 23 1:56 PM
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.
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
2010 May 23 1:56 PM
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.
2010 May 23 2:30 PM
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
2010 May 23 3:30 PM
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.
2010 May 24 3:54 AM
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
2010 May 24 5:15 AM
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]
2010 May 24 7:31 AM