what is the difference between standard and sorted
internal tables? (in performance wise)

Answer Posted / vasu sistla

Standard tables:This is the most appropriate type if you are going to address the individual table entries using the index. Index access is the quickest possible access. You should fill a standard table by appending lines (ABAP APPEND statement), and read, modify and delete entries by specifying the index (INDEX option with the relevant ABAP command). The access time for a standard table increases in a linear relationship with the number of table entries. If you need key access, standard tables are particularly useful if you can fill and process the table in separate steps. For example, you could fill the table by appending entries, and then sort it. If you use the binary search option with key access, the response time is logarithmically proportional to the number of table entries.

Sorted tables:This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different kinds of lock modes?

567


SAP query how to use end users?

1697


What do you mean by cluster tables in sap abap? Also explain what do you mean by table cluster? : abap data dictionary

520


Explain the disadvantages of logical databases?

553


What is sap abap data classes?

607






What is the use of abap data dictionary? : abap data dictionary

584


What are the functional modules used in sequence in bdc? : abap bdc

580


What is the modification assistant?

582


Control Break statements- At new...endat.

902


What are the events used in abap in the order of execution?

561


Explain the difference between domain and data element?

581


How many main windows will be there in a page window?

563


HI GUYS , FOR SAP INSTITUTION ATOS I BEST OR NOT? IAM PLANNING TO LEARN SAP COURSE IN ATOS... GIVE ME UR SUGGESTION ABOT ATOS?

2406


What is an evaluation path? : sap abap hr

559


What kind of BDC programs are written ?

599