Skip to Content
0
Former Member
Jun 28, 2011 at 06:35 AM

Failed to add data -1116 could not commit transaction

148 Views

Hello Experts

After installation of our add-on on client machine with SAP 8.8.1. we have received this error:

"Failed to add data -1116 could not commit transaction" after traing to add data to our table by using this code :

Dim oUserTable As SAPbobsCOM.UserTable

oUserTable = oCompany.UserTables.Item("UserTab")

'Set default, mandatory fields

oUserTable.Code = UniqueID

oUserTable.Name = UniqueID

'Set user field

oUserTable.UserFields.Fields.Item("U_UserField").Value = "UserValue"

oUserTable.Add()

What should I do?

Thanks