Skip to Content
1
Jul 16, 2017 at 08:12 PM

Principal Propagation to an ABAP System via RFC SNC not Working

2377 Views Last edit Jul 25, 2017 at 10:51 AM 2 rev

Hello community,

I am trying to call a RFC SNC destination in my Java application (Tomcat 8 runtime) and getting the following error:

com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Initialization of destination dt1_datatrain_snc failed: Anmeldedaten unvollständig.

I followed all the steps of the offical documentation to configure SNC on my AS ABAP and on the Cloud Connector:

https://help.sap.com/viewer/cca91383641e40ffbe03bdc78f00f681/Cloud/en-US/c84d4d0b12d34890b334998185f49e88.html

My destination looks like this:

My user Mapping looks like this:

And my JAVA code looks like this:

JCoDestination destination=JCoDestinationManager.getDestination("dt1_datatrain_snc");
JCoRepository repo=destination.getRepository();
JCoFunction stfcConnection=repo.getFunction("STFC_CONNECTION");
JCoParameterList imports=stfcConnection.getImportParameterList();
imports.setValue("REQUTEXT", "SAP HANA Cloud connectivity runs with JCo");
 stfcConnection.execute(destination);

I have no idea what is goung wrong here??

Thanks in advance for help,

Christoffer Fuss

Attachments

mq91x.png (27.3 kB)
dsooy.png (28.4 kB)
4twh7.png (21.9 kB)