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 reading from 2nd row

Former Member
0 Likes
1,966

Hi all,

small doubt in writing code for reading an internal table from 2nd row on wards. how to write code to ignore 1st row & read from 2nd row on wards.

Hi

Try this

Loop at <Intrnal table >

if sy-tabix ne 1

read statement...

endif

endloop

vijay

8 REPLIES 8
Read only

Former Member
0 Likes
1,409

loop at itab.

If count = 1.

delete itab index 1.

count = count + 1.

endif.

Read table index 1.

endloop.

Regards,

Ajay

Read only

Former Member
0 Likes
1,409

in my above code initially count = 1.

Regards,

ajay

Read only

Former Member
0 Likes
1,409

Hi

Try this

Loop at <Intrnal table >

if sy-tabix ne 1

read statement...

endif

endloop

vijay

Read only

Former Member
0 Likes
1,409

Try this,


Loop at itab from index 2.

regards,

Advait

Read only

Former Member
0 Likes
1,409

loop at itab from 2.

.....

endloop.

Read only

0 Likes
1,409

Hi Kiran,

I used the loop at itab from 2 . endloop thanks a lot problem solved

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,409

Hello,

Use LOOP AT ITAB FROM 2 stmt. It will start looping from 2 row.

BR,

Suhas

Read only

Former Member
0 Likes
1,409

Hi,

DATA : itab TYPE TABLE OF char10,
       wa   TYPE char10.

wa = 'AA'.
APPEND wa TO itab.
wa = 'BB'.
APPEND wa TO itab.
wa = 'CC'.
APPEND wa TO itab.

CLEAR wa.

LOOP AT itab INTO wa FROM 2.

  WRITE / wa.

ENDLOOP.

Regards