cancel
Showing results for 
Search instead for 
Did you mean: 

Create User Table with DI API Not Working

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member233854
Active Contributor
0 Kudos

This is related to other objects that need to be released from the memory

What are you doing before calling this function?

check below

https://archive.sap.com/discussions/thread/1413206