cancel
Showing results for 
Search instead for 
Did you mean: 

Issue trying to late bind a DI object - class factory cannot supply ..

iNDdM
Participant
0 Kudos

I am trying to late bind a DI object. I can late bind and connect the company object but when it comes to this line below I get an error.



Set oOutPymnt = CreateObject("SAPbobsCOM.Payments")

"class factory cannot supply requested class"
 

any help is appreciated, I need to late bind if possible as the DI part of the add-on is for a fleeting moment only and the server is very low in resources. so I use the DI for that time and then drop it asap.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I havent try it, but there is an old post about late binding. Let me check.

Here it is. Hope helps.

Ibai Peña

Message was edited by: Ibai Peña

iNDdM
Participant
0 Kudos

figured it out..

should have used the following line only.


   '---oVendorPayments = 46
    Set oOutPymnt = gObjCompany.GetBusinessObject(46)

this line will not work as the class i am trying to create aparently is not public creatable.


Set oOutPymnt = CreateObject("SAPbobsCOM.Payments")