Skip to Content
avatar image
Former Member

Which references to use in Visual Studio 2017 (VB.net) for SAP BAPI?

This code works well when compiled in Visual Studio 2012. In VS 2017 does not. A system COM exception happens as if the object could not be created. Is the any reference I need to add in besides "SAPBAPIControlLib"?

bapiCTR = CreateObject("SAP.BAPI.1") '----> problems here

conn = bapiCTR.Connection conn.Client = "0000"

conn.Password = "0000000"

conn.User = "user"

conn.Language = "PT"

conn.SystemNumber = "00"

conn.HostName = "host.site.com"

conn.TraceLevel = 6

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers