Application Development 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: 

S.No generation for the records

Former Member
0 Kudos

hi gurus

i have a report where i need to generate SNo(serial number ) to the records

displayed....

pls help me out....

thank u

4 REPLIES 4

sridhar_meesala
Active Contributor
0 Kudos

Hi,

Check [this|;

Former Member
0 Kudos

Hi,

Try like this;

Data : s_no(3) type n.

Loop at itab.
s_no = sy-tabix.
...........
...........
..........
Write : s_no.
.....................
.......................
endloop.

Regards

Karthik D

0 Kudos

if i give simply as write:/ sy-tabix only total of the records will be display

whereas my requirement is that i want to generate sequentially .....

pls help

thnx for helping

0 Kudos

Hi,

Try that and then conclude, sy-tabix will only give serial numbers actually its the record number in the internal table.

You need to use DESCRIBE TABLE itab LINES i_lines to get the total records.

Regards

Karthik D