Skip to Content
author's profile photo Former Member
Former Member

Error adding new records in an user table


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)


end if

Thanks and Best Regards


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 06:13 PM

    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


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.