cancel
Showing results for 
Search instead for 
Did you mean: 

MiniSAP with JCo2 works, with JCo3 fails

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
jco.client.ashost=192.168.159.128

Are you sure this is the right parameter? IMHO ashost is used to determine the correct outgoing network connection to use...