how to use binary search in internal table?what is the use
of indexes and secondary indexes?
Answers were Sorted based on User's Feedback
Answer / abani kanta sahoo
In binary search, the total records are divided in to two
parts. First It will search the particular record in first half and then in second half. Indexs are used to get the data very fast.
Primary indexes are crated during the creation of table it's come by default but secondary indexes are created by user with the fields from the corresponding table according to need.
Table->menu->Goto->indexes
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / anuradha
Mainly while reading data from internal tables we will use binary search.And before using binary search in reading table we need to sort the internal table.And this is one of performance technique.
Indexes also used to increase the performance.
Two types of indexes
1.Primary Indexes 2.Secondary Indexes
1.Primary key in table will act as a primary Index.
2.Secondary Indexes can be created from table level.
Table->menu->Goto->indexes.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / malli.gontla
In binary search, the total records are divided in to two
parts. It will search the particular record in first half
and then in second half. Binary means, dividing in two
parts.
Indexs are used to get the data very fast.
Indexs are 2 types, primary and secondary.
Primary indexes are crated during the creation of table. By
defaultly primary indexes are created. But secondary
indexes are created by used according to user need.
Is This Answer Correct ? | 1 Yes | 4 No |
what are the differences between scripts & smart forms?
Module Pool Programming: Events and Table Control handling.
how do you transport a script and how do you transport a standard texts?
Hi, How to do sub totals in classical reports?
What is the significance of the memory table ‘screen’?
Overall how do you write transaction programs in SAP?
Tcode for enhancements?
How many sections main window cab be divided in Script?
What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?
How are BAPI different from Normal function modules ?
Can you assign a matchcode object to a parameter? If so how?
How Group 10 sets of records per group of Internal Table in ABAP. Good Afternoon All, I have one internal table which have 400 records ,i need to group these records in set of 10 records . for example: ID value 2 100 1 95 3 90 4 85 6 80 7 75 8 70 10 65 9 60 ---------------------------------- Total : 720---------------------------------------1st group ------------------------------- 11 59 13 58 12 55 14 54 15 52 18 51 16 50 17 49 19 40 20 39 ------------------------------- Total : 507 -----------------------2nd Group ------------------------------ .......... .......... ........ please help me ....how i get this in abap. Thanks