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

INTERNAL TABLE

Former Member
0 Likes
876

I have 1 to 100 records in internal table and I want to SEE only 1st and 100th record,how can I see ,what is the command used.

9 REPLIES 9
Read only

Former Member
0 Likes
854

Something like;

READ table INDEX 1.

DESCRIBE table LINES lin. "Tells you how many lines in the table

READ table INDEX lin.

Regards,

Nick

Read only

JozsefSzikszai
Active Contributor
0 Likes
854

hi Sirisha,

LOOP AT itab.

AT FIRST.

WRITE itab.

ENDAT.

AT LAST.

WRITE itab.

ENDAT.

ENDLOOP.

hope this helps

ec

Read only

rodrigo_paisante3
Active Contributor
0 Likes
854

hi

try this

read table itab index 1.

...

read table itab index 100.

or you can try to sort ascending/descending and read table itab index 1

sort itab ascending.

read table itab index 1.

sort itab descending.

read table itab index 1.

Read only

Former Member
0 Likes
854

This question is solved.

Thanks to all the members of SDN who helped me to solve this issue.

Thank once again to one and all.

--Sirisha

Read only

0 Likes
854

Please stop.

Rob

Read only

0 Likes
854

Hello Rob where is Tob It's friday!!

Read only

0 Likes
854

He met with an unfortunate accident. I'm taking over his duties for today.

Rob

Read only

0 Likes
854

That's sad. Do convey my Get well Soon wishes:-)

Read only

0 Likes
854

He may not get well. I found him too ... I don't know ... friendly?

Rob