cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver XI adapter in SAP CPI

manigram
Active Participant
0 Kudos

Hi All,

Am trying a scenario, HTTP -->CPI-->S4(XI adapter). whenever am a sending a message from Postman, i could see two messages generated for one request from Postman and i can see only one message post to S4 System. In the screenshot i have entered correlation id, so it is displayed both the messages.

What could be the reason why it is generating two messages in CPI. Please share your suggestion.

Regards,

ManiPrxoyMessage.png

 

 

Ryan-Crosby
Active Contributor
0 Kudos
I think it has to do with how the JMS is used here, but not entirely sure.
View Entire Topic
Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @manigram,

It must be the request for OAuth2 authentication at the CPI end-point - which is required to retrieve a Bearer Token used to send the payload to Integration Suite.

Best regards,
Ivan

manigram
Active Participant
0 Kudos
Hi This flow is from CPI to SAP S4 HANA system, so no where used OAuth2 authentication
Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi @manigram,

Here are some facts you should know about data integration between any source and S/4HANA using an iFlow in Integration Suite: 

1) To be able to send a message to Cloud Integration you must first authenticate to it via OAuth2. You cannot simply call your interface's end-point expecting it to accept the message without any authentication at all. And, AFAIK, Integration Suite doesn't accept BASIC authentication for inbound messages.

2) Your iFlow will require some form of authentication to send the message to an S/4HANA system. Usually, any communication scenario/arrangement in an S/4HANA system will require you to send data via a technical user (SSO doesn't apply here as this should be an inter-system communication). This technical user in an S/4HANA system is assigned to an OAuth2 client for inbound communication (unless you have specified it differently on your S/4HANA box). Please check that config on your S/4HANA box and let us know how it is configured.

3) Postman cannot bypass the authentication of Cloud Integration to send the message to S/4HANA. Therefore, you must fist authenticate on it before being able to send anything to be forwarded to an S/4HANA box. Hence, you must have on your Postman configuration an OAuth2 client credentials setup so that the authentication is taking place behind the scenes for you automatically. What Postman will do is that it automatically calls the token endpoint on BTP to retrieve the token and then it assigns it to the original POST request you have executed. Hence, that is probably the reason why you are seeing two requests on the http trace in Postman. 

Best regards,
Ivan