5.10 Remote Systems
For some applications, it could be necessary to be able to define that specific or all entries in one role can be executed against a foreign system. Although the role is defined locally, the actual execution of the entry is done in the remote system.
It is possible to configure a target system for each menu entry. If the Target System is blank, as is usually the case, no different destination is used. So, the transactions are started in the same system in which the user is logged on. If, however, the Target System field is filled with an RFC destination, the menu entries from a role of the system specified via the RFC destination are used for your role.
Note that instead of specifying RFC destinations via transaction SM59, you can also specify a variable that references an RFC destination. Variables are assigned to RFC destinations using transaction SM30_SSM_RFC.
-
For the complete role, enter the RFC destination in the Target System field right underneath the role name and description. If you leave this field blank No Destination is displayed.

-
For individual role entries from another system, leave the upper Target System field blank, navigate to the role menu folder/node and enter the RFC destination for this folder/node on the right side of the screen in the area Other Node Details in field Target System.

Target System Names
The system names must be the same as specified in transaction SM59. For more information, see Displaying, Maintaining, and Testing Destinations.
However, SM59 aliases are only of one specific type. It is not possible to define both SAP GUI and HTTP connections under one alias. This could be needed in cases where either a SAP GUI or Web GUI entry is needed for the same transaction. The current approach taken by NWBC is to have multiple SM59 entries that have the same (base) name with an extension (_RFC, _HTTP, _HTTPS) attached to the name to distinguish between the different types of connections. For example, if the system name is XYZ, then the different destination names should be thus:
-
SM59 name resolving sequence for SAP GUI aliases:XYZ_RFC, XYZ
-
SM59 name resolving sequence for HTTP aliases: XYZ_HTTPS, XYZ_HTTP, XYZ
It is also possible to configure proxy data for the _HTTP and _HTTPS entries within SM59. If an HTTP proxy is detected in the network (the incoming HTTP request contains the Web Dispatcher HTTP header x-sap-webdisp-ap that describes the proxy access points), then the proxy configured data will be used to construct an URL, instead of the configured host and port.
Role Import from Remote System
If the transactions you want to use in your role are not all locally available, the recommended approach is to first define a role in the remote system that contains all relevant transactions and then to import the role into the system where it is required. For this you use the function .
Let us take as an example an ERP and a CRM system. In one system called Q0M our user is assigned to role ZSHELL_ROLE in PFCG. The role menu consists of several entries.

We wish to transfer this role to another system, Q00 where we usually work and build our applications. In order to do this, we need to maintain some RFC destinations in transaction SM59. So, on our home system Q00 we define the following RFC destinations:
-
We define an ABAP connection (Type 3) to Q0M system for the PFCG role import.

-
Similarly, we define HTTP or HTTPS connections of Type H to Q0M for the NWBC runtime. NWBC needs the HTTP or HTTPS destinations to build URLs.

To import the role from system Q0M into Q00, proceed as follows:
-
Log on to system Q00.
-
In transaction PFCG enter your role and switch to the Menu tab.
-
Choose .
-
You can enter either an RFC destination or a variable which points to an RFC destination as target system. In this example, choose Select RFC Destination and then Continue (Enter).
-
In the following table select the entry for RFC destinationQ0MCLNT558 and choose Copy. A list of all available roles in Q0M is displayed.
-
Select ZSHELL_ROLE and choose Copy. The menu tree of ZSHELL_ROLE is displayed.
-
Choose those transaction from the ZSHELL_ROLE menu which you want to import into Q00 by selecting the check boxes in front of the relevant role entries. Then add the selected menu nodes via Add. The role menu tree in Q00 is updated automatically with the entries you selected. In the check boxes next to the imported menu items you can also see the check mark indicating that these menu entries belong to a separate target system. In addition, the Target System field on the right is automatically filled with the RFC destination for Q0M.


