Purpose
The Purpose of this page is to illustrate with detailed step-by-step instructions and screenshots how you can setup a Trusted/Trusting Relationship between 2 SAP ABAP systems.
Overview
This page explains in detail how to create a trusted connection between 2 systems: ABC Client 100 & XYZ Client 100.
Creating the RFC destination on the ABC client 100
Logon to ABC – go to transaction SM59 and create an RFC destination:
- RFC Destination: XYZ_TRUST
- Connection Type 3: ABAP Connection
- Description: Trusted RFC connection for XYZ System Client 100
- Target host: <target hostname>
- System Number: Instance number of XYZ
- Gateway Host: Recommended to provide the gateway host
- Gateway Service: sapgw<nn> where <nn> is the instance number of XYZ
- Under the Logon & Security tab:
- Enter the Language
- Enter the client
- User: Specify a user with Admin access (SAP_ALL / SAP_NEW) on XYZ
- Password: Password for above user
- Trust Relationship: No
- Save and perform an authorization test (Ctrl + F4)
Creating the RFC destination on system XYZ client 100 system
- Logon to the XYZ Client 100 system – go to transaction SM59 and create an RFC destination:
- RFC Destination: ABC_TRUST
- Connection Type 3: ABAP Connection
- Description: Trusted RFC connection for ABC System Client 100
- Target host: <target hostname>
- System Number: Instance number of ABC
- Gateway Host: Recommended to provide the gateway host
- Gateway Service: sapgw<nn> where <nn> is the instance number of ABC
- Under the Logon & Security tab:
- Enter the Language
- Enter the client
- User: Specify a user with Admin access (SAP_ALL / SAP_NEW) on ABC
- Password: Password for above user
- Trust Relationship: No
- Save and perform an authorization test (Ctrl + F4)
Maintain the trusted system details in the ABC system (transaction SMT1)
In transaction SMT1 create an entry for the trusted system by providing the RFC destination XYZ_TRUST and then Save in the subsequent screen
Edit the RFC destination XYZ_TRUST under the Logon & Security tab with the below details:
- Language: EN
- Client: 100
- Check the “Current User” checkbox
- Trust Relationship: Yes
Save and then perform an authorization test (Ctrl + F4)
Maintain the trusted system details in the XYZ system (transaction SMT1)
In transaction SMT1 create an entry for the trusted system by providing the RFC destination ABC_TRUST and then Save in the subsequent screen
Edit the RFC destination ABC_TRUST under the Logon & Security tab with the below details:
- Language: EN
- Client: 100
- Check the “Current User” checkbox
- Trust Relationship: Yes
Save and perform an authorization test (Ctrl + F4)
Authorizations required for RFC trust relationship to work
The above RFCs will work provided you have the s_rfcacl authorisation object access with the following values mentioned in the respective systems:
( > Release 7.02):
On the ABC system:
- RFC_SYSID : XYZ
- RFC_CLIENT: 100
- RFC_USER : ' '
- RFC_EQUSER: Y (for Yes)
- RFC_TCODE : *
- RFC_INFO : ######### ( installation number of the XYZ)
- ACTVT : 16
On the XYZ system:
- RFC_SYSID : ABC
- RFC_CLIENT: 100
- RFC_USER : ' '
- RFC_EQUSER: Y (for Yes)
- RFC_TCODE : *
- RFC_INFO : ######### ( installation number of the ABC)
- ACTVT : 16
The trust relationship between the ABC system and XYZ system should now be properly established
Related Content:
SAP Note 128447 "Trusted/Trusting Systems"
SAP Note 1627901 "Authorization group for Trust Relationship
SAP Note 1491645 "Unauthenticated system access via RFC or HTTP"
SAP Note 131387 "No authorization to log on as a trusted system"
SAP Note 1562697 "Authorization group for trust relationship"
Setting Up a Trusted Relationship between two SAP ABAP Systems
1 Comment
BalReddy Allam
Hii experts,
How to create RFC function module ?
Thanks in advance