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

Abou Internal Table

Former Member
0 Likes
565

Hi All,

I want to access a single line of an internal table. How can I do this.Can anyone help me out.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
542

you can simply use the READ TABLE statement. You can acces by INDEX or by using a KEY

READ TABLE Itab INDEX 1.

or

READ TABLE itab WITH KEY FLD = 'X'.

REgards,

Rich Heilman

you can simply use the READ TABLE statement. You can acces by INDEX or by using a KEY

READ TABLE Itab INDEX 1.

or

READ TABLE itab WITH KEY FLD = 'X'.

REgards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
543

you can simply use the READ TABLE statement. You can acces by INDEX or by using a KEY

READ TABLE Itab INDEX 1.

or

READ TABLE itab WITH KEY FLD = 'X'.

REgards,

Rich Heilman

Read only

Former Member
0 Likes
542

Hi Ravi,

Use...

Read table itab with key .

It reads only one record...Either by index or key.

READ TABLE MY_TAB INDEX 1.

READ TABLE MY_TAB WITH KEY CODE = 'ATG'.

Regards,

Priyanka.

Read only

Former Member
0 Likes
542

Hi,

IN your program , check F1 help for the keyword READ, you will find all the possible ways for reading table with examples also .

Place your cursor on read and press help .

Thanx .

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
542

Hi,

You have to use READ TABLE ITAB INTO or ASSIGNING.

Using ASSIGNING you can point the row of the internal table into a FIELD-SYMBOL then you can update this row and the internal table is automatically updated you need not use MODIFY.

Regards,

Sesh