cancel
Showing results for 
Search instead for 
Did you mean: 

Disconnect with NCo 3.0

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

how do you closed the connection without closing the program?