Skip to Content
0
Former Member
Apr 19, 2010 at 04:27 PM

CREATING USERTABLE

32 Views

Hi all,

Does anyone know why the code is not executing the TRY correctly???

The code below:

SBO_Application.MetadataAutoRefresh = True

Dim ret As Integer

'adding user table

Try

objectUserTablesMD =objectCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)--> FROM HERE TE CODE GOES TO EXCEPTION!!!!, it´s not executing the 3 lines below

objectUserTablesMD.TableName = "USERTABLENAME"

objectUserTablesMD.TableDescription = "USERTABLEDESCRIPTION"

objectUserTablesMD.TableType = SAPbobsCOM.BoUTBTableType.bott_NoObject

ret = oUserTablesMD.Add

Thank you in advanced

lorenzo