To create a new destination, please use transaction SM59 and click the Create button. The fields have to be filled in with following values:
- Unique name of the new destination (e.g. ERPTEST).
- Connection Type = T (for TCP/IP).
- ProgramID: A unique name that the server program uses to register itself on the SAP gateway (can be the same as the destination name).
- Choose option Registered Server Program.
You have to save the destination first before the connection can be tested.
Click the button Test Connection while the program is running. If everything works well, you should see a screen like the one below.
If the RFC Destination is set to Unicode, the property IsUnicode of the RFCServer object must be set to true.