cancel
Showing results for 
Search instead for 
Did you mean: 

RFC error - http 401

Former Member
0 Kudos

Hi experts,

We get the below http 401 message in adapter engine (RFC sender adapter) because the process is trying to logon to client 001 - it should be client 030, which is specified in the SLD.

Does anyone know how to fix this?

Thanks

From Audit log:

Transmitting the message to endpoint http://uxpidev:50000/sap/xi/engine?type=entry using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 401 : Unauthorized.

Message data log

Authorization SAPPasswordCredential(PIAFUSER):password=*******:sapclient=001*:saplang=en

Message Data

Attribute Value

Status Waiting

Repeatable Yes

Cancelable Yes

Error Category

Error Code

Start 23.06.2011 11:04:59

End 23.06.2011 11:04:59

Sender Party

Sender Component ODVCLNT500

Receiver Party

Receiver Component

Interface urn:sap-com:document:sap:rfc:functions

ZSD_CII_102

Service Definition

Software Component

Application Component

Business Message

Quality of Service Exactly Once

Message Format XI Message

Message ID 20100f0c-a187-3cc1-0e00-304000b20430

Reference ID

Correlation ID

Sequence ID

Sequential Number 0

Version 0

Edited No

Serialization Context

Direction OUTBOUND

Message Type Send

Protocol XI

Connection RFC_http://sap.com/xi/XI/System

Transport HTTP

End Point http://uxpidev:50000/sap/xi/engine?type=entry

Authorization SAPPasswordCredential(PIAFUSER):password=********:sapclient=001:saplang=en

Number of Retries 3

Failed 1

Retries 300000

Valid to

Persist Until 24.06.2011 11:04:59

Schedule Time 23.06.2011 11:09:59

Legg merke til rød tekst. selvom jeg i SLD har satt uxpidev clnt 030 som integration engine, men for meg det ser ut at den prøver å sende data via clnt 001 integration engine.

Audit Log for Message: 20100f0c-a187-3cc1-0e00-304000b20430

Time Stamp Type Description

2011-06-23 06:04:59 Error Transmitting the message to endpoint http://uxpidev:50000/sap/xi/engine?type=entry using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 401 : Unauthorized.

2011-06-23 06:04:59 Information The message status was set to WAIT.

2011-06-23 06:04:59 Information The asynchronous message was successfully scheduled to be delivered at Thu Jun 23 06:09:59 EDT 2011.

2011-06-23 06:09:59 Information The message status was set to TBDL.

2011-06-23 06:09:59 Information Retrying to send message. Retry: 1

2011-06-23 06:09:59 Information The message was successfully retrieved from the send queue.

2011-06-23 06:09:59 Information The message status was set to DLNG.

2011-06-23 06:10:00 Error Transmitting the message to endpoint http://uxpidev:50000/sap/xi/engine?type=entry using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 401 : Unauthorized.

2011-06-23 06:10:00 Information The message status was set to WAIT.

2011-06-23 06:10:00 Information The asynchronous message was successfully scheduled to be delivered at Thu Jun 23 06:15:00 EDT 2011.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Fixed the client issue in SLD / NWA

Former Member
0 Kudos

Hi,

Check the following roles are assigned to PIAFUSER:

SAP_XI_AF_SERV_USER

SAP_XI_AF_SERV_USER_MAIN

SAP_SLD_CONFIGURATOR

SAP_BC_WEBSERVICE_PI_CFG_SRV

Regards

Praveen K

Former Member
0 Kudos

thanks! already checked this. The problem is the client. We are working in client 030 but it tries to logon to client 001 - which fails.

Please advice

Former Member
0 Kudos

Client is setted on Channel and on SLD. Try to check & reactivate this objects.

former_member183898
Participant
0 Kudos

Check the destination port which you have mentioned, destination mentioned doesnt seems to be correct which cause connection 401 issue.

Former Member
0 Kudos

Hi,

As per my understanding you are sending data using 001 client, though you have configured client 030, it is trying to send data to Integration Engine on 001 client not on Integration Engine 030.

Please check your Adapter Engine and Integration engine configurations relevent to 030 clients - Request your BASIS consultants help.

In SLD do also check for Technical Systems ERP see what is the relevant Integration Server. And also check whether your 030 client (Integration Engine) is defined as Integration Server, not 001(default client) as Integration Server.

Regards

Praveen K

Harish
Active Contributor
0 Kudos

Hi,

If you using the logon details directly in channel then check the client in the channel else check in the rfc destination.

and also try to referesh the Adapter specific identifier in sender R3 Business system.

Regards,

Harish

Former Member
0 Kudos

Check RFC channel configuration (client), try with a dummy change and reactivate channel.

Test RFC connection in SM59

Check SLD client configuration.