Skip to Content
0

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

Aug 18, 2017 at 06:08 PM

38

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers