Showing results for 
Search instead for 
Did you mean: 

User of Technical User to get connection using Connector gateway Service!!!

Former Member
0 Kudos

Hi All,

I am exploring the use of "Connector Gateway Service" to execute RFC/BAPIs from Portal JAVA Applications. I got the code snippets from SAP Help site. Was just wondering how can we use a "Technical/Service User" to get a connection to the SAP Backend system.

What I mean is, the code

Object connectorservice = PortalRuntime.getRuntimeResources().getService( IConnectorService.KEY);
    IConnectorGatewayService cgService =(IConnectorGatewayService) connectorservice;
ConnectionProperties prop =new ConnectionProperties(request.getLocale(),request.getUser());
    connection = cgService.getConnection(sapsystem, prop);   

In the above code, the service gets a connection to the backend system defined by the alias "sapsystem" and the "request.getUser()" which has a valid logon ticket to backend system.

Is it possible to use a technical user instead of the request.getUser() principal??? The technical /service user wont be a dialog user. Just a technical user of the ABAP system and has permissiont o execute RFCs.

Any help is appreciated.

Thank you, John Miller

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use a different connector to access the ABAP system and basically tell it not to use the logon ticket. There is a JCO.createClient which allows you to connect with a fixed username and paassword:

client =

Edited by: Michael Nicholls on Jan 28, 2009 9:21 AM

Former Member
0 Kudos


Thanks you for your reply.

I would like to avoid JCO Client use.

Are we left with any other option in that case? Any other connector on Portal?

Thank you, John Miller