In the SAP application, go to transaction SM59.
Expand the TCP/IP connections directory.
Click Create (F8).
In the RFC destination field, enter the name of the RFC destination system. (IDMRFC).
Set the connection type to T (Start an external program through TCP/IP).
Enter a description for the new RFC destination, and then click Save.
Click the Registration Server Program radio button in the Activation Type pane.
Set the Program ID in the Start on Application Server pane. You should use the same value as the RFC destination (IDMRFC), and then click Enter.
If the SAP system is a Unicode system, the port must be configured for Unicode. Click the Special Options tab (MDMP & Unicode tab on some systems), and look for the Character Width In Target System section. There is a setting for unicode and non-unicode.
Using the buttons at the top - Test Connection and Unicode Test - test the connection to the Identity Manager resource. You must have the adapter started for the test to pass.