Dear SAPiens,

This articles shows how to create IFlows in CPI using RFC receiver adapter. RFC is standard interface used to integrating with ECC systems. For the demo purpose I have used systems HTTP as sender, CPI as middleware, SCC and S4Hana. In this article, we will see the configurations required in SCC and BTP – Cockpit. This will be useful if any function module needs to be executed in ECC system.

Pre-requisites –

  1. Configure SCC with cockpit subaccount
  2. Configure FM name under Cloud to on-Prem
  3. Configure Destination in BTP

A :- SCC configurations

Assuming subaccount already added in SCC and below are the steps required to add function name

Select subaccount –> click on cloud to on-premise –> add system in access control –> back-end type = ABAP system

select protocol as RFC –>

As my system doesn’t support load balancing hence I have selected without load balancing option

select internal and virtual host and port details

select check internal host and click on finish

Select added system and click on the add resource and provide exact same name as FM name

Once system and resources are add, screen will look like below –

B :- Cockpit Configurations

If subaccount added successfully in SCC, you can see instance status in cockpit –> connectivity –> Cloud Connectors

Now we need to add RFC destination in cockpit, Connectivity –> Destination

Once all details are filled, check the connection. I have used S4H system credentials here.

C :- CPI IFlow

Below is the demo Iflow created in CPI system

Select RFC adapter after request-reply step and provide same RFC destination name as created in cockpit

Deploy Iflow, I am using postman for testing purpose. Below is the sample input file which I used in postman

<?xml version="1.0" encoding="UTF-8"?>
<ns0:Z_CALCULATOR_RASH xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

Below is the postman test result –

CPI Message Monitoring

D :- Points to check 

  1. Creating destination of type RFC in cockpit is not easy task. Your details need to be accurate otherwise check connection will keep throwing error
  2. For getting correct format of input file I imported RFC in ESR and generated input file for testing purpose

Hope this helps somebody trying to create iflow using RFC adapter in CPI.

!Happy Learning!

Reference –



Randa Khaled

Randa Khaled

Author Since: November 19, 2020

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x