Hi
I'm trying to add a new record in an user table, and after calling the add method I get the next error message:
"Generating this document requieres numbering to be determined for the document".
I've defined my user table as Master Data, and the source code is as follows:
dim m_UserTable as SAPbobsCOM.UserTable
m_UserTable = SboCompany.UserTables.Item(UserTable)
m_usertable.Code = NewValue
m_usertable.UserFields.Fields.Item("U_FIELD1").Value = NewValue
if m_userTable.add() <> 0 then
SboCompany.GetLastError(lngError, strerror)
SboApplication.MessageBox(strerror)
end if
Thanks and Best Regards
Dani
Hi Dani,
when you create a user Table as "Master Data", this table becomes a part of a UDO (User Data Object) that you have to create too.
In the version 2004A, you don't have the possibility to enter information in these kind of table using the DI. You can only do it thru the application.
You can look at a post called "Access to UDO via DI" posted 16th December 2004
Sebastien
Add a comment