
Note
SAP systems can establish trusted relationships with each other. If a calling (sending) SAP system is known to the called (receiving) system as a trusted system and the user who issued the RFC call is defined in both of the systems, no password is supplied. The calling SAP system must be registered with the called SAP system as a trusted system. The called system is the trusting system.
Trusted relationships among various SAP systems have the following advantages:
Single Sign-On (SSO) is possible beyond system boundaries.
No passwords are transmitted in the network.
The timeout mechanism protects against replay attacks.
User-specific logon data is checked in the trusting system.

The trusted relationship is not mutual, which means that this relationship is applicable in one direction only. To establish a mutually trusted relationship between two partner systems, you must define each of the two trusted systems in the corresponding partner systems.
BES trusts the FES
To communicate with BES, the FES uses an alias for BES and interacts with BES using a trusted RFC connection. In the BES, you must create an RFC destination to the SAP Gateway system on your FES and define the trust relationship between the BES (to be the trusting system) and the FES system (to be the trusted system).
FES trusts the BES
This direction is relevant in a development system, where developers are creating SAP Gateway services in the BES, which should be registered in the FES.
Another use case for this direction are notifications – created in the BES system and sent to the FES system via trusted RFC.

To enable the trusted systems to operate properly, the systems must have the same security level requirements and user administration. Before you can define a trusted system, you must create a destination for this system in the trusting system. To do so, use transaction SMT1, or choose Extras→Trusted systems on the RFC destination overview screen (transaction SM59). In the trusted systems, destinations for trusting systems are automatically created. These destinations are used when you display trusting systems through Extras→Trusting systems (transaction SMT2).
The user using the trusted RFC must have the corresponding authorizations in the trusting system (the S_RFCACL authorization object). In addition, you can configure the system to perform an authorization check on the transaction code from the calling system. To do this, you need to choose the Use transaction code option on the trusted system entry in transaction SMT1. When you choose this option, an authorization check is performed in the called system for the transaction code (the RFC_TCODE field of the S_RFCACL authorization object). You can check the authorizations for the logged-on users in the trusting system in advance by using the AUTHORITY_CHECK_TRUSTED_SYSTEM function module.
Alternatively, run task list SAP_SAP2GATEWAY_TRUSTED_CONFIG to set up a trusted relation.






