2017 Aug 18 7:08 PM
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