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

Sequence number(1-100

Former Member
0 Likes
1,844

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.

4 REPLIES 4
Read only

Former Member
0 Likes
1,165

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

Read only

0 Likes
1,165

HI,

It s Report

Read only

0 Likes
1,165

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

Read only

Former Member
0 Likes
1,165

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