cancel
Showing results for 
Search instead for 
Did you mean: 

Create UserTable: Name in Capital Letters?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

Answers (0)