Skip to Content
0
Former Member
Jul 05, 2006 at 04:27 AM

Add UDF to OITM Table

200 Views

Hi everyone

I was trying to create new udf for OITM and OCRD system tables.

When I checked CUFD table after ran below function,

OITM's tableid is stored as @OITM instead of OITM but OCRD table is stored as OCRD.

I had a problem only OITM table.

I'm runing on B1 2004 PL32.

Please help me!!!!

oUFields = oCompany.GetBusinessObject (SAPbobsCOM.BoObjectTypes.oUserFields)

oUFields.TableName = "OITM"

oUFields.Name = "PrcGrp"

oUFields.Description = "PriceGroup"

oUFields.Type = SAPbobsCOM.BoFieldTypes.db_Alpha

oUFields.Size = 8

oUFields.Add

Me.ReleaseUFields()

oUFields.TableName = "OCRD"

oUFields.Name = "PrcGrp"

oUFields.Description = "PriceGroup"

oUFields.Type = SAPbobsCOM.BoFieldTypes.db_Alpha

oUFields.Size = 8

oUFields.Add

Me.ReleaseUFields()