Hi SAPiens,
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
- Import Outbound Message type with port created in earlier step
- In the Custom IFlow, give the same path prefix as given in RFC DestinationIDoc Adapter Configuration –>
- In-order to be able to search my Iflow in monitoring based on Idoc number, I have configure Content Modifier with Header ValuesI 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
Nenhum comentário:
Postar um comentário