Skip to Content
0
Former Member
Feb 16, 2012 at 01:04 PM

SAP Connector Framework from Portal Service

21 Views

Hi All,

I am working on a Portal Service which need to connect to R3 to fetch some detials on schedular basis.

My portal Version is 7.0

I am having a System in place which is configured with SAPLogon Ticket to access R3.

To Execute the RFC I am using IConnectorGatewayService as below.

Object conservice = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

IConnectorGatewayService cgService = (IConnectorGatewayService) conservice;

IUser user = UMFactory.getUserFactory().getUserByLogonID(logonID);

ConnectionProperties prop = new ConnectionProperties(user.getLocale(), user);

connection = cgService.getConnection(system_alias, prop);

IInteraction ix = connection.createInteractionEx();

IInteractionSpec ixspec = ix.getInteractionSpec();

However I am getting error while running the application as below.

[EXCEPTION]

java.lang.NoClassDefFoundError: com/sap/portal/services/api/connectorgateway/IConnectorGatewayService.

Please let me know if there is any input to execute a RFC using IConnectorGatewayService.

Thanks,

Pavan