Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos
290

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

0 REPLIES 0