Hi Thomas,
Which SBO version are you using,
I can confirm that I can do it in SBO 9 PL15
Here is my code
oOPDN.CardCode = "SAMG001"
oOPDN.DocDate = Now
oOPDN.Lines.ItemCode = "DIESEL"
oOPDN.Lines.Quantity = 10
oOPDN.Lines.MeasureUnit = "ABC"
oOPDN.Lines.UnitsOfMeasurment = 10
Dim iRet As Integer
iRet = oOPDN.Add
Here is my result
Regards
Edy