on 08-20-2009 2:08 PM
Im trying to add additional expenses on delivery which is created already and has no invoice (customer direction).
I have code
Dim odocument As SAPbobsCOM.Documents
odocument = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
If odocument.GetByKey(docentry) Then
odocument.Expenses.Add()
odocument.Expenses.SetCurrentLine(1)
odocument.Expenses.ExpenseCode = 1
odocument.Expenses.LineTotal = value
Dim err_code As Integer
err_code = odocument.Update()
Dim err_msg As String
If err_code <> 0 Then
oCompany.GetLastError(err_code, err_msg)
MsgBox(err_msg)
End If
End If
but it alwazs ends with internal error after .update. Is it even possible to update existing delivery with expenses through DI?
Have you tried manually update this existing delivery with additional expenses? If you can, update should work from DI too. Otherwise, it is not possible.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
not possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.