Skip to Content
Former Member
Nov 27, 2009 at 08:13 AM

Create draft for Stock Trasfer


Hi all, I have problems making a Draft document of a Stock Transfer using the DIAPI,

The problem is that I can't find the property "FromWarehouse", into the Draft Object.

Code like this

oTransfer = oCompany.GetBusinessObject(BoObjectTypes.oDrafts)

oTransfer.DocObjectCode = BoObjectTypes.oStockTransfer

fromwhscode = "01"

'The following property can't find

oTransfer.FromWarehouse = fromwhscode




Thanks for help.