Application Development 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: 

Update another system tables

former_member225623
Participant
0 Kudos

Hi Folks,

I have two systems one is ECC and another is PI system.

if i create purchase order using using ME21N T-code in ECC  i need to update one DB table in PI system automatically at the time of creation of purchase order..

Please help me for  how to update DB table in another system.

5 REPLIES 5

Former Member
0 Kudos

Hi ,

You can Create a RFC Enabled FM and pass the table data to be updated in PI System and call it at PO Creation Time in the SAVE EXIT.

(USER_EXITSAVE_DUCUMENT_PREPARE).

Hope this will help.

Regards,

Amit

0 Kudos

If possible please provide any sample code

0 Kudos

Hi ,

You may try like this,

1. Make an FM RFC enabled in the PI System , with your logic to be used.

2. suppose the FM name is r3_2_pi.

3. you need to have s trusted RFC connection from r3 to pi for this.

4. Call thi s FM remotely from the R3 System in the exit.

5. like call 'r3-_2_p1' destination 'YOUR RFC CONNECTION'

                                                            Passing your table to be updated.

Hope this will help you .

Please let us know thw outcome.

Regards,

Amit

0 Kudos

Creation of RFC is on ECC side or PI side?

Calling RFC is from ECC?

0 Kudos

Hi,

Yes, for this you need RFC on ECC  side RFC for ECC TO PI.

And the FM Will be in the PI System.

Hope this will help you.

Regards,

Amit