Skip to Content
author's profile photo Former Member
Former Member

Create UserTable: Name in Capital Letters?

Hello Forum,

I'm creating my own tables with this code:

Dim oUserTablesMD As SAPbobsCOM.UserTablesMD = CType(oCIBAddOn.oCompany.GetBusinessObject(BoObjectTypes.oUserTables), SAPbobsCOM.UserTablesMD)

If Not oUserTablesMD.GetByKey("ABCMyTab") Then

oUserTablesMD.TableName = "ABCMyTab"

oUserTablesMD.TableDescription = "ABCMyTab"

oUserTablesMD.TableType = BoUTBTableType.bott_NoObject

If oUserTablesMD.Add <> 0 Then

' Error: oCompany.GetLastErrorDescription()

End If

End If

Why is the table created with a captial letters name? Its not ABCMyTab, its ABCMYTAB. On the other hand, the column names are case sensitive again. Is this a rule that the table names must be in capital letters?

Thanks

Kin

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 06, 2016 at 10:20 AM

    Hi Kin,

    Is this a rule that the table names must be in capital letters?

    Could be an SAP internal rule. They usually use that pattern.

    It's not a limitation of RDBMS. I'd recommend following that pattern since it makes it more consistent with the other tables in the schema.

    Remember that when querying the table you can use aliases to "change" the name of the table.

    E.g.: SELECT "BusinessPartners".* FROM OCRD as "BusinessPartners"

    Normally I'd only alias when the name of table is either cryptic (ECDW1) or too long (SAP_ABC_MYVERYLONGTABLENAME).

    It's also good practice to use double-quotes (") around table names and fields since this makes it more compatible with HANA.


    Pedro Magueija


    LinkedIn Logo View Pedro Magueija's profile on LinkedIn
    Follow @pedromagueija on Twitter

    If this answer was helpful or correct consider marking it as such.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the answer 😊

      I was looking for my User Defined Table in the CUFD table, and at first I didnt found it, because I looked with my original name. Ok, then I will name my tables from now on in capital letters.

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.