Skip to Content
0
Former Member
Jun 02, 2010 at 05:22 AM

SAP Netweaver PI Error: INTERNAL.UnAuthorized

38 Views

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"?>

http://sap.com/xi/XI/System"

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

<Item>

<Operation>Insert</Operation>

<GroupID>z80c0f608a1d11df928700ffb81a5a80</GroupID>

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

<Identifier scheme="Blue"

agency="Yellow">GREEN</Identifier>

</Item>

</ns1:ValueMappingReplication>

*Error:*

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

<!-- Call Adapter -->

http://sap.com/xi/XI/Message/30"

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

<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.