Skip to Content
0
Jan 10, 2018 at 11:04 AM

Create User Table with DI API Not Working

144 Views

Hi,

I have tried using a sample in the SDK documentation to create a user defined table with DI API. It is not working however. Any ideas what is wrong? Return code is -1120

Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
    
                Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
                Dim l_ret As Integer

                oUserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)

                oUserTablesMD.TableName = "BE_USER1"
                oUserTablesMD.TableDescription = "A simple user table"
                l_ret = oUserTablesMD.Add()          
    

Thanks,

Martin