Setup IDoc AAE in ECC side

1, Create RFC destination to PI in SM59.

Program ID should match what we set in XI_IDOC_DEFAULT_DESTINATION, and gateway service should be java gateway service

2, Create a Port in WE21

3, Create Partner Profile for logical system of PI with t-code WE20

4, Create Distribute Model for ECC->PI, t-code: BD64

5, Send a IDoc of material master data by t-code: BD10

Specify the message type and logical system

6, Check IDoc status in WE02

7, Check T-RFC status in SM58

If met error message like below, check the mult-Respository RFC. And if unauthorization error check the RFC user roles and type.