cancel
Showing results for 
Search instead for 
Did you mean: 

ERR: HTTP_RESP_STATUS_CODE_NOT_OK - 401 Unauthorized

Former Member
0 Kudos

Hi All,

I have a scenario which transfers data from ABAP Proxy(client 200 of XI) to XI(client 100 of XI) IS using the interface "ValueMappingReplicationOut" and the receiver adapter is XI. While executing an ABAP program from client 200 (to trigger the proxy), I'm getting the following error in the receiver side (SXMB_MONI client 100).

"HTTP response contains status code 401 with the description Unauthorized Error when sending by HTTP (error code: 401, error text: Unauthorized)"

XI adapter Settings:

Target :Host XI server IP address

Service :Port Number (8010)

path : /MessagingSystem/receive/JPR/XI

User :XIAPPLUSER

I have gone thru most of the related forum/blogs available. Couldn't figure out the problem.

Looking forward for some help.

Thanks in Advance.

Ajay.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ajay,

Port is wrongly given.It is the J2EE port 5<Systemno>00(51000(??in ur case iam not sure))

Check also whether u have used SAP XI adapter 3.0 and Authentication is LogOn for NON-SAP Data.check this and also check the roles as specified in the posts.

Regards,

Sudharshan.

Message was edited by: Sudharshan Aravamudan

former_member185846
Active Participant
0 Kudos

Hi Sudharshan and Udo,

Thanks for your prompt reply. It was the problem with the Authentication Type. Now it is not showing any error.

The scenario is to update the data in the run time cache of the IS. But it is not happening.

REPORT ZVALUEMAPPING.

data: lcl_value_mapping type ref to co_svmr_value_mapping_rep,

ls_value_mappings type svmr_value_mapping_replication,

ls_item type svmr_value_mapping_rep_item,

lcl_system_fault type ref to cx_ai_system_fault.

ls_item-operation = 'Insert'.

ls_item-group_id = '315286378563858425463215845123345'.

ls_item-context = 'http://test'.

ls_item-identifier-scheme = 'FormOfAddress'.

ls_item-identifier-agency = 'CRM'.

ls_item-identifier-value = '2'.

append ls_item to ls_value_mappings-value_mapping_replication-item.

ls_item-operation = 'Insert'.

  • Use the same guid for another value of the same group

ls_item-group_id = '315286378563858425463215845123345'.

ls_item-context = 'http://test'.

ls_item-identifier-scheme = 'FormOfAddress'.

ls_item-identifier-agency = 'R3'.

ls_item-identifier-value = '1'.

append ls_item to ls_value_mappings-value_mapping_replication-item.

create object lcl_value_mapping.

try.

call method lcl_value_mapping->execute_asynchronous

exporting

output = ls_value_mappings.

commit work.

catch cx_ai_system_fault into lcl_system_fault.

write: 'Error: ', lcl_system_fault->errortext.

<b>The above mentioned is the program we used</b>.

And when I check for the scheme 'FormOfAddress' and agency 'CRM' in the ID -> Tools -> Value Mapping, there is no value as such. Kindly calrify.

Thanks,

Jothivel.

Message was edited by: Jothivel Sundaram

Former Member
0 Kudos

Hi Jothivel,

You have to check it in RunTime Work Bench..

click Cache Monitoring.

In that page choose java cache and then choose Value Mapping groups.

There u can see ur valuemapping.

Regards,

Sudharshan

former_member185846
Active Participant
0 Kudos

Hi Sudharshan,

I tried that way only. But I couldn't find my valuemapping over there.

I also tried with a file to file scenario using my valuemapping. The valuemapping was not performed then also.

In SXMB_MONI I see the following message

<b><Trace level="1" type="T">Key mapping from [http://test,CRM,FormOfAddress] to [http://test,R3,FormOfAddress] has not been performed</Trace></b>

Thanks,

Jothivel.

Message was edited by: Jothivel Sundaram

Former Member
0 Kudos

Hi Jothivel,

Sometimes the mapping gets stored and comes in to effect after some point of time.It happened for us.I relly dont know whether it has to do something with the server traffic..

Regards,

Sudharshan.

Former Member
0 Kudos

Hi Ajay,

Your Path needs to be : /sap/xi/engine?type=entry

Please can yuo check the following URL for adapter specific config:

http://help.sap.com/saphelp_nw04/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/content.htm

regards

Vijaya

Former Member
0 Kudos

Hi Jothivel,

I guess the problem is in the GUI ID that you are populating in ABAP program. I tried the same scenario, I did it successfully after getting thru similar errors.

Go to runtime workbench-> meessage monitoring->adapter engine and see the details of the message sent using the communication channel. There I had a problem with the content of the GUI ID it was not able to be converted. So check if you have similar error in ur case.

And in the communication channel, the path shud be /MessagingSystem/receive/JPR/XI as mentioned in the documentation <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm">Value Mapping Replication for Mass Data</a>

praveen

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Hi Ajay,

plz check XIAPPLUSERs rights in SU01: Do he have the role SAP_XI_APPL_SERV_USER?

Change the user temporary to dialog user and try to logon for check. If you get the "change password dialog" cancel the logon (dont change the password).

Regards,

Udo