Skip to Content
0
Former Member
May 16, 2013 at 07:43 AM

[Help] - Inventory Transfer Request

444 Views

Hi experts, I'm just wondering why in SAPbobsCOM.Documents has no FromWareHouse function. I'm trying to create Inventory Transfer Request Draft through DI API. Is there any way to fill up the FromWareHouse field?

Here's my sample code.

Dim oInvTrans As SAPbobsCOM.Documents

oInvTrans = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)

oInvTrans.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInventoryTransferRequest

'oInvTrans.FromWareHouse = oWhsCode ---- There's no such field/function like this.

But when I changed to Dim oInvTrans As SAPbobsCOM.StockTransfer I can choose the FromWareHouse, but I'm getting error at oInvTrans = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts).

Regards,