Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

READ TABLE

Former Member
0 Likes
616

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
512

As far as i know it is applicable to all tables

5 REPLIES 5
Read only

Former Member
0 Likes
513

As far as i know it is applicable to all tables

Read only

Former Member
0 Likes
512

It is applicable to all tables....

Read only

Former Member
0 Likes
512

Hi Diana,

READ TABLE is applicable for all types of tables.

It has nothing to do with the type of table.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
512

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

Read only

Former Member
0 Likes
512

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.