Skip to Content
0
Former Member
Jan 02, 2008 at 07:55 AM

Adding new record in UDT

46 Views

Hi Guys,

I am updating my UDT using this code and I encounter this error "Found error: -4002, To generate this document, first define the numbering series in the administration module". Please i am just new in SDK development. Thank you very much.

Dim UT As SAPbobsCOM.UserTable

Dim nErr As Integer

Dim errMsg As String

SBO_Application.MessageBo"starting to add record")

UT = oCampany.UserTables.Item("SOSTABLE")

UT.UserFields.Fields.Item("u_tmark").Value = "Y"

Call UT.Add()

Call oCampany.GetLastError(nErr, errMsg)

If (0 <> nErr) Then

SBO_Application.MessageBox"Found error:" + Str(nErr) + "," + errMsg)

End If

best regards,

Darius