Skip to Content
author's profile photo Former Member
Former Member

Sequence number(1-100

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • Posted on Aug 12, 2009 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.