Skip to Content

DI:Adding additional Indexes to UserTables

Hi there

I could not find a property in the MetaData-Object to add additional Indexes to a UserDefined-table so I added additional indexes using an ado connection.


Is there any other way to add additional indexes to the usertables?

Something nice:

I was running SBO and SBO was doing an update on SBO_Demo_US. After the update run only the Name-Index and the Primary-Index have been left in the user tables.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 13, 2004 at 01:04 PM

    You can use the object UserKeysMD

    Dim oUserKeysMD As SAPbobsCOM.UserKeysMD

    oUserKeysMD = Sbo_Company.GetBusinessObject(BoObjectTypes.oUserKeys)

    oUserKeysMD.TableName = "MyTable"

    oUserKeysMD.KeyName = "MyIndexName"

    oUserKeysMD.Elements.ColumnAlias = "MyField1"


    oUserKeysMD.Elements.ColumnAlias = "MyField2"


    oUserKeysMD.Unique = BoYesNoEnum.tYES


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.