Limit number of pages in the report

Hi
I am tasked to create a report to display only 10 pages maximum.
Please advise the way to do this.
1. I have suppressed all the sections with formula: PageNumber >10
This leaves a blank page at the end, which does not go even when i place Not OnLastRecord in paging option of the group footer.
2. I want to show the total number of records at the end  of the 10th page, but it gets carried forward to the last blank page ( which i want to get rid off!)
3.the total number of records also included the number of suppressed records, whereas i want the count of records only visible.
Please help me to get this working.
Thanks & Regards
Sujata Sngh

Hi,
1. I have suppressed all the sections with formula: PageNumber >10
This leaves a blank page at the end, which does not go even when i place Not OnLastRecord in paging option of the group footer.
Apply suppress Blank sections and check.
2. I want to show the total number of records at the end of the 10th page, but it gets carried forward to the last blank page ( which i want to get rid off!)
Display the total number of records only when page number = 10
3.the total number of records also included the number of suppressed records, whereas i want the count of records only
visible
This is becuase you are using a recordnumber special fuction.  Try the following :
You are suppressing records based on some conditon like
If condition =  true then suppress
use the same condition to count your records like
Whileprintingrecords;   // place this formula in your detail section ( wHere you have detailed records)
Numbervar x;
if contion = true then
x:=x+1;
Create one more formula : and place this where you want to see total record numbers (page footer of 10th page)
Whileprintingrecords;
Numbervar x;
Thanks,
Sastry

Similar Messages

  • Reg:Number of copies of the report

    Hi all
    I am working on invoice report in which each invoice will display 1 original + copies based on the number copies parameter passed.I need the number of copies of the invoice report including the original and copy of the report .
    If invoice displays in 2 pages, original copy page numbers are starting with 1.And first invoice copy page number should starting with 1 and second invoice copy page number should starting with 1.....and so on.
    Is there any work around to start the each copy page number with 1? . Pls let me know if there is there any solution for this.
    Thanks in advance
    Regards
    Sudha

    Hi,
    I am also working on reports.
    I am calling the report from Oracle forms (version 4.5). Is there a way I can return to the calling form the number of pages in the report?
    I need the number of pages to automate the charges for the report that was printed.
    Thank you

  • 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

  • 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 print a label on the last page of the report in the margin

    I would like to display a label on my report but has to appear only on the last page of the report in the margin area or as a footer. I have tried using the solution below that I came across in this forum. This solution only worked if I put the label as a report trailer and not in the margin of the main section of report. The problem of putting the label as a report trailer is that it will only appear at the end of the report on it's own page, i.e. on a new page. I would like the label to appear at the end of the report, on the last page which has the other report details and not to appear on a new page on its own. Could you please help? Thanks.
    1. Create a dummy query, like
    select 1 dummy
    from dual
    2. Create a package spec:
    PACKAGE pkg_globals IS
    totalPages number(3);
    END;
    2. Create a repeating frame and field for this dummy at the end of the report layout.
    3. Create a format trigger for this frame:
    function R_1FormatTrigger return boolean is
    begin
    SRW.GET_PAGE_NUM(pkg_globals.totalPages);
    return (FALSE);
    end;
    4. Create a format trigger for your margin field:
    function F_1FormatTrigger return boolean is
    pagenum number;
    begin
    srw.get_page_num(pagenum);
    if pagenum = pkg_globals.totalPages then
    return (TRUE);
    else
    return (false);
    end if;
    end;

    user8655468 wrote:
    I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
    set the frame print object on: Last page
    Hope this works..

  • 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

  • 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 print based on the logic that it is the last page of the report

    HI
    I want to print something on the last page.For example,I have to print a image(signature) file on the last page.How can I have the logic that it is the last page or any counter or variable to find that it is the last page of the report??
    Thanks in advance.

    Is there an example of this posted somewhere that actually works?
    I have used this exact syntax in everyway, every location possible and it either locks my MSWORD window on preview or throws a Java error.
    I am using the most current BIP template builder v10.1.3.2.1
    Thanks,
    Scott
    Sample files below:
    <?start:body?><?for-each:G_TEST?>
    <?TEST1?> <?TEST2?>
    <?TEST3?>
    THIS SHOULD PRINT ON ALL PAGES
    <?start@last-page:body?> PRINT ONLY ON THE LAST PAGE<?end body?>
    <?end for-each?><?end body?>
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <TEST>
    <LIST_G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    <G_TEST>
    <TEST1>TEST Data Line Number One</TEST1>
    <TEST2>Test Data Line 2</TEST2>
    <TEST3>33 Test Data Line 3</TEST3>
    </G_TEST>
    </LIST_G_TEST>
    </TEST>

  • Values not getting displayed from first page of the report.

    Values in the report is getting displayed from second page.
    First page in the report only displaying the report title and column names.
    Secone page onwards, data and column names are generated.
    Can any one please help me, with the cause of the problem.

    what reporting tool?
    Interactive Reporting
    Financial Reporting

  • A group by field needs to appear on every page of the report.

    Hi.
    My rtf template has a word header which is the report descriptn that appears on evry page. The report is grouped by business unit and then grouped by job description. The problem is the business unit appears only first time when it gets changed and then it does not repeat its value until the next BU comes up. I want to display the BU on each page even though the value is same (just like as a heading of a section). I used the follwing tags. The one in bold is to solve the issue of puting the BU descr on each page. But does not work. Anybodys help is greatly appreciated.
    *<?fld_BUSINESS_DESCR?>*
    <?for-each-group:row_CU_DET_STG;./fld_BUSINESS_UNIT?><?sort
    <?fld_BUSINESS_DESCR?>
    <?for-each-group:current-group()/fld_JOB_FUNCTION?>
    <?fld_JOB_DESCR?>
    Sid

    Thanks alot Tim for spreading your expertise. That worked !!. I added the start and end body tag along with your solution of using the section with the group and it worked. Thanks alot again. However there is one prob now the page numbers are being reset and i dont want to reset it because the page numbers should continue in sequence till the end of the report despite of Business Unit change. Please any suggestion to solve this problem.
    Edited by: user12107527 on Oct 27, 2009 6:50 AM
    Edited by: user12107527 on Oct 27, 2009 9:06 AM

  • Conditional formula to supress a section in the first page of the report

    hi all,
    how to programatically add a conditional formula to supress a section only on the first page of the report.
    i am using CR XI R2 RAS server.
    thanks in advance
    Padmanaban V

    Hi Padmanaban,
    You can download samples from [here|https://www.sdn.sap.com/irj/boc/businessobjects-samples]
    Regards,
    Shweta

  • How to get the text field in the header for only first page of the report

    Hi,
    I am developing reports in BI Publisher Enterprise where i am facing problem i.e., i have to get some text field in header,for only first page in the result but it is displaying in all the other pages of the report in result.So,please if you have any idea of how to solve it, please reply.It is required as early as possible.
    Thanks in Advance

    Invalid path? What are you doing? Writing the report output to an invalid directory?
    Where are your terms and conditions? It would be very easy just to put them in a database table and select them in your report query.

  • How to avoid blank page in the report?

    adding a field in the grouping and checking the page break option means then we are getting blank page as the first page of the report? How to avoid this blank page?

    Usually blank pages appear as first page due to the presence of filler lines (//////) on top of report header.Please ensure that the top header is exactely started from top of page itself.

  • 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

  • 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.

Maybe you are looking for

  • Deploying Applications with SCCM 2012 R2 to Server 2008 R2 RDS servers

    I'm having some trouble finding some concrete information from Microsoft regarding the deployment of applications to RDS servers using SCCM 2012 R2. There seems to be a lot of conjecture, old information and old wives tales floating around and I was

  • Please Help! My Powerbook will not boot up and is SCREAMING at me!

    I went to change my laundry and when I returned my mac was emitting a high pitched "scream" from the hardware (not from the speakers). It would not respond to any commands. I removed the battery and now it will not start up...it will go to a grey scr

  • Problem with \n

    As I can control when a user leaves a program with the commando /n or other transaction code? Thanks.

  • Length of select-options in selection screen.

    Hi, I was able to give the lemgth of select-options only upto 8 characters. Select-options :S_Mtrial for mara-matnr. But my requirement is I want total name which is more than 8 characters. Select-options:Material_numberl for mara-matnr. Can any one

  • Error in smartform using classes

    Hi , I am trying create refernce object for a class in porgram lines of smartform. it is giving error. the code is lo_act_rec type ref to cl_hrrcf_abstract_activity_rec. lo_act type ref to cl_hrrcf_abstract_activity. lo_act_rec ?= gs_activity-activit