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 is table attribute? : abap data dictionary

564


How to use messages in lists?

598


What is an evaluation path? : sap abap hr

549


Which transaction code can I use to analyze the performance of abap program?

550


What is the function of the transport system and workbench organiser? : abap data dictionary

606






What is sap abap data dictionary?

625


Why lsmw does not support call transaction method? : abap bdc

626


Rp_provide_from_last contains how many parameters ? : abap hr

865


What are your ways to performance optimization?

904


What are the different types of views and their definition?

582


To how many tables can an append structure be assigned. : abap data dictionary

581


What is a match code? : abap data dictionary

629


What are the different software packets available in the market? : sap abap hr

564


While doing bdc exp va01 transaction sometime in the item level data shows only 4 items and other times it will show 6 line items, how will you maintain this kind of screen resolutions scenerio? : abap bdc

750


What is internal payroll process? : sap abap hr

582