2009 Aug 12 2:16 PM
Dear all,
I need to Print 10 Invoice Numbers like Sl.no and Invice number.
Here the serial number means ,Normally 1 ,2,3,4,5,6,7,8,9,10 .......Etc.
Is thr any FM or Table or Hot code how can i give the condition to this.
Thanks in advacne
Regards
raj.
Dear all,
I need to Print 10 Invoice Numbers like Sl.no and Invice number.
Here the serial number means ,Normally 1 ,2,3,4,5,6,7,8,9,10 .......Etc.
Is thr any FM or Table or Hot code how can i give the condition to this.
Thanks in advacne
Regards
raj.
2009 Aug 12 2:18 PM
Hi Venky,
lets know what is the purpose of it, ie, where you are printing? is it in report or as legal Doc (script/smartform)
Rgds,
Sripal
2009 Aug 12 2:34 PM
2009 Aug 12 2:44 PM
Hi venky,
then your job vl be very easy.
suppose itab contains invoices, you can disply serial number at the time of priting in the list directly.
data : count type i value 1.
loop at itab.
write 😕 count, itab-vblen...............<rest of the details>.
count = count + 1.
endloop.
(itab-vblen : incoice number )
Rgds,
Sripal
2009 Aug 12 2:38 PM
Hi,
Try like this,
loop at itab.
itab-slno = sy-tabix.
modify itab.
endloop.
else use counters,
loop at itab.
count = count + 1.
itab-slno = count.
modify itab.
endloop.
Regards,
Vik