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">
   <A>220</A>
   <B>20</B>
</ns0:Z_CALCULATOR_RASH>

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 –

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/5c76048b04594888a47e74d35a91c08a.html

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/3b55fa7b83874b5ca3b6b6b5998a73f6.html

Regards,

Rashmi

Randa Khaled

Randa Khaled

Author Since: November 19, 2020

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