‎2008 Aug 05 4:56 PM
hi gurus....
READ TABLE <itab> with KEY <f1> = <n1>
is the above statemant applicable only for
Sorted and Hashed table.
or is it applicable for all Standard , Sorted and Hashed able.
‎2008 Aug 05 4:58 PM
‎2008 Aug 05 4:58 PM
‎2008 Aug 05 5:00 PM
‎2008 Aug 05 5:07 PM
Hi Diana,
READ TABLE is applicable for all types of tables.
It has nothing to do with the type of table.
Regards,
Chandra Sekhar
‎2008 Aug 05 5:08 PM
Hi,
YES, it is applicable for all tables.
For more info check this thread.
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm
Regards
Adil
‎2008 Aug 05 5:10 PM
Diana,
See This is from SAP F1 help.
WITH TABLE KEY ...
Effect:
Each component of the table key must listed either directly as comp_name1 comp_name2 ..., or as a bracketed character-type data object name1 name2 ..., which contains the name of the component when the statement is executed (before release 6.10 in upper case). If name contains spaces only, this component specification is ignored when the statement is executed. A data object must be assigned to each component, which is compatible with or can be converted to the data type of the component. The first found line of the table is read, for which the values in the columns of the table key match the values in the assigned data objects dobj1 dobj2 .... If necessary, the content of dobj1 dobj2 ... is converted to the data type of the component before the comparison.
The different table types are accessed as follows:
standard tables are searched using a linear search.
sorted tables are searched using a binary search.
For hashed tables, the hash algorithm is used.
Amit.