I created a UDT with document type. When I populate the data, I don't know how to populate fields "DocEntry" and "DocNum". Those are not UDF. Here is my coding. Can somebody help me out?
Dim objUserTable As SAPbobsCOM.UserTable
objUserTable = objSBOAPI.oCompany.UserTables.Item("AIT_POSTRANS")
objUserTable.UserFields.Fields.Item("DocEntry").Value ="1000"
///////////// Error here "DocEntry" is not a UDF
objUserTable.UserFields.Fields.Item("U_TrnsType").Value = "4"
objUserTable.UserFields.Fields.Item("U_CardCode").Value = objRecord.Fields.Item(0).Value
objUserTable.UserFields.Fields.Item("U_ShpBrnch").Value = objRecord.Fields.Item(1).Value.Replace("'", "")
......................