Skip to Content
0
Jan 22, 2019 at 05:40 AM

How Do I BoObjectTypes - oPurchaseRequest work?

224 Views Last edit Jan 22, 2019 at 05:48 AM 3 rev

I am trying to insert data into Purchase Request using DI API.

These are 2 lines from the beginning of a method im working on.

SAPbobsCOM.Documents oPR;

oPR = (SAPbobsCOM.Documents)ZSBO.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseRequest);

I can't seem to assign BoObjectTypes.oPurchaseReuqest to oPR.

I only get an errror saying "Can't find the definition of oPurchaseRequest in SAPbobsCOM.BoObjectTypes".

Please help. Thanks in advance.