Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tables

Former Member
0 Likes
410

Hi experts,

can any one tell me the types of tables we have in SAP and the explaination(where do we use them).

thank you in advance.

null

3 REPLIES 3
Read only

Former Member
0 Likes
385

A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command DATA <inttab> TYPE TTYP. An internal table <inttab> is created in the program with the attributes defined for TTYP in the ABAP Dictionary

http://help.sap.com/saphelp_nw04/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm

sorted table,hash table, standard table.

transparent table, pool table , cluster table.

Read only

Former Member
0 Likes
385

The Different Types of Data Dictionary Tables are:

Transparent Tables:

It is used to store application data such as Master and Transactional Data. We always create Transparent Tables. There is a one to one relationship i.e for the table in DDIC another table with thhe same structure and the same name and the same fields will be created in the Original Data base.

Pooled Tables :

It is used exclusively for storing internal control information (Screen sequences, program parameters, temporary data, continuous texts such as documentation). The data from several different pooled tables can be stored together in a table pool. This is Many to One relationship i.e. for amany pooled tables in DDIC only one Data base table will be created in the Database.

Cluster Table:

It is used exclusively for storing internal control information (Screen sequences, program parameters, temporary data, continuous texts such as documentation). The data from several different cluster tables can be stored together in a table cluster. This is Many to One relationship. i.e. for many cluster tables in DDIC only one Database table will be created in the Database. All the Tables in the Cluster Tables should have common Primary Key.

Rewards if useful.

Read only

Former Member
0 Likes
385

Hi

There are three types of tables.

1. Transparent Table

Exists with the same structure both in dictionary as well as in database exactly with the same data and fields.

2. Pooled Table

Pooled tables are logical tables that must be assigned to a table pool when they are defined. Pooled tables are used to store control data. Several pooled tables can be cominied in a table pool. The data of these pooled tables are then sorted in a common table in the database.

3. Cluster Table

Cluster tables are logical tables that must be assigned to a table cluster when they are defined. Cluster tables can be used to strore control data. They can also be used to store temporary data or texts, such as documentation.

The major difference between transparent tables, pooled tables and clusterd Tables are:

A transparent table is a table that stores data directly. You can read these tables directly on the database from outside SAP with for instance an SQL statement.

Transparent table is a one to one relation table i.e. when you create one transparent table then exactly same table will create in data base and if is basically used to store transaction data.

A clustered and a pooled table cannot be read from outside SAP because certain data are clustered and pooled in one field.

One of the possible reasons is for instance that their content can be variable in length and build up. Database manipulations in Abap are limited as well.

But pool and cluster table is a many to one relationship table. This means many pool table store in a database table which is know as table pool.

All the pool table stored table in table pool does not need to have any foreign key relationship but in the case of cluster table it is must. And pool and cluster table is basically use to store application data.

Table pool can contain 10 to 1000 small pool table which has 10 to 100 records. But cluster table can contain very big but few (1 to 10) cluster table.

For pool and cluster table you can create secondary index and you can use select distinct, group for pool and cluster table. You can use native SQL statement for pool and cluster table.

A structure is a table without data. It is only filled by program logic at the moment it is needed starting from tables.

A view is a way of looking at the contents of tables. It only contains the combination of the tables at the basis and the way the data needs to be represented. You actually call directly upon the underlying tables.

more info

http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm

http://cma.zdnet.com/book/abap/ch03/ch03.htm

Check this links.

http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm

http://www.techinterviews.com/?p=198

<b>Reward if usefull</b>