on 08-08-2005 12:12 PM
hi all
i am in great need to insert data in a UDT of type Document/Document_line through code. i have created a UDO of my tables and now want to insert data in these tables through code.
how to achieve this, plz do reply me as soon as possible
thanks.
Dim userTable As SAPbobsCOM.UserTable
'Use the user table we added before
userTable = oCompany.UserTables.Item("YourTableName")
'Add a first row in the table
userTable.Code = "A1"
userTable.Name = "A.1"
userTable.UserFields.Fields.Item("U_Your1stField").Value = "First value"
userTable.UserFields.Fields.Item("U_Your2ndField").Value = "2nd Value"
userTable.Add()
'Second row in the @TB1300 table
userTable.Code = "A2"
userTable.Name = "A.2"
userTable.UserFields.Fields.Item("U_Your1stField").Value = "Second value"
userTable.Add()
userTable.UserFields.Fields.Item("U_Your2ndField").Value = "Row 2 UDF 2"
userTable = Nothing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
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.