How do I print the total number of pages in report, like Page 1 of 5?

Hi
How do I print the total number of pages in report, like Page 1 of 5?
thanks,
kiran.M

Hi,
Check for the below code:
*Declare a variable
DATA L_PAGE_COUNT(5) TYPE C.
*Copy this code to the end of program
*Page count will be printed on each page here
WRITE SY-PAGNO TO L_PAGE_COUNT LEFT-JUSTIFIED.
DO SY-PAGNO TIMES.
READ LINE 1 OF PAGE SY-INDEX.
REPLACE '-----' WITH L_PAGE_COUNT INTO SY-LISEL.
MODIFY CURRENT LINE.
ENDDO.
TOP-OF-PAGE.
WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
You will find your solution in below thread with code:
Total Pages in Basic List
Rgds,
Shakuntala

Similar Messages

  • How do I find the total number of elements in a multi dim array

    How do I find the total number of elements in a single or multi dim array?
    For example, a 2x3 array has 6 elements, and a 2x3x4 has 24. How do I compute this very easily - is there a single VI that does this?
    David
    Solved!
    Go to Solution.

    Use "array size" (array palette) followed by "multiply array elements" (numeric palette)
    (Works also equally well for 3D arrays and higher)
    For a 1D array, just use "array size".
    Message Edited by altenbach on 02-05-2009 05:57 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    NumberOfElements.png ‏3 KB

  • How can I see the total number of books (size of library) on iBooks on my iMac and IPad Mini?

    I have installed iBooks on both my iMac (main library) as well as on my iPad Mini Retina. I can't seem to find where to see the total number of books in each library? Can anyone enlighten me please? I can see the covers, lists etc. but nowhere how many books I have total in each library (Total: X number of books stored) or something like that. Can someone point me where this information is viewable?

    Did you have 'find my iPhone' activated on it? Because if you go to iCloud.com you can log in there and you can remotely lock or wipe your device.  From what I hear, the police won't do anything about going and fetching stolen iPads and iPhones, but if you have find my iphone/ipad/ipod/mac turned on then it will give you a map of where it is. 
    Just keep in mind that sometimes iTunes does ask you for your password regardless, and only a few weeks ago apple brought in security questions, so everyone had to fill in security questions for their iTunes account to make it more secure If all else fails, ring Apple cusomer support and they might be able to bar your account or something, however you may have to make a new account (the might be able to set it up so you have all your previous information on a new account)
    Hope this helps!

  • How can I view the total number of songs in my iTunes?

    iTunes no longer displays to the total number of songs. Also the side scroll bar has disappeared. Can anyone help?
    Thanks
    Marcia

    You can restore much of the look & feel of the previous version with these shortcuts:
    ALT to temporarily display the menu bar
    CTRL+B to show or hide the menu bar
    CTRL+S to show or hide the sidebar
    CTRL+/ to show or hide the status bar (won't hide for me on Win XP)
    Click the magnifying glass top right and untick Search Entire Library to restore the old search behaviour
    Use View > Hide <Media Kind> in the cloud or Edit > Preferences > Store and untick Show iTunes in the cloud purchases to hide the cloud items. The second method eliminates the cloud status column (and may let iTunes start up more quickly)
    If you don't like having different coloured background & text in the Album view use Edit > Preferences > General and untick Use custom colours for open albums, movies, etc.
    tt2

  • How do i find the total number of fields within all tables in one of my databases

    I'm in the process of creating some "gee whiz" metrics for one of my applications and want to find the total number of columns contained in its database.  Is there a stored procedure to get this information that would save me the effort
    of opening each of my 66 tables and counting the columns?  I also have the same question for my 138 views.  Thank you for any ideas you care to offer...............Phil Hoop
    Phil Hoop

    Hi Phil,
    Assumes SQL 2005 or higher
    Let 's try simple one ....
    SELECT COUNT(col.column_name), col.table_name
    FROM information_schema.columns col
    JOIN information_schema.tables tbl
    ON tbl.table_name = col.table_name
    AND tbl.table_schema = col.table_schema
    AND tbl.table_catalog = col.table_catalog
    AND tbl.table_type = 'VIEW'
    GROUP BY col.table_name
    Let me know if this will help you.
    If you think my suggestion is useful, please rate it as helpful.
    If it has helped you to resolve the problem, please Mark it as Answer.
    Varinder Sandhu www.varindersandhu.in

  • How to I get the total number of songs listed in my Itunes library to display?

    With recent versions of I Tune intallations I no longer receive the total number of songs listed in my Libary.
    I am using I Tunes v. 11.1.3.8 on windows 7.
    TodonKansas

    CTRL+/ will turn it on.

  • How do you tell the total number of photos in PSE 11 Organizer

    I have used PSE 9 and there was a line at bottom that told the total number of photos in the Organizer.  I now have PSE 11 and I can find no such line, and I have not found a way to tell the total number of photos in my Organizer.  Where is this information hidden?
    Thanks for you help.

    You should see it bottom left of Organizer.

  • My iPod was just stolen.  How do I find the Serial number so I can report it to the police?

    Hello!
    My iPod was just stolen.  How can I find the Serial number?

    See this article for information on where you can find your iPod's serial #.
    http://support.apple.com/kb/ht1459
    B-rock

  • How can I find the total number of songs in my iTunes library?

    I just downloaded the new itunes.  In the previous itune library at the bottom of the screen it told me how many songs I have total.  Not just purchased, but how many total songs were in my library.  I liked knowing this because I could verify my ipod was synced up properly.  Sometimes a song wouldn't download from my computer to my ipod, and by knowing how many songs were in the library, it was a double check.
    This song count is gone now with this new itune version.  There no bar at the bottom of my screen that shows me song count and I've gone through all the settings and can't figure out how to know this without manually counting the songs.  Any help is appreciated.

    Dear,
    In the top menu, you can choose 'view', and subsequently 'show status bar'. This shows the information on the bottom of the window.
    kindest regards,

  • How do I increase the total number of rows?

    This seems like a dumb question, but I can only seem to be able to add one new row at the bottom of my spreadsheet at a time using the '=' in a circle button that appears below the last row of the spreadsheet.
    I want to add hundreds of rows, and I can only seem to add one at a time which seems ridiculous and a huge waste of time.  There has to be a way to add a huge block of empty rows to the spreadsheet right?  Can you really only add one new blank row at a time?

    you can select rows, then use the key combination <option> + <down arrow> to add the same number of rows you selected for each key press.
    If you select five rows then each time you type the key combination Numbers will add five rows.
    If I want to add many rows I select all rows, then type the key combination, then I select all rows, and type the key combination again, repeat as needed

  • Ho to count the total number of rows Sql Reporting Services Report Builder's Dataset after filteration based on parameter

    Hi to all,
                 I have parameter and data-set i.e consists of SharePoint List items,Data-set get's  filters and I need to count the total rows of the data-set i.e I get after filtration.
    Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali.

    Hi siddiqali,
    Thanks for the question and Destin Joy’s reply. Please try to add the filter in the dataset level rather than the data region
    level. Detail steps as below.
    1.      
    Double-click the dataset name in the Report Data window, click Filters in the left panel.
    2.      
    Click Add button, choose Admission Date in the Expression drop-down list. Type in the Value textbox with the parameter name: @selectDate.
    3.      
    Right-click the cell that your identified by the red circle, select Expression, type in it with:
    =CountRows("DataSetName")
    Thanks,
    Sharp Wang
    Please remember to mark the replies as answers if they help you and unmark them if they provide no help.

  • How do i retrieve the total number of pages in a report-- via RAS SDK

    CrystalReportViewer has
    showFirstPage()
    showLastPage()
    showNextPage()
    showNthPage(int pageNumber)
    showPreviousPage().
    But how I determine the number of pages for a report. Our app handles pagination and hence this requirement.
    Thanks.
    JM

    There's no public API to get this info directly from RAS.
    Option is to either walk through pages in the CrystalReportViewer till you get to the end, or use the non-public not-for-public use API:
    int lastPageNumber = ((com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource) reportClientDocument.getReportSource()).getLastPageNumber(new com.crystaldecisions.sdk.occa.report.reportsource.RequestContext());
    Sincerely,
    Ted Ueda

  • How can I count the total number of keyframes in a project in After effects?

    I would just like to know how to get the quantity of how many keyframes I have in my project. I've always thought counting keyframes is pretty interesting xD

    That's a new one!  I don't think anyone's ever been curious about that.  Which means it's an excellent bet that there isn' any automated way to do it: it may be interesting from an academic viewpoint, but I'm stumped about a practical use.  I think you'd just have to count layer by layer, and hope you don't get interrupted.

  • How do I find the total number points per plot on a CNiGraph?

    There dosn't appear to be a method in CNiPlot.

    Hey wingnut,
    When you plotted to the graph you passed an array of data to it.  Or you passed one point at a time to it.  Basically what Chris is saying is that you need to retain this data somewhere and count the number of points plotted. 
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Getting the total number of pages inside a report

    Post Author: jportelas
    CA Forum: .NET
    Good afternoon:
    How can I get the total number of pages inside a reportdocument object???
    I'm currently using VS.NET 2005.
    Thanks for the help.

    There's no public API to get this info directly from RAS.
    Option is to either walk through pages in the CrystalReportViewer till you get to the end, or use the non-public not-for-public use API:
    int lastPageNumber = ((com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource) reportClientDocument.getReportSource()).getLastPageNumber(new com.crystaldecisions.sdk.occa.report.reportsource.RequestContext());
    Sincerely,
    Ted Ueda

Maybe you are looking for

  • Customs Invoice - Free of Charge Goods

    I've got a question to the customs invoice. I have free of charge goods, but for customs calculation I need a price for the free of charge goods (the price which is normally paid for the product) For example the free of charge item should have a pric

  • Ref field in fb03

    does reference field matter in printing cheque. using F-58. my question : is it possible cheque give all entries if u give Reference-field. and if u donot fill reference -field in F-58 . it will not display  entries. thanks.

  • Complicated question....

    Hi all, I have an issue with my Apple mail account that I'm hoping someone can help with. I have spoken to Apple, who seem unable and unwilling to help, which has been a huge disappointment. I shall do my best to explain the issue as best as I can. I

  • Cannot boot from CD/DVD

    I recently replaced a bad hard drive in the Mini, an early-2006 model, and installed OS-X with no problem. Then with lots more HD space available than the original 60 GB, I thought I'd use Bootcamp and install Ubuntu. Long story short, I somehow mana

  • HT1386 ipad calendar not syncing

    I know I must be missing something.  Feel like I've tried everything and still my iPad calender will not sync with my MacBrook Pro calendar.  I have the latest versions of iTunes, set up wi-fi syncing, iCloud settings are where they should be, every