cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization Error Setting Up SOAP Connection from SAP S/4HANA Cloud to SAP Integration Suite

NS502079
Explorer
0 Kudos
183

Hi,

I'm currently setting up an integration between SAP S/4HANA Cloud Public Edition and SAP Integration Suite (CPI) using a SOAP 1.X Sender Adapter. My goal is to send payment data from SAP S/4HANA Public Cloud to Integration Suite (Scope item 2YM), but I'm encountering a 401 Unauthorized error.

Setup:

  1. Communication User Setup:

    • Created a technical communication user in SAP S/4HANA Cloud.
  2. Communication System Setup:

    • Created a communication system in SAP S/4HANA Cloud.
    • Entered what I believe is the correct host name (e.g. iFlow generated endpoint URL excluding Path).
  3. Communication Arrangement Setup:

    • Created a communication arrangement using the scenario SAP_COM_0256 (Bank Connectivity API).
    • Selected the correct communication system and technical user.
  4. Testing the Integration:

    • I'm testing the SOAP request using SOAPUI with Basic Authentication using the technical communication user's credentials. (This is also set up in Security Material in CPI).

Questions:

  1. How can I confirm that the communication user has the correct roles and authorizations for this setup?
  2. Is there any additional configuration needed in the iFlow on SAP Integration Suite to accept Basic Authentication?
  3. Could the 401 error be caused by an incorrect host name in the communication system setup?
  4. Would it be better to use Client Certificate Authentication, and if so, how should I set it up?
  5. Is the "SAP Process Integration Runtime" service mandatory for this setup, or can I establish the connection without it?

Any insights or guidance on resolving this 401 Unauthorized error would be greatly appreciated.

Thank you for your help!

View Entire Topic
Edrilan_Berisha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

 

on which release are you? Are you on Public Cloud or Private Cloud?

 

SAP_COM_0256 is deprecated and should not be used anymore,SAP_COM_0316 is the successor.

 

Best,

Edrilan Berisha

NS502079
Explorer
0 Kudos
We are on the latest release of Public Cloud. From my understanding, SAP_COM_0316 is used for incoming bank statement files into S4HC. SAP_COM_0256 (scope item 2YM) is being used as a fallback solution for sending bank payment files from S4HC to any recipient. We were informed that it can still be used, although it is no longer actively updated.