Skip to Content
0
Former Member
Apr 15, 2005 at 10:31 PM

How to start SAPGUI at entry point to RFC for debugging (using JCO)?

150 Views

Hi,

I am calling an RFC using JCO and trying to have the SAPGUI pop up at the entry point to the RFC for debugging. But it is not working on Mac OS X.

I activate the debug via

JCO.Client client = JCO.createClient(..);

client.setAbapDebug(true);

client.setSapGui(1);

client.connect();

it gives error:

sh: line 1: /usr/sap/DV2/SYS/exe/run/sapgui: No such file or directory

com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Start 'sapgui' failed.

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)

I then tried to set environment variable SAPGUI=/Applications/SAPGUI\ for\ Java\ 6.3r5.2/SAPGUI\ 6.30rev5.2.app/Contents/MacOS/SAPGUI

and it then starts up the SAPGUI for Java Logon Pad.

But, I want the SAPGUI to start up at the entry point to the RFC.

Is this possible in Mac OS X? It has worked before on Windows using the RFC SDK utilities or middleware tools such as IBM Crossworlds.

Thanks