Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
We are taking steps to make our moderation process friendlier while ensuring that SAP Community continues to comply with the Digital Services Act (DSA). Learn more in this What’s New post.
Below blog explains the steps required to establish the communication between SAP CPI and on-prem S4Hana. This is for inbound IDoc interface and for demo purpose I am using mail as receiver.
Topics will be covered -->
System Connection between S4H and CPI
Background Configurations required
Configure Idoc Sender Adapter
Search messages in message monitoring based on Idoc Number
To be able to send messages from SAP S4Hana to SAP CPI import CPI certificates in S4Hana STRUST. You can download CPI certificates either from keystore or from any browser.
Login to S4hana system --> Tcode STRUST (Import all 3 CPI certificates) --> Add to Certificate List
Create Logical System for S4H and CPI system in Tcode BD54
Create RFC Destination of Type G -->Host = CPI Tenant, Port = 443, Path Prefix = from Sender Adapter (CPI - IFlow); Logon & Security
RFC Connection test returns HTTP 500 response
Create Port WE21 --> Port Type --> XML HTTP
Partner Profile WE20 -->
Import Outbound Message type with port created in earlier step
In the Custom IFlow, give the same path prefix as given in RFC Destination IDoc Adapter Configuration -->
In-order to be able to search my Iflow in monitoring based on Idoc number, I have configure Content Modifier with Header Values I am using Headers --> SapIDocDbId, SapIDocTransferId, SapIDocType in my mail body and created SAP_ApplicationID to pass Idoc Number from payload which will help me to monitor messaged based on Idoc Number. Value for SAP_ApplicationID is Xpath of my Idoc DOCNUM
Configure Mail adapter and deploy IFlow
Trigger IDoc in S4Hana, WE02 -->
Status = 03 --> Idoc Triggered to CPI
Status = 02 --> Check Iflow status in CPI
CPI --> Message Monitoring
Mail Received Successfully
Thank you,
Rashmi
18 Comments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.