Sei sulla pagina 1di 3

INTERNAL TABLES

We Never Compromise in Quality. Would You ?


_______________________________________________________________________
_
1.What are the Types of internal tables ?
1. Standard Internal Tables: These tables have a linear index and can be accessed
using the index or the key. The response time is in linear relationship with number
of table entries. These tables are useful when user wants to address individual
table entries using the index.
2. Sorted Internal Tables: These tables also have an index and the key. But, the
response time is in logarithmic relationship with number of table entries, since it
uses binary search algorithm instead of linear search. These tables are useful
when user wants the table to be sorted while additional entries have to be added.
3. Hashed Internal Tables: These tables have no index, but have the key. The
response time is constant irrespective of number of table entries, since it uses a
Hash algorithm. These tables are useful when user wants to access the entries with
key only.

2.what is the basic difference between internal tables and database tables? how can
we differentiate by looking at the tables? And how Handling of internal tables ?

The basic difference is database tables are stored in db server


and the internal tables are virtual tables these r created run time only.

3.What is the Size of the internal tables ?


Internal table have 2 gigabytes of memeory space.n the initialize size is of 8 kb which
can be extend further.

4.Difference between Field groups and internal tables ?

Field group holds single value and internal tables holds multiple values

5.How to eliminate duplicate entries in internal tables ?


DELETE ADJACENT DUPLICATES

6.WHAT IS COLLECT STATEMENT.?

Collect statement is used to summerize the records.

If an entry with the same key already exists, the COLLECT statement does not append a
new line, but adds the contents of the numeric fields in the work area to the contents of
the numeric fields in the existing entry.

Page 1 of 3 Prepared By : Ganapati Adimulam


eMAX Technologies,AmeerPet,Hyderabad
Ph : +91 40 65976727.
INTERNAL TABLES
We Never Compromise in Quality. Would You ?
_______________________________________________________________________
_

7. How to Print the 3rd record from the ITAB.


READ TABLE ITAB INDEX 3. (Recommended)
OR
LOOP AT ITAB.
IF SY-TABIX = 3.
WRITE ITAB.
ENDIF.
ENDLOOP.

8. How to Transfer Data From ITAB1 to ITAB2 whose structure is same.

ITAB2 = ITAB1.

OR
APPEND LINES OF ITAB1 TO ITAB2 FROM <INDEX1> TO <INDEX2>.

NOTE : To Transfer all the records , Ignore the INDEX Range.

Note : If you want INSERT the specific records from ITAB1 into Specific Location in
ITAB2.

INSERT LINES OF ITAB1 FROM <INDEX1> TO <INDEX2> INTO ITAB2 INDEX


<n>.

9. How to Print records from 5(N1) to 10(N2) from ITAB. ?

LOOP AT ITAB FROM <N1> TO <N2>.


Write itab.
ENDLOOP.

10. What is TABLES Keyword ?

TABLES KNA1.
Defines a Work Area(Field String) with the Same NAME(KNA1) with all the
fields from KNA1 in the Same Order.

Note : Generally We Use KNA1 in Module Pool Programming to refer the Fields
from Data Dictionary.
11. Can We Sort the Sorted Internal Tables ?
NO.

Page 2 of 3 Prepared By : Ganapati Adimulam


eMAX Technologies,AmeerPet,Hyderabad
Ph : +91 40 65976727.
INTERNAL TABLES
We Never Compromise in Quality. Would You ?
_______________________________________________________________________
_

12.

Page 3 of 3 Prepared By : Ganapati Adimulam


eMAX Technologies,AmeerPet,Hyderabad
Ph : +91 40 65976727.

Potrebbero piacerti anche