cancel
Showing results for 
Search instead for 
Did you mean: 

VallueMapping update through HTTP from SAP system

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 (1)

Accepted Solutions (1)

Former Member
0 Kudos

the error is unauthorized. I think to connect in between two SAP systems PIAFUSER is used as user. If this doesn't work then check authrization roles attached to your username.

Former Member
0 Kudos

Thanks for the quick reply Neelansha,

I did check the roles and profiles of the user i used for the integration. I made sure my user has the same profile with PIAFUSER, PIISUSER and PIAPPUSER. I still encounter the same error. I even used the mentioned users themselves but to no avail. Do you have other solutions in mind?

Regards,

Chris. C.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Chris,

Could you please let me know how you fixed the HTTP Authentication issue? We are facing the same issue.

Thanks

Debbie Schneider.

stefan_grube
Active Contributor
0 Kudos

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

Of course this works.

I use APAB proxies with SAP R/3 4.7 to send value mapping data to PI 7.1

Copy the standard value mapping outbound interfaces to your own SWVC and genearate ABAP proxies for it.

Former Member
0 Kudos

Hi Stefan,

I guess you're right. I could copy the Value Mapping interfaces that I need in my own custom SWCV. I have done that but I couldn't create the ABAP proxy in my SAP ECC 6.0 system just yet because a window pops up asking me an access key. I'm currently waiting for the access key. I hope this will work. Thanks so much for that. I'll keep you all posted if this works. Thanks.

Regards,

Chris C.

Former Member
0 Kudos

Hello Stefan,

Its been days since I requested for the access key and I can't wait for them anymore. I continued searching for solution to my HTTP way of updating Value Mapping data. I was able to fix the issue about the HTTP Authentication. Thanks so much for your help. I really appreciate it.

Kind Regards,

Chris C.

Former Member
0 Kudos

Hi Chris,

Could you please let me know how you fixed the HTTP Authentication issue? I'm facing the same issue.

Thanks,

Sameera.