on 04-10-2009 3:06 PM
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
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.