!--a11y-->
Creating Tables 
...
...
1. Open the Dictionary perspective in the SAP NetWeaver Developer Studio.
2. Create a Dictionary project or a DC component. For this purpose, read the section Development Process.
3. In the Dictionary Explorer, position the cursor on Database Tables, and choose Create Table in the context menu.
4. Enter the name of the table.
Table names must begin with a prefix (for example, the name of a component ‚FI_*’).
The name of a table can be 18 characters long (inclusive of the prefix). Letters, numbers, and the character ‚_’ are allowed.

The name reservation takes place when the Dictionary object is assigned to an activity (check-in into Design Time Repository). If the name is already reserved, you can create the tale, but you cannot save it in the DTR.
5. In the field Description, enter a short description for the table.
6. Choose Multi-client enabled if you require this.

From an organizational and data-technical point of view, a client is a closed unit with separate master records and an independent set of tables within a mySAP system. As soon as multi-client-enablement has been implemented in the J2EE engine, the attribute Multi-client-enabled will be interpreted. This is currently not the case. However, if you need it, you should already set this function.
For more information on the client concept, refer to any SAP /3-System (Basis Release >= 6.20) under Help ® SAP Library ® SAP Netweaver Components ® Cross Application Functions ® Client Concept.

7. Choose Add Column to create new columns.
If you choose the Simple Type tab in the following dialog box, the table column will refer to a data type defined in the Java Dictionary. In the Built-in Type tab, define the data type for the table column yourself.

Built-in Type
¡ Enter a name for the table field in the Column Name field. The name may only contain letters, digits, and underscore lines, and it must begin with a letter.
¡ In the Built-in Type field, choose a data type. The JDBC Type field is automatically set and provides information on the underlying, database-independent JDBC type that results from the selected Built-in Type and from the length entered for the field.
¡ In the following fields, you can enter the length, number of decimal places, and a short description, if required.
¡ If required, enter the DB Default. For more information, refer to the section Initial Values.
¡ Select the Key checkbox if the field should be part of the table key.
Key fields are used in tables for unique identification of data records. Examples of key fields are customer number, article description, and so on. A table can have up to 16 key fields.
¡ If required, select the checkbox Not Null. For more information, refer to the section Initial Values.
Simple Type
¡ After you have chosen Add Column to create a table column, choose the Simple Type tab. Then enter the name of the field, the package in which the simple type is contained, and the simple type. In this way, you can include predefined data types in a table. For more information, read the explanations in the section Creating Data Types.
8. If necessary, create indexes for the table. For more information, refer to the section Creating Indexes.
9. Choose the Table Buffering tab. Here you can define the buffering type for the table. The table can be buffered entirely or row by row. If the table contains more than one key field, generic areas can be buffered. For more information, refer to the section Buffering Type.
Choose the pushbutton Advanced if you wish to exclude databases you are not using. When you create a table, different checks are carried out. If no database is excluded, the checks will be based on all the specified databases. However, remember that porting the table to a database is perhaps not possible if the database was excluded in the database wizard.
10.
Save your
entries with the pushbutton
(Save All Metadata). All the project metadata is stored and
generated. When the data is saved, an XML description of the table is
automatically created.

If generation is to take place automatically, select the path Window -> Preferences -> Workbench and choose the option Perform build automatically on resource modification. Likewise, you can position the cursor on the project name and choose Build or Rebuild project in the context menu. If you choose Rebuild project, the generated XML file is updated.

Tables should be created solely using the Editor. No changes should be made to XML files.
When a table
is deleted, the created XML file is retained. The table contains the deleted addition in the Dictionary Explorer.
In the Dictionary perspective, choose Hide deleted tables under
(Menu) if tables that have already been deleted are
not to be displayed. Reservations for table names cannot be removed from the
name server.
The table is now created in the Java Dictionary. The table can now be deployed. During deployment, the table and all the indexes are automatically created in the database (if not explicitly excluded when the index was defined).
For more information, refer to the section Deploying Tables Locally.
See also:
