1) What is the difference between internal table and structure?
Ans: There are three types of structure:-
1. Flat structure (elementary fields)
2. Nested structure (type reference to other structure)
3. Deep structure (type reference to database tables)
2) Explain row type and line type concept
Ans:
Line type refers to the structure of an internal table, whereas row type is the actual part that contains the data and it refers to the table body. Creating internal table using line type and row type concept is for reusability purpose. Line type and Row type are defined at DDIC LEVEL.
3) Can any one give me brief explanation about internal tables, and work area?
Ans:
* An internal table is a run time instance. It gets created when program starts execution.
* It gets destroyed when program terminates. It has two different parts: Header Line (optional) and Body (Compulsory).
* Any value that comes to or goes from internal table, that travels through header line.
4) How to eliminate duplicate entries in internal tables?
Ans-1: SORT itab. DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS.
Ans-2: The following syntax:
SORT itab <fieldname>.
Delete adjacent duplicates from itab comparing.
5) Size of the internal tables?
Ans: The size of the internal tables is set using the 'occurs n' clause. Here n refers to a integer number that specifies the size. Usually it’s given as 'occurs 0' which creates an itab with the memory space of 8kb.
6) What are the basic difference internal tables and database tables? How can we differentiate by looking at the tables?
Ans: Handling of internal tables:
The basic difference is database tables are stored in DB server and the internal tables are virtual tables these are created run time only Internal tables are created dynamically, the memory of internal tables is not permanent memory, for internal tables the memory will be created in the application server and it is external memory and terminates after the program termination.
0 comments:
Post a Comment