How to print in the last page of the script..?

Hi,
I am working on a script. I have a header window and one main window. In the main window, I am printing the line items of the Invoice. Once the line items finish, I have to print the sub totals there. and also to print the company agreement details(around 10 lines of text) in the last page of the script.
So, <b>how to print the agreement details in the last page of the script..?</b>
Can anyone provide me a sample code to find the last page of the Script layout..?
And regarding writing the agreement details, is it better to hard code the text or use the standard texts..? which one is better..?
Regards,
Paddu.

HI,
  Just create a Standard text, if you are going to use this standard text in other layouts also... and use it otherwise you can hard code it as this its of only 10 lines.
declare one more element in the  main window itselft and call it atlast it would print in the last page..
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'FOOTER'<b><- This element should contain the agreement details</b>
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1.
Thanks
Mahesh

Similar Messages

  • How to print a label in the last page of the report

    Hi, I have a report af bottom page I trid to put a label, the label is in the margin, but when I change the print condition send me a error, illegal print condition, how can I print this label only in the last page at the botton of the page
    Thanks

    Herbe,
    You can do this using format trigger
    Please see the building reports manual / Tutorial for details
    at http://otn.oracle.com/docs/products/reports/content.html
    Thanks
    The Oracle Reports team

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

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

  • Print range does not print the last page in the range.

    Adobe Reader for New IPAD - The print range function does not print the last page in the range. For example, if you enter a print range of 2-18, pages 2-17 print and page 18 does not print.  Also, if you enter a print range of 9-9, page 8 prints and page 9 does not print.

    I have the Epson 4540 printer. I don't know for sure if it connects via AirPrint.  I didn't do any thing to set up Air Print.  The printer is attached directly to my network router and it shows up IPad apps.  I have not printed docs from other apps, but I will give it try and let you know.
    Christopher J. Bilcz
    [email protected]

  • Adding Text to the last page in SAP Script RVORDER01

    Hi Experts,
                     I have copied RVORDER01 and changed the log for it and added my ZRVORDER01 in NACE.
    Now they want Some text to be added to the last page of the script how to do this without changing Standard Print Program ? Please guide me.
    Regards,
    Dheepak

    Hi,
    If you copied the the Standard Script to a ZScript then why is the problem adding a Text to the Last page......You should be able to do this easily .....i believe...Sorry if i misunderstood......

  • Suppress a field in the page footer unless it's the last page of the group

    Hi,
    I have a report set up where one can pull invoice information.  There is a page footer used for every page which contains a field that I only want visible when it is the last page of the group.
    For example, one might pull several invoices, each invoice being its own group.  A field would be suppressed in the footer unless it is the last page of that particular invoice.
    Is this something that can be done in Crystal Reports XI?
    Thank you.

    Hi,
    Alright, it's a bit rusty but here's how you can do it:
    1) Create this formula and place it in the Report Header:
    whileprintingrecords;
    numbervar n1 := groupnumber;
    2) Create this formula and place it in the Group Footer:
    whileprintingrecords;
    numbervar n := groupnumber;
    3) Create this formula and place it on the Page Footer:
    whileprintingrecords;
    numbervar n;
    4) Right-click the above formula (Formula on the Page Footer) and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar n1;
    numbervar x;
    if currentfieldvalue <> n1 then
      x := 1;
      true;
    else
      x := 0;
      true;
    5) Right-click the field that you wish to always suppress except on the last page and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar x;
    if x = 1 then true;
    Let me know how this goes!
    -Abhilash

  • Displaying Footer on the Last Page of the report

    Hi Experts,
    We have a requirement to display footer on the last page of the report only.
    Could you please guide how to acheive this.
    Thanks in Advance,
    Cheers,
    Andy.

    Pls see this Blog.It may help you
    http://blogs.oracle.com/xmlpublisher/2007/03/30/
    Thx
    Rahul

  • END-OF-PAGE not displayed in the last page of the classical report.

    Hi all..
    The END-OF-PAGE is not displayed in the last page of the classical report.
    SY-LINCT value is 30.
    Lines displayed in the report per page is 24.
    [3 for TOP-OF-PAGE and 3 for END-OF-PAGE]
    My Internal table has 6942 records.
    It comes 289 pages with 24 records in a page and 290 th page with 6 records.
    The END-OF-PAGE is not coming for the 290 th page.
    Please help.
    Thank You.
    Karthi M R.

    There are multiple links in SDN on this subject; Please search,
    end-of-page

  • HT203167 Hi, I recently bought a book (Jeffrey Toobin, The Oath), and the last page of the first two chapters, at least, are missing. Could you advise?

    Hi, I recently bought a book (Jeffrey Toobin, The Oath) through iBook on my iPhone, and the last page of the first two chapters, at least, are missing. Could you advise?

    Nothing no one here can do.  Call the place where you purchased the book from or contact the book author!

  • How to remove header on last page of the report?

    I am working on a RTF template for PO report. This is the format of the rtf i have.
    <?start:body?>
    <?for-each@section:G_HEADERS?>
    All header fields
    <?for-each:G_LINES?>
    All Line Fields
    <?end for-each?> --Line End
    <?end for-each?> --Header End
    <?end body?>
    Give Section Break <Next Page>
    Terms and Condition should come here on a new page
    When I insert a section break for new page, the header that is on my 1st page of the template is repeating. Is there a way that I can stop the header from repeating on the last page? Please help me out with this issue.
    Thanks,
    Swetha

    Thanks jimr for the response. This solved my problem.
    The steps I followed are:
    Click on section2 header. click on 'Link to previous'button on the headers toolbar so the link between section1 and section2 is removed.
    Remove the header on the new page (section2). The header on the 1st page is retained while the header on the 2nd page is removed.
    Thanks,
    Swetha
    Message was edited by:
    Swetha

  • Text Box to appear on the last page of the report

    Folks,
    I have a report where I am using SAP BW Hierarchy in rows. So the rows may increase or decrease.
    I also want to add a Text box with some Text at the end of the report.
    Since Report may have many pages or one pae how can I force this box to appear at the end of the report not at the end of each page?
    I will appreciate your help.
    Thanks
    Bashir Awan

    Hi
    add a single blank cell to your report, let it display the required text  and position the cell relative to the bottom edge of your main table. (Properties->Appearence->Page Layout->Relative Position)
    Regards,
    Stratos

  • How to Print T&C on backside of the last page in smartform.

    Hi All,
             I have requirement from one of the my client to print the terms & condition page on the back side of last page in invoice form.
    I have created three pages as below.
    First page: To Print header data,Print mode:blank,Next page : NEXT.
    Second page : Contains the continuation of the data,if there are enough lines,Print Mode: D,Next page : NEXT.
    Last page:To Print T&C,Print mode : blank,Next page :blank.
                This is working properly when form has 2 pages.Here my question is,
    How to print the T&C on backside of first page,if form has only one page.
    Thanks in Advance.

    Hi Vineesh,
    I have 3 pages in my form.
    First page: To Print header data, Print mode:blank, Next page : NEXT.
                         First page has the comment node, go to next page as Third page.
    Second page : Contains the continuation of the data, if there are enough lines, Print Mode: D,
                          Next page : NEXT.
    Third Page: T&C page, Print mode : blank,Next page :blank
    The 3rd page should print back side of the page.
    If form has only one page,then first page should be in D mode.Hence the T&C page will print back side of first page.
    If form has multiple pages. then the last page ( where the main window gets end ) should be D.Hence
    the T&C page will print back side of last page.
    How to achieve this both the scenarios?
    Thanks & Regards,
    Priya Chandran

  • Layout Question - How to print a frame on the bottom of the last page ?

    I have a summary frame for my report. I want to print the summary information at the bottom of the last page of the report. Currently depending on the data, the summary frame prints anywhere on the last page. How do I make sure it prints exactly at the bottom of the last page (just the last page).
    Thanks in advance.

    You might like to take a look at the following threads:
    Last frame with last record of proceding repeating frame
    Re: How to capture a keystroke - including control chars?

  • Formatting - How to print a frame on the bottom of  the last page ?

    I have a summary frame for my report. I want to print the summary information at the bottom of the last page of the report. Currently depending on the data, the summary frame prints anywhere on the last page. How do I make sure it prints exactly at the bottom of the last page.
    Thanks in advance.

    Hello,
    I know this is an old post, but I have the same problem. I am unable to access the examples for Note.252881.1 (corrupted file). May I impose on you to send me examples via e-mail? If this is not possible can you point me in a direction where there is "good" documentation on frame manipulations? What I've found on metalink, otn, internet, etc. haven't been too forthcoming.
    Thank you.

Maybe you are looking for