on 05-06-2011 10:20 AM
Hi NCo Specialists
I build a connection to a SAP System with NCo 3.0 and VB2010 with the following code:
Dim d01 As RfcDestination
Dim p01 As New RfcConfigParameters
p01.Clear()
p01.Add(RfcConfigParameters.Name, "P01")
p01.Add(RfcConfigParameters.AppServerHost, TextBox3.Text)
p01.Add(RfcConfigParameters.SystemNumber, TextBox2.Text)
p01.Add(RfcConfigParameters.SystemID, TextBox1.Text)
p01.Add(RfcConfigParameters.User, TextBox5.Text)
p01.Add(RfcConfigParameters.Password, TextBox6.Text)
p01.Add(RfcConfigParameters.Client, TextBox4.Text)
d01 = RfcDestinationManager.GetDestination(p01)
MsgBox(d01.SystemID)
d01.Ping()
After the ping-command was thrown against the SAP System the RFC-Connection remains open (I see that in TA AL08). When I close my VB-prog the connection closes also. How can I close the RFC-Connection without closing my VB-prog ?
Thanx in advance
Bertrand
Hi,
how do you closed the connection without closing the program?
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.