cancel
Showing results for 
Search instead for 
Did you mean: 

Http server code 401 reason Unauthorized

Former Member
0 Kudos

Hi,

I am trying to setup a scenario of sending an IDOC from R/3 to XI and then sending it further to a 3rd party program using the HTTP Channel.

If I go to transaction IDX5 in XI, I can see my IDOC sitting there as Inbound. When I check the error message on it, I get the message "Http server code 401 reason Unauthorized explanation Unauthorized" Also further along on the screen it says that the error category is "PLAINHTTP_ADAPTER" and Error ID is "ATTRIBUTE_SERVER".

Can someone guide me towards a solution?

Thanks in Advance!

Miguel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Miguel,

I was also facing the same problem yesterday but my scenario is R/3 to XI thru ABAP proxy.

Plz check that you have maintain all configuration.I am not sure for HTTP adapter but check you have created RFC destination in TC SM59 for HTTP connection to external system.

thanx.

Rekha

Former Member
0 Kudos

Hi Rekha,

I have checked the settings and they appear to be correct.

Here is a piece of the trace of the monitor where the error occurs:-

<Trace level="1" type="T">----


</Trace>

<Trace level="1" type="T">---- Plain HTTP Adapter Outbound----</Trace>

<Trace level="1" type="T">----


</Trace>

- <Trace level="1" type="B" name="CL_HTTP_PLAIN_OUTBOUND-ENTER_PLSRV">

<Trace level="3" type="T">Quality of Service EO</Trace>

<Trace level="1" type="T">Get XML-Dokument from the Message-Objekt</Trace>

<Trace level="2" type="T">HTTP-Destination : SBO_ITK</Trace>

<Trace level="3" type="T">Server pgsap09.sap.pg.co.za</Trace>

<Trace level="3" type="T">Service-Nr. 80</Trace>

<Trace level="3" type="T">URL /SBOWebService/xi</Trace>

<Trace level="3" type="T">~request_method POST</Trace>

<Trace level="3" type="T">~server_protocol HTTP/1.0</Trace>

<Trace level="3" type="T">accept: /</Trace>

<Trace level="3" type="T">content-type: text/xml</Trace>

<Trace level="3" type="T">msgguid: 2F7389425DBE1711E100000082010B5A</Trace>

<Trace level="3" type="T">service: DR0</Trace>

<Trace level="3" type="T">interface namespace: http://sap.com/xi/SBO</Trace>;

<Trace level="3" type="T">interface name: MasterDataFunctionModule__vendorMasterUpdate</Trace>

<Trace level="3" type="T">quality of service: EO</Trace>

<Trace level="3" type="T">Header-Fields</Trace>

<Trace level="3" type="T">Prolog conversion Codepage: UTF-8</Trace>

<Trace level="3" type="T">Epilog conversion Codepage: UTF-8</Trace>

<Trace level="3" type="T">content-length 3273</Trace>

<Trace level="2" type="T">HTTP-Response :</Trace>

<Trace level="2" type="T">Code : 401</Trace>

<Trace level="2" type="T">Reason: Unauthorized</Trace>

<Trace level="2" type="T">Code : 401</Trace>

<Trace level="2" type="T">Reason: Unauthorized</Trace>

</Trace>

From this it appears that it is complaining about the user name into the external program, although when I do a test connection in SM59, I get a positive response?

Thanks,

Miguel

Former Member
0 Kudos

In my case the situation was same.Test connection was succesfull in SM 59 but msg was not going to XI.I have made entries for anonymous logon data in XI system in transaction code SICF. XI-engine.

But in your case reciever will be some other third party not sap.But I think some configuration is missing.

thanx.

Rekha.

Former Member
0 Kudos

Hi Rekha,

Thanks for your help.

Your help led me to actually not only checking the XI settings but also the settings of the third party software, which led me to finding that the username had the wrong authorisations in the J2EE engine. Once I sorted out those authorisations, everything flowed through!

Thanks,

Miguel

Former Member
0 Kudos

What wrong authorisations did you have in your J2EE engine?

Answers (0)