07-10-2009 12:04 PM
hi gurus
i have a report where i need to generate SNo(serial number ) to the records
displayed....
pls help me out....
thank u
07-10-2009 12:06 PM
07-10-2009 12:11 PM
Hi,
Try like this;
Data : s_no(3) type n.
Loop at itab.
s_no = sy-tabix.
...........
...........
..........
Write : s_no.
.....................
.......................
endloop.
Regards
Karthik D
07-10-2009 12:27 PM
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
07-10-2009 12:32 PM
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