Skip to Content
0
Sep 11, 2023 at 08:54 AM

How to fix HTTP "401 Unauthorized" error from Postman to SAP Integration Suite?

677 Views Last edit Sep 13, 2023 at 11:01 AM 4 rev

When I use HTTP POST command from Postman into my SAP Integration Suite account (using BTP Trial Sub-account), I am getting "401 Unauthorized" error. The expected result is "HTTP status 202 Accepted".

I believe the HTTP call is reaching BTP because I am being alerted by IAS of failed logon attempts.

Looking for help with the cause of the "401 Unauthorized" error.

Suggestions also welcome for alternative ways to test the HTTP call, to see if Postman is incorrectly maintained.

  • Using Basic Authentication.
  • {{Username}} in Postman Collection Authorizations was set to the logon details of the BTP sub-account: I have tried both (a) email address [of the SAP Universal ID] and (b) S-User ID. ** UPDATE 13 Sept: S-User ID is incorrect ... see comments against the Answer ***
  • {{Password}} in Postman Collection Authorizations was set to the logon password of the BTP Sub-account. (I have read elsewhere that some special characters cannot be used in passwords when connecting from Postman -> SAP, and the only special characters in my password are dashes '-' and underscores '_'). ** UPDATE 13 Sept: using S-User ID password is incorrect ... see comments against the Answer ***
  • User already has all available Role Collections assigned in BTP.
  • Postman variable {{host}} is set to the Endpoint of the SAP Integration Flow.

postman-http-401-unauthorized-to-integration-suite.jpg

Background: I am doing SAP Learning Course "Developing with SAP Integration Suite", Unit 5 "Modeling Processes > Using Integration Patterns". A JSON file is provided by the course, to be uploaded into Postman, to accompany pre-set example SAP Integration Flows. The Flows have been deployed: 'Generic Receiver' and 'Modeling Basics - Decouple Flows Using JMS').