Skip to Content
author's profile photo Former Member
Former Member

MiniSAP with JCo2 works, with JCo3 fails

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 12:00 PM
    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...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.