cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to XI : HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized

Former Member
0 Kudos

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>

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

baskar_gopalakrishnan2
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Regards

Seshagiri

Former Member
0 Kudos

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