Can I get total number of page in 'After Report' Trigger?

Currently, I use the format trigger of a field in Margin. In the trigger, I use srw.get_page_num(page_num) to get the current page number and call a package procedure to update a record. For example, if the report has 10 pages, it will update 10 times. However, could anyone know can I use another method instead? (Get the total number of page in one, then no need to update it every page) Thank you.
(using Report 2.5)

Thanks. I know I can choose &TotalPhysicalPages in a field for displaying. But the problem is I need to update DB for that number. So I cannot refer that value of field to run a procedure in package for update the total page number in a record. Actually, this function is already done for years. (as I mentioned in my previous message) But I would like to know can I use another method to update it in one time instead. Thank you.

Similar Messages

  • How can I get total number of pages in the folio?

    Hello guys, I need some help.
    I'm trying to get  the total number of pages in the folio, but, currently, I only success to get the total number of pages from current article, is there someway to get it? 
    My code: gist:de1de89b493024815c3e
    Thanks so much.

    My first advice in situations like this is the double and triple check that this requirement still exists and it is driven
    by the business.  This is great opportunity to refactor some unnecessary complexity out of the solution if you identify it.
    Assuming it is a valid and verified requirement, how you approach depends on the composition of the Interchange.  Meaning, if you receive single ISA...IEA blocks with a single GS...GE, you can use the max of BTS.InterchangeSequenceNumber.
    If you receive multiple ISA or GS's, it's a little different.

  • How can I get the number of pages of a report?

    Hello to everyone, I'm writing a small app that exports a report to PDF (the app is done and everything is ok).
    Along with the PDF I need to create an XML file that describes the PDF file properties. One of the properties I need to supply is the number of pages of the PDF file. How can I ask Crystal Reports SDK for the number of pages my ReportDocument is made of?
    Best regards
    Alessandro

    Hello Alessandro,
    I found a Business Objects Note with a possible solution.  You can search for Notes yourself by starting at the Business Objects area of this SAP Community Network (SCN) site.
    Go to the [Business Objects link|https://www.sdn.sap.com/irj/boc] in the menu bar on SCN.
    Then go to the [Support link|https://www.sdn.sap.com/irj/boc/businessobjects-support] in the sub menu for Business Objects.
    Now go to the [Business Objects Note link|https://www.sdn.sap.com/irj/boc/businessobjects-notes] in the left side navigation menu.
    Finally, click on the [Search Business Objects Notes link|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true] in the middle of the page.
    From the Notes Search page click on the Advanced Search link.  For your question I searched on these terms - net page number - and added "boj" (without the quotes) in the Component field for Advanced Search.  The "boj" component helps limit the search to Business Objects components - like the Crystal Reports .NET SDK.
    This search brought up a number of results.  The second result looks like it will address your question:
    "[SAP Note 1216240|https://bcp.wdf.sap.corp/sap/sapnotes/display/0001216240] - How to retrieve the number of pages from a ReportDocument in VS .NET"
    I hope this helps!
    Sincerely,
    Dan Kelleher

  • Total number of pages in Normal Report

    How to display the total number of pages in normal report.
    To display current page number I am using sy-pagno.
    Is there any system variable to display Total numbetr of pages in normal report.
    Thanks in advance.

    Hi,
    There is no system variable to find total no of pages but you can use the following to get that one.
    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 ', '-----'.
    *--- End of Program
    Thayalan

  • How to retrieve total number of pages in a report of Instance - RAS SDK ?

    Hello All,
    Hope all is well. I am using BOXI R2 Enterprise and was wondering how to get total # of pages of an Crystal Report Instance using RAS SDK.
    Thanks in advance,
    Sam

    How do i retrieve the total number of pages in a report-- via RAS SDK
    Sincerely,
    Ted Ueda

  • 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

  • Getting total number of pages

    Hello friends at www.oracle.com ,
    I need to know what's the Reports variable that gets the total number of pages, and how I can refer it in a PL/SQL block.
    I know there's an SRW function to get the actual page number (SRW.GET_PAGE_NUM), but I need to know if there's a function, or system variable, that gets the total number of pages that will be printed during Reports execution.
    Thanks,
    Franklin Gongalves Jr.
    [email protected]

    I am not sure of any variable to use in PL/SQL but instead u can use a field by urself
    like serial_number using summary column in ur report
    which u can check the value similar to total pages
    If u need help let me know
    Sri
    Hello friends at www.oracle.com ,
    I need to know what's the Reports variable that gets the total number of pages, and how I can refer it in a PL/SQL block.
    I know there's an SRW function to get the actual page number (SRW.GET_PAGE_NUM), but I need to know if there's a function, or system variable, that gets the total number of pages that will be printed during Reports execution.
    Thanks,
    Franklin Gongalves Jr.
    [email protected]

  • How to get total number of pages from .doc file without using Office interop?

    Hi,
    Kindly help me in getting the total number of pages from a .doc file not .docx file using C#. I know how to get by using Office interop but I do not want to use Office interop.
    So, without office automation in C# let me know how to get the total number of pages from a .doc file.
    Regards,
    Ashok

    Hi Ashok,
    >> I know how to get by using Office interop but I do not want to use Office interop
    Could you tell us why you don't want to use Office interop?
    As far as I know, this is the easiest way to achieve.Hmmm,this is my answer
    http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.pagenumbers.startingnumber(v=office.14).aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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

  • Getting Total number of pages in Reports 3.0?

    In the layout model of a report I want to access the value of
    Total Pages in a format trigger on a repeating frame. You can use
    srw.get_page_num to get the current page number but I want the
    curent value of Total Pages. Can this be done?
    null

    Welcome to the forums!
    Keynote does not have a way to automatically insert the total number of slides. You would have to do this manually (although you could do it on the slide masters, so that only one or a few would have to be changed).

  • How can I get Total Number of messages in an EDI Interchange

    Hi All,
     I am migrating a solution from Covast EDI to native BizTalk EDI and ran into an issue. In Covast when an Incoming interchange is debatched some of the properties like The total number of messages in an Interchange is saved into the XML of the debatched
    message. I am trying to find this value in Native BizTalk EDI.
     How can I determine this value? I only see the InterchangeSequenceNumber property which is only the sequence number of the a message in Interchange. 
    Thanks!

    My first advice in situations like this is the double and triple check that this requirement still exists and it is driven
    by the business.  This is great opportunity to refactor some unnecessary complexity out of the solution if you identify it.
    Assuming it is a valid and verified requirement, how you approach depends on the composition of the Interchange.  Meaning, if you receive single ISA...IEA blocks with a single GS...GE, you can use the max of BTS.InterchangeSequenceNumber.
    If you receive multiple ISA or GS's, it's a little different.

  • How to get total number of times excuted the report

    hi,
    Can you spend for a while.
    Requirement is when the Monthly summary report: When report executed then in the header it has to display how many times times this is executed and data has to display(this completed).
    For example out put is:
    No.of times executed:20   (means this is 20th time this report is running)
    here data has to display(This i completed).
    Thank you,
    Anu.

    Anitha Reddy wrote :
    Requirement is when the Monthly summary report: When report executed then in the header it has to display how many times times this is executed and data has to display(this completed).
    For example out put is:
    No.of times executed:20 (means this is 20th time this report is running)
    here data has to display(This i completed).
    If you completed everything then what is your problem ??

  • How to Access Total Number Of Pages inside code

    Hi All,
    I would like to get the total number of pages in the report,inside the trigger.
    How can i access this value inside code.
    Pls Help me
    Thanks and Regards
    Binu

    I think this is not possible inside the code, because this value is deteremined after the code is executed and during the formatting of the report.

  • In report how to get total no.of pages

    Hi all,
    i need to display at footer 'Page No.' of 'Total No.of pages'.
    is there any variable for total no.of pages.
    regards.
    cnu

    Hi...
    The code below shows how to display the total number of pages in a report like "Page 1 of 8."  May be this would solve your problem... (Award points if useful)
    Santosh
    REPORT YPAGECOUNT NO STANDARD PAGE HEADING LINE-COUNT 65.
        DATA L_PAGE_COUNT(5) TYPE C.
    TOP-OF-PAGE.
        WRITE: /(70) 'Heading' CENTERED, 70 SY-PAGNO,'of ', '-----'.
        ULINE.
    START-OF-SELECTION.
      Real list output takes place here
        DO 300 TIMES.
            WRITE: / 'Line #', SY-LINNO.
        ENDDO.
      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.

  • Display the total number of rows for the report in OBIEE 11g

    Hi, In obiee 11g, the pagination will be 1-25. Is there any possiblity in obiee to show the total rows count next to pagination. Ex: if the result contains 120 rows. it should display after the pagination
    Records 1-25. Total of Records : 120
    Is there any way we can display the total number of rows for the report.
    Kindly help me.. Its very urgent requirement.
    MAny Thank in advacne

    Check this http://obiee100.blogspot.com/2011/07/display-total-number-of-records-in.html
    and
    http://docs.oracle.com/cd/E28280_01/bi.1111/e10544/appsql.htm#CHDCDIDA
    You have to go something like as suggested in previous link.
    Mark as correct/helpful

Maybe you are looking for

  • In iPhoto 11. 9.4.3 cropping won't work

    Prior to Christmas I successfully compiled an iPhoto Book and everything was hunkydory. Yesterday, I attempted to crop a photo in the same manner as before using my one and only Trackpad, and it reduced the size of the photo onto a white background a

  • Import settings not saved

    I'm running iTunes 4.9.0.17 loaded from the disc that came with my Nano and have used all its functionality with no trouble until now. (I reverted to this previous version due to import problems with 6.0). I can change the import settings, but the ch

  • Cannot create a new Crystal XI report document

    Every time that I try to link an existing  or a completely new blank report form to an Access 2003 table, Crystal Reports crashes. Anyone encluntered this problem?. If so, please advise. Thanks, Bill Sandham

  • Installation of Oracle 8.0.5 in NT4 Workstation

    Hi, I installed Oracle 8.0.5 (Enterprise edition) in my NT4 workstation home PC (Pentium 200 , 64 MB). All tools are working properly when logged in with userid/password and service name (i.e. connect string) = local.world, where local.world has been

  • Lock Inactive/Dormant users in SAP automatically

    Hi Guys, We have a requirement to find out a program/report which will lock the inactive dialog users if the user has not logged on for 90 days in the SAP system. This will be implemented in child system. Please advise if there is any standard progra