Skip to Content
0
Former Member
May 09, 2008 at 08:47 PM

How to populate fields "DocEntry" and "DocNum" in UDT? Those are not UDF.

162 Views

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("'", "")

......................