Skip to Content
avatar image
Former Member

Disconnect with NCo 3.0

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 09, 2012 at 11:22 AM

    Hi,

    how do you closed the connection without closing the program?

    Add comment
    10|10000 characters needed characters exceeded