ActiveX component can't create object wen connecting to SAP BAPI or Functions though SW api?

I am trying to connect with SAP's BAPI's or Function's from a SW swp file but when I try to create a SAP.bapi or SAP.Function object I get a run time error 129 "ActiveX component can't create object'. I can create them fine in Excel or Visual Studio 2010. Is anyone doing this or have any suggestions on what I need to do to get this created?

Thanks in advance.

Dan Miel

SW 2016 SP04, PDM Pro 2016 SP04, VB 2010

SolidworksApi macros