Skip to Content
1
Apr 28, 2020 at 11:08 AM

Unknown Authentication Error while consuming service from S/4 Hana On premise system

38503 Views

Hello,

We are getting below issue while consuming service from an on-premise system using SAP cloud SDK Java:

","CSNComponent":"","Application":"A3my6RW4NVX1bA5H-Anewuswcase-srv","space_id":"cc718305-eb95-4e7c-81bf-fb727212d203","container_id":"10.0.138.245","type":"log","logger":"com.sap.cloud.sdk.cloudplatform.connectivity.PrincipalPropagationStrategy","thread":"http-nio-0.0.0.0-3000-exec-5","level":"ERROR","categories":[],"msg":"Unknown authentication type BasicAuthentication for OnPremise and Principal Propagation in destination ScpCfDestination(destinationType=HTTP, name=ErpQueryEndpoint, description=SideBySideExtensibility, propertiesByName=DefaultDestination(properties={Description=SideBySideExtensibility, User=dev001, WebIDEEnabled=true, URL=http://ip address here, Name=ErpQueryEndpoint, WebIDEUsage=odata_abap,dev_abap,ui5_execute_abap, authTokens=[ScpCfDestinationServiceV1Response.DestinationAuthToken(type=Basic, value=ZGV2MDAxOndlbGNvbWUx, error=null, expiresIn=null)], Type=HTTP, certificates=null, Authentication=BasicAuthentication, CloudConnectorLocationId=Cloud1, ProxyType=OnPremise, WebIDESystem=S7h, Password=(hidden)}))" }

We have configured destination ErpQueryEndpoint in cloud foundary. Screenshot attached here. We have configured destination, connectivity and xsuaa service as well. Sub account and end point details are configured in cloud connector.

SDK version is 3.17.1. Below is the code which we are using to connect to the destination:

final HttpDestination destination=DestinationAccessor.getDestination("ErpQueryEndpoint").asHttp().decorate(DefaultHttpDestination::new);  

pohead =new DefaultZAKCDSPOHEADCDSService().getAllPoHead().execute(destination);

Destination is getting connected when we connect it through cloud foundary or cloud connector directly. Could you please help us here.

Regards,

Kamalpreet

Attachments