6 Columns with Active Background
6 Columns with Active Background
Active List Item Background

24DDIC1207 – Understanding Database Tables in SAP ABAP

A database table in SAP ABAP is a structured collection of data stored in the SAP database. It is defined in the ABAP Dictionary and is used to store and manage data required by SAP applications.

Creating Database Tables in SAP ABAP

In SAP ABAP, there are two primary methods to create a database table in the ABAP Dictionary:

  1. Direct Method / Predefined Type
  2. Data Element Type

Technical Requirements

  1. Table Naming Convention: The table name must begin with “Y” or “Z” because names starting with “A” to “X” are reserved for SAP.
  2. Delivery Class: This defines the owner of the table and controls data transfer between tables.
  3. Technical Settings & Size Category: These parameters specify the storage and memory allocation for the table.

 

Creating a Database Table Using the Direct Method / Predefined Type

Step-by-Step Guide:

Step 1: Execute SAP Tcode “SE11”

Enter “SE11” in the SAP command field and press Enter.

Step 2: ABAP Dictionary: Initial Screen

Select the “Database table” radio button.

 Enter the name of the database table (starting with “Y” or “Z”).

Click on the “Create” button.

Step 3: Dictionary: Maintain Table

Enter a short description for the table.

Set the Delivery Class to “A” (for application tables).

Set the Data Browser/Table View Maint. to “Display/Maintenance allowed”.

Proceed to the “Fields” tab.

Step 4: Predefined Type

Select the “Predefined type” option.

Step 5: Define Table Fields

Enter the field name.

Set the field as a key if required by checking the “Key” option.

Select the data type (e.g., Numeric or Character).

Specify the length of the field.

Save the Table

Click on the save icon to save your table. A “Create Object Directory Entry” window will appear.

Enter the package name or choose “Local Object”.

Activation

To activate the table, navigate to Goto -> Technical Settings or use the shortcut Ctrl+Shift+F9.

Step 6: Technical Settings

Set the Data Class from the drop-down list.

Specify the Size Category for the table, determining the storage allocation.

Save the technical settings and activate the table using the Activate icon (Ctrl+F3).

Upon successful activation, your database table is ready for use in SAP ABAP.

Author : Aniket Pawar, 9373518385                                                       

24DDIC1207 – Understanding Database Tables in SAP ABAP

A database table in SAP ABAP is a structured collection of data stored in the SAP database. It is defined in the ABAP Dictionary and is used to store and manage data required by SAP applications.

Creating Database Tables in SAP ABAP

In SAP ABAP, there are two primary methods to create a database table in the ABAP Dictionary:

  1. Direct Method / Predefined Type
  2. Data Element Type

Technical Requirements

  1. Table Naming Convention: The table name must begin with “Y” or “Z” because names starting with “A” to “X” are reserved for SAP.
  2. Delivery Class: This defines the owner of the table and controls data transfer between tables.
  3. Technical Settings & Size Category: These parameters specify the storage and memory allocation for the table.

 

Creating a Database Table Using the Direct Method / Predefined Type

Step-by-Step Guide:

Step 1: Execute SAP Tcode “SE11”

Enter “SE11” in the SAP command field and press Enter.

Step 2: ABAP Dictionary: Initial Screen

Select the “Database table” radio button.

 Enter the name of the database table (starting with “Y” or “Z”).

Click on the “Create” button.

Step 3: Dictionary: Maintain Table

Enter a short description for the table.

Set the Delivery Class to “A” (for application tables).

Set the Data Browser/Table View Maint. to “Display/Maintenance allowed”.

Proceed to the “Fields” tab.

Step 4: Predefined Type

Select the “Predefined type” option.

Step 5: Define Table Fields

Enter the field name.

Set the field as a key if required by checking the “Key” option.

Select the data type (e.g., Numeric or Character).

Specify the length of the field.

Save the Table

Click on the save icon to save your table. A “Create Object Directory Entry” window will appear.

Enter the package name or choose “Local Object”.

Activation

To activate the table, navigate to Goto -> Technical Settings or use the shortcut Ctrl+Shift+F9.

Step 6: Technical Settings

Set the Data Class from the drop-down list.

Specify the Size Category for the table, determining the storage allocation.

Save the technical settings and activate the table using the Activate icon (Ctrl+F3).

Upon successful activation, your database table is ready for use in SAP ABAP.

Author : Aniket Pawar, 9373518385