cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Netweaver PI Error: INTERNAL.UnAuthorized

Former Member
0 Kudos

Good day everyone,

For two weeks, I have been trying to send xml data from SAP to SAP PI through HTTP. The purpose of this interface is to update the Value Mapping entries in PI from SAP. I know, most of you might tell me to use ABAP proxies to make things more simple and easier. The reason why I did not use ABAP Proxy is because the SAP and SAP PI systems I'm using have different versions. I have SAP Netweaver 7.1 for my PI system and ECC 6.0 for my SAP. I believe it wouldn't be possible to use ABAP/JAVA proxies if the two systems are of different versions.

Here is what I have so far. I created a program to send an HTTP request using an RFC Destination. I used my own UserName and Password in the logon details in the RFC Destination. I used service adapter_plain. Here is the complete URL: http://<host>:<port>/sap/xi/adapter_plain. . I created the necessary objects in Integration Directory and the HTTP sender program. Below, you will see a sample of my payload and the error message I got. Can anyone help me how I could fix this error?

*Payload:*

<?xml version="1.0"?>

<ns1:ValueMappingReplication xmlns:ns1="http://sap.com/xi/XI/System"

xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">

<Item>

<Operation>Insert</Operation>

<GroupID>z80c0f608a1d11df928700ffb81a5a80</GroupID>

<Context>http://sap.com/xi/XI</Context>

<Identifier scheme="Blue"

agency="Yellow">GREEN</Identifier>

</Item>

</ns1:ValueMappingReplication>

*Error:*

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

<!-- Call Adapter -->

<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"

xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIServer</SAP:Category>

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

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

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

<SAP:P3>(See attachment HTMLError for details)</SAP:P3>

<SAP:P4/>

<SAP:AdditionalText/>

<SAP:Stack></SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Kind Regards,

Chris C.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All,

I opened another thread for this question in another topic. I didn't know how to delete this one so just in case you get to read this question and wonder how it was answered, just refer to the link below.

If anyone knows how to delete this thread, kindly tell me. I really appreciate it, thanks a lot.

Link:

Regards,

Chris C.