Starting the SAP CPS RFC Server 
The SAP CPS RFC server allows ABAP stacks to connect to SAP CPS and interact with the scheduler. The SAP CPS interfaces with the SAP Applications API. At the time of this writing, the following SAP components have been optimized for SAP CPS RFC server (SAP Applications API):
Solution Manager - requires the Process Scheduling Adapter to work.
Note
More SAP components are currently being optimized to make use of the RFC server.
Note
You need an ABAP stack of NetWeaver 7.00 SPS 16 or later to connect to the RFC server.
You start the RFC server by setting the process server parameter SAP_EnableRfcServer to true on the process server that belongs to the SAP system which will connect to the RFC server. You can connect to multiple SAP CPS process servers to a single SAP instance and you can enable an RFC server for each of them, however, when this is the case you should set the process server parameter SAP_API_DefaultScheduler for each, it should be set to false on all SAP process servers except one, which is the default scheduler for the SAP Applications API of that SAP instance. The value of this scheduler parameter is set to true by default.
The RFC server has to be enabled manually, it is not enabled by default. ABAP users are mapped to SAP CPS users and need the SAP_BC_BATCH_ADMIN_REDWOOD role in the SAP R3 subsystem and Business Automation User for the SAP system in SAP CPS. The SAP CPS user needs to be have the same isolation group as the SAP system, or logon will be denied.
Variable |
Description |
<username> |
The username of the RFC user that SAP CPS uses to connect to the SAP system |
<isolationgroup_partition> |
The partition of the isolation group, usually GLOBAL. |
<isolationgroup> |
The name of the isolation group, usually GLOBAL when it has not been set. |
<SAP CPS_server> |
The FQDN of the SAP CPS server. |
<SAP_client> |
The SAP client used by the SAP CPS RFC user. |
Enabling the RFC server in SAP CPS
Navigate to
Choose Edit from the context menu of the process server belonging to the SAP Instance you want to connect from.
On the Parameters tab, choose New.
Fill SAP_EnableRfcServer into the Name field and true into the Value field.
If there are more process servers with the RFC server enabled connecting to this instance:
Choose New, fill SAP_API_DefaultScheduler into the Name field, and true or false into the Value field, only one SAP API default scheduler is allowed per SAP instance.
Choose Save & Close.
Choose Stop from the context menu of the process server, wait for the process server to be marked as Shutdown in the ui.
Choose Start from the context menu of the process server.
Creating an RFC Destination to SAP CPS
Open transaction SM59.
Choose Create from the Edit menu.
Fill in a name into the RFC Destination field.
Fill T into the Connection Type field.
Fill in a description.
On the Technical Settings tab choose Registered Server Program.
Fill <username>-<isolationgroup_partition>.<isolationgroup>@<SAP CPS_server>-<SAP_client>
Fill in the Gateway Host and Gateway service fields with name of the gateway and the service of the current SAP instance.
Save, choose Test Connection and wait for the result, if the result is OK, you have successfully configured the connection.