Skip to Content
author's profile photo Former Member
Former Member

IDOC to XI : HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized

Hi Guys,

I meet a problem while send idoc from ECC to XI in testing enviroment. I check the messege ID, find red flag with error message

<SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>

<SAP:P1>401</SAP:P1>

<SAP:P2>Unauthorized</SAP:P2>

I guess something wrong with configuration. Because can not see the port number here. Any one can tell me how to solve this problem? Thanks !!!

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Call Adapter

-->

- <SAP:Attribute>

<SAP:Name>SecurityProfile</SAP:Name>

<SAP:Value>securityProfileWSSE</SAP:Value>

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>addressingMode</SAP:Name>

<SAP:Value>destination</SAP:Value>

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>authenticationModeBasicAnon</SAP:Name>

<SAP:Value>basicSAP</SAP:Value>

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>host</SAP:Name>

<SAP:Value />

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>httpDestination</SAP:Name>

<SAP:Value>XI_SUS_RGQCLNT301</SAP:Value>

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>isMessageSecurity</SAP:Name>

<SAP:Value>0</SAP:Value>

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>logonClient</SAP:Name>

<SAP:Value />

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>logonLanguage</SAP:Name>

<SAP:Value />

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>logonPassword</SAP:Name>

<SAP:Value isPassword="true" />

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>logonUser</SAP:Name>

<SAP:Value />

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>passHopList</SAP:Name>

<SAP:Value>1</SAP:Value>

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>path</SAP:Name>

<SAP:Value />

</SAP:Attribute>

- <SAP:Attribute>

<SAP:Name>port</SAP:Name>

<SAP:Value />

</SAP:Attribute>

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 05:34 AM

    Hi,

    The error code 401 indicates the authorization error. Please check whether your user id has the authorization. Else contact your basis team.

    Regards,

    Indira D

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 19, 2008 at 05:37 AM

    Hi,

    This Error - HTTP_RESP_STATUS_CODE_NOT_OK Might also occur because of authorization Check sm59 HTTP destination on R3 that points to the XI integration engine.

    Check this

    HTTP_RESP_STATUS_CODE_NOT_OK

    Regards

    Seshagiri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2011 at 06:08 PM

    Hi,

    It seems the PIAPPLUSER USer is not maintained in SICF of ECC box and it is mandatory.

    You have to maintain PIAPPLUSER in SICF t-code in ECC and it wil resolve your issue.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2011 at 07:32 PM

    Yes, As seshagiri mentioned check whether RFC DESTINATION OF type H in ECC that refers XI has login credentials. I suspect the same thing. 401 error comes only for invalid or empty login user/password credentials.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2011 at 04:09 AM

    Hi,

    check if you get a successful response from test connection in SM59. RFC DESTINATION OF type H in ECC that refers XI must have correct login credentials. Put correct login credential and test connection again.

    Regards,

    Amol

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2011 at 06:26 AM

    Hi,

    This is an authorization error, first of all please test your RFC destination(check logon details also) and see whether the connection is successful or not.

    If it is successful than there is no problem with RFC connection, contact with your Basis team.

    Regards,

    Shradha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.