Skip to Content
0
Former Member
Apr 10, 2009 at 02:06 PM

MiniSAP with JCo2 works, with JCo3 fails

25 Views

I'm using a local miniSAP system and I'm able to connect to it using JCo2 with the following:

client = JCO.createClient("000","BCUSER","minisap","EN","192.168.159.128","00")

repo = JCO.Repository ("SAPJCorep",client)

ft = repo.getFunctionTemplate("STFC_CONNECTION")

... etc

Using JCo3 I try to connect with

d = JCoDestinationManager.getDestination("sap_conn")

function = d.getRepository().getFunction("STFC_CONNECTION")

with sap_conn defined as

jco.client.lang=en

jco.client.client=000

jco.client.passwd=minisap

jco.client.user=bcuser

jco.client.sysnr=00

jco.client.ashost=192.168.159.128

and I get an exception. Using trace level 10 shows:

RfcException: [System <empty>|192.168.159.128/00]

message: Handle close pending

Return code: RFC_CLOSED(6)

error group: 109

key: RFC_ERROR_CANCELLED

...

com.sap.conn.jco.JCoException: com.sap.conn.jco.JCoException: (109) RFC_ERROR_CANCELLED: Handle close pending

Has anyone been able to use JCo3 with MiniSAP? Any clues to the problem?

Thanks,

Pedro Lima