Footer for last page

How to provide footer for last page in areport.

See the sample program :
footer will print last page by using at last event.
*& Report  ZTEST_IEVENTS
REPORT  ZTEST_IEVENTS no standard page heading
                      line-count 40(2).
tables : vbap.
data : begin of i_vbap occurs 0,
       vbeln like vbap-vbeln,
       posnr like vbap-posnr,
       matnr like vbap-matnr,
       kwmeng like vbap-kwmeng,
       netpr like vbap-netpr,
       end of i_vbap.
data wa_vbap like line of  i_vbap.
data v_flag type c.
select-options s_vbeln for vbap-vbeln obligatory.
start-of-selection.
select vbeln
       posnr
       matnr
       kwmeng
       netpr from vbap
       into table i_vbap
       where vbeln in s_vbeln.
sort i_vbap by vbeln posnr.
end-of-selection.
loop at i_vbap.
move i_vbap to wa_vbap.
at first.
write:/2 'Order #',15 'Item #',28 'Material #',50 'Qty', 70 'Net value'.
skip 1.
endat.
at new vbeln.
write:/2 wa_vbap-vbeln,15 wa_vbap-posnr,28 wa_vbap-matnr,
        47 wa_vbap-kwmeng,65 wa_vbap-netpr.
v_flag = 'X'.
endat.
if v_flag ne 'X'.
write:/15 wa_vbap-posnr,28 wa_vbap-matnr,
        47 wa_vbap-kwmeng,65 wa_vbap-netpr.
endif.
at end of vbeln.
sum.
skip 1.
write:/5 'Sub totals', 47 i_vbap-kwmeng,65 i_vbap-netpr.
skip 1.
endat.
at last .
skip 1.
sum.
write:/5 'Grand Totals',47 i_vbap-kwmeng,65 i_vbap-netpr.
skip 1.
write:/ 'end of page', 'Footer'.
endat.
clear v_flag.
endloop.

Similar Messages

  • Urgent - Not able to Print back page for Last Page in SAP Script.

    Hello All,
    I need to Print back page in SAP Script, I am able to do it by setting print mode as D, but now the problem is, it does not print back page for last page.
    For eg. if there are 3 pages it prints back page for first two. If there is only one page then it does not print back page.
    Please Help.
    Thanks.

    hi,
    Yes, we can print logo as water mark in scripts
    Just do as like this....
    Upload your logo via SE78.
    - Select 'Import' button from application toolbar of SE78, and perform upload.
    and write this code in scripts
    BITMAP 'COMPANY_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL 
    regards
    Sankar

  • Over flow issue while printing footer in last page in PDF forms

    Hi,
    Could any one let me how to display footer in last page only at end of page reserving 5cm of space.
    I have designed my form with two pages:First Page and Next Page in Master Page
    Body Page contains table details and some texts after the table lines.
    First and Next Pages has footer(5cm) at the bottom.
    If Page <> Last Page,footer is not displayed.
    If page = Last Page, footer should be displayed at the very end of the page
    I have a table with multiple line items. If the line items end in First page the footer should be displayed at the bottom of the page. If the line items flow to the next pages footer should be displayed in the last page only. Next pages should be using the footer space at the end of each page if it is not the last page.
    If the positions are wrong can anyone suggest the position of the footer space and how to stop overflow of the line items onto the footer

    You have to place the footers in 2 main windows.
    write script to hide the footer if the current page is not last page. Use below script to find the total number of pages and current page in layout:ready event.
    Var no_of_pages   =   $layout.pageCount (  )
    Var curpage = $layout.page  (  ref  (  $  )  )

  • I want to restore the look and feel of Firefox 3.6 etc with large icons for last page next page reread and home page located off the toolbar in the upper left like 3.6

    I want 4.0 to look like 3.6 with large separate icons for last page, next page, reread current page and go to home page, in lieu of the little icons to the right of the
    default navigation toolbar. I tried setting up a separate toolbar but it never reappeared. There should be a way to just restore 3.6 look and feel. Otherwise I will go back to 3.6.

    You can make Firefox 4 look and behave more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6

  • Footer in last page

    how to display footer in the last page for 10 pages

    Hi Harish,
    Proceed like this:
    1) Create the footer window and add the text you want to print.. but below a window element like this:
    /E FOOT
    /: If w_last EQ 'X'
      This is footer..
    /: ENDIF.
    Defining a window element will prevent print of this text automatically.
    2) in your Driver program, you must be looping at the internal table and calling the WRITE_FORM function with window MAIN inside the loop.
    As soon as the loop gets completed, set the w_last flag. and call function WRITE_FORM passing the window name as FOOTER and element as FOOT
    Thanks and Best Regards,
    Vikas Bittera.

  • Want to display footer in last page

    Hi Experts,
    I developed a classical report for service order print.
    The pages increases,  if there are more line items .
    My requirement is to display the footer in the last page only, not all the pages.
    So please help me regarding this.
    Thanks in advance.
    Regards
    Pavan

    Ok So this is a classical report and you need to set the footer only at the last page .
    In ur code use the control break
    LOOP AT ITAB.
    AT LAST.
    write:/ 'Footer text'.  "<---
    ENDAT.
    ENDLOOP.
    I hope you are discussing this about a report only .
    I hope this is not a  script requirement.
    if it is so then
    /: IF &NEXTPAGE& EQ 0 
          whatever footer you want. 
    /: ENDIF 
    Vijay

  • Is there any "skip page count" command for last page?

    Hello,
    May I know if there is a command(such as even-skip-page-count) specifically for the document last page?
    I have a requirement where PO/Invoice T&C should be printed at the back of the last page only.
    The blog of Tim (http://blogs.oracle.com/xmlpublisher/2007/10/here_are_my_terms_conditions.html) covers
    only odd/even printing.
    Thanks in advance.
    Rownald

    nagornyi is correct.
    i will just expand a bit on the use but it can be found in the documentation.
    you will need to add a section break to the last page of your report
    and also remember to add the header information of you report.
    I may be wrong but when I left the header info out it was not printing.
    header information goes above the tags and footer(totals and stuff like that) below the tags
    Edited by: tarmenel on Feb 26, 2009 9:02 AM

  • Displaying Footer on last page of report

    Hi:
    Is there a way to display the footer only on the last page of a report? For example, if I have a three-page report, I need the footer to be displayed on the third page only. Any help would be greatly appreciated. Thank you kindly.
    Sincerely,
    Dinesh.

    Hi,
    Use the Syntax <?start@last-page:body?><?end body?> before the footer , if your template is facing any exception include a Section break in continuous (one of the Section break types) before the above mentioned syntax.
    Best Regards,
    Mahesh

  • Need ideas on how to display a footer on last page only on a dynamic document

    I have a document that is similar to this...
    Dear Customer,
    paragraph 1 content dkdk dkd alkfdjaldkjfa d
    dlkfajd;lkfja;dlkfj a.
    [repeating subform transaction data]
    Closing paragraph please contact us using one of the numbers listed below
    contact info
    The problem I am having is that I want the Contact Info block to appear as a footer on the last page only.  In addition, I want the Closing Paragraph to be on the same page as the contact info block.  The contact info is currently anchored to the bottom in the design view and when the transaction data repeats, it incorrectly pushes the closing paragraph into the contact area.  So basically if the closing paragraph starts to bleed into the contact info block, I want both closing paragraph and contact info to break to a new page.  I don't want to reduce the height of the content area because I want the transaction data to have the ability to display in the full length of the height if needed. 

    Every time you add an instance to you subform, you should hide the footer in the previous instance
    e.g.
    when adding an instance
    var intCount = _subform.count;
    _subform.addInstance(1);
    Reference_syntax.resolveNode("subform[" + intCount.toString() + "].footer").presence = "hidden"
    when removing an instance if applicable
    _subform.removeInstance(x);
    var intCount  = _subform.count - 1;
    Reference_syntax.resolveNode("subform[" + intCount.toString() + "].footer").presence = "visible";

  • Query for Last page visit by user/session and get version # of current page

    Hi Guru's,
    Any have a query to retrive last page visited by user / session? Somewhere from apex view fir 3.0 or later version? Also looking for query to get version number of current page

    RequestCtx.getResponsibilityId() should return you the Responsibility Id &
    RequestCtx.getUserId() should return the User Id.
    As I understand RequestCtx values are always available in the JSP Page. Kindly check again.

  • How to display the some extra text in footer last page of each department

    Hello Experts,
    I need help in generating RTF template to generate sum of salary for each department in the footer of the last page of each department name As shown below.
    Total salary of <DEPARTMENT_NAME>=<Sum of salary>.
    Someone plese help me.
    For example:
    If my output is displaying in multiple pages for each department I want the output should be as follows in the footer of last page of current group
    *Total Salary of Accounting = _20300_*
    My xml file is as follows*
    <?xml version="1.0" standalone="yes"?>
    <ROWSET>
    <ROW>
    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
    <FIRST_NAME>Den</FIRST_NAME>
    <JOB_ID>PU_MAN</JOB_ID>
    <SALARY>11000</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
    <FIRST_NAME>Alexander</FIRST_NAME>
    <JOB_ID>PU_CLERK</JOB_ID>
    <SALARY>3100</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
    <FIRST_NAME>Shelli</FIRST_NAME>
    <JOB_ID>PU_CLERK</JOB_ID>
    <SALARY>2900</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
    <FIRST_NAME>Sigal</FIRST_NAME>
    <JOB_ID>PU_CLERK</JOB_ID>
    <SALARY>2800</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
    <FIRST_NAME>Guy</FIRST_NAME>
    <JOB_ID>PU_CLERK</JOB_ID>
    <SALARY>2600</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
    <FIRST_NAME>Karen</FIRST_NAME>
    <JOB_ID>PU_CLERK</JOB_ID>
    <SALARY>2500</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
    <FIRST_NAME>Nancy</FIRST_NAME>
    <JOB_ID>FI_MGR</JOB_ID>
    <SALARY>12000</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
    <FIRST_NAME>Daniel</FIRST_NAME>
    <JOB_ID>FI_ACCOUNT</JOB_ID>
    <SALARY>9000</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
    <FIRST_NAME>John</FIRST_NAME>
    <JOB_ID>FI_ACCOUNT</JOB_ID>
    <SALARY>8200</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
    <FIRST_NAME>Ismael</FIRST_NAME>
    <JOB_ID>FI_ACCOUNT</JOB_ID>
    <SALARY>7700</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
    <FIRST_NAME>Jose Manuel</FIRST_NAME>
    <JOB_ID>FI_ACCOUNT</JOB_ID>
    <SALARY>7800</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
    <FIRST_NAME>Luis</FIRST_NAME>
    <JOB_ID>FI_ACCOUNT</JOB_ID>
    <SALARY>6900</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Accounting</DEPARTMENT_NAME>
    <FIRST_NAME>Shelley</FIRST_NAME>
    <JOB_ID>AC_MGR</JOB_ID>
    <SALARY>12000</SALARY>
    </ROW>
    <ROW>
    <DEPARTMENT_NAME>Accounting</DEPARTMENT_NAME>
    <FIRST_NAME>William</FIRST_NAME>
    <JOB_ID>AC_ACCOUNT</JOB_ID>
    <SALARY>8300</SALARY>
    </ROW>
    </ROWSET>

    Hi,
    This a good document to look at. Search for the words "Running Totals" and "Regrouping the XML Data" on the page.
    Oracle Fusion Middleware Report Designer's Guide for Oracle Business Intelligence Publisher
    http://docs.oracle.com/cd/E21043_01/bi.1111/e13881/T421739T481157.htm
    I hope it helps.
    Sinan

  • Issue with last-page-first Body (header of second page repeating)

    Hi,
    I am generating some invoice document and there is tax section at the end of document.Invoice can be one page document or it can be multiple pages document.I also have separate header and footer for first page and then for subsequence pages.
    Assume that it is only one page and there is sufficient space left to display Tax tables. I am using
    ------Section Break (Continuous)--------
    <?start@last-page-first:body?><?end body?>
    <?call tax template?>
    This approach works fine when document is more than one page. Moment I get only one page for my invoice it uses the header of second page.
    I already tried <?start@last-page:body?><?end body?> tag but it moves it to the next page and I want it in continuation.
    Below is the snippet of template
    <?start:body?>
    first page header
    <?if:ITEM = 'PARTS'?>
    <?call-template: pt_template?>
    <?end if?>
    <?if:ITEM = 'TM'?>
    <?call-template: tnm_template?>
    <?end if?>
    <?end body?>
    ---SECTION BREAK (CONTINUOUS)-----
    <?start@last-page-first:body?><?end body?>
    <?call-template: tax_template?>
    <?template:tax_template?>
    Please advise if any option is available.

    Hi
    1.Check the Paragraph FOrmat . Character Format  ( the smartstyle) that you have assigned to the last page.
    2. if it is the Terms and conditons page , check the text module (SO10) and its corresponding SmartStyle (paragraph format,character format).
    See if u have used Underline in the  style..
    surya

  • How to print multiple footers for each page in RTF template xml report.

    Hi,
    How to print multiple footers for each page in RTF template xml report.
    i am able to print ( two sets ) ...
    up to last page ( one template ) and for last page ( another template).
    i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
    Thanks in advance.
    Regards,
    KAP.

    You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
    Just have for-each@section logic.
    It would be difficult for me to guess what you have done without looking at your RTF or describing here.

  • How To trigger last page in sap script of customer account statement

    Hello all,
    I am working on customer account statement.
    It has it's own standard script(F140_CUS_STAT_02). But my client's requirement was completly diffrent,so i copied that to z script and made some changes like delete some window and some another window.
    Now on first page , i have following windows,
    1) Header
    2) address
    3) main
    4) Account
    5) Footer.
    Next Page having following windows,
    1) Header
    2) Main
    3) account
    4) footer
    Now i want to print account window on lsat page, so i put the condition nextpage = 0.
    and it is working fine , but as account window is physically present after Main window , so that much blak sapge is getting creted after main window on every page.
    To remove that blank space i am thinking of creting one more page and everytime i want display account window on that page.
    I have creted the last page also. but in my output it not detecting that last page.
    For First page - next page is next.
    For Next page - next page is next.
    for Last page- next page is last.
    Also i have added following code at last in  main window.
    /: NEXT-PAGE LAST.
    But i think i am placing this code at incorrect position in main window.
    I am not able to find out the correct podition to put the above code,but main window of that script conataing so namy text element, and that text element are getting handled from driver program based on some conditions.
    I have added my code in main window but not changed the original code.
    Plz let me know where to write /: NEXT-PAGE LAST. in main window.
    Or provide me some another solution to trigger thet last page in sap script.
    Regards,
    Anuja Dhondge

    Hi ,
    actually in account window i have used tha box command to print account statement.
    Previously i was printing this account statement in main window itself but without using bottom and end bottom command.
    So , as i made some changes or add some code in main window then lines of this account statement  were getting dismental.
    So my question is using bottom and end-bottom command this will happen or not????

  • Dynamic table header/footer on multiple pages stay original

    hi experts,
    i've got a form with a dynamic table. this means that i have a footerrow with mapped information if it should be visible or not. so the table can have from 1 to 40 columns.
    i did some scripting in the table's initialize section:
    loop over count of colums and set the headerrow, row1 and footerrow elements for index x to hidden.
    everything works out fine BUT if the data spans over multiple pages the headerrow on pages 2 to last is original again. means that the hiding of cells is not effective any more. same with footerrow (but here its fine at last page and original at  page 1 to last -1).
    i tried to hide cells again in layout:ready section for the other instances of the headerrow.
    cells got hidden, but the still visible cells didnt relocate to the left (if i hide it, there should be no space between staying cells).
    can anyone please give me a hint what i am missing here?
    does anyone have a simple sample for this task? its all about the header/footer for multiple pages!
    thanks a lot!
    daapoo

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

Maybe you are looking for

  • How To Update Custom ItemRenderer (Image) on DataGrid Edit

    I have an DataGrid with 2 columns, column 1 called "Name" and column 2 called "Actions". The "Name" column contains editable text and the "Actions" column uses a (inline) custom ItemRenderer which displays 2 icon images ( for Edit and Delete). All wo

  • REP-0065 and REP-0200

    Hi everyone, I have a report that uses a strongly typed ref cursor to get its data. When I run the report on my local machine (oc4j and report server running on my local machine), the report runs fine. That makes me believe that the data types being

  • CL_HRPAY99_PRR_4_PNP_REPS Documentation

    Hi, SAP created a note, 699276 describing an alternative to the Get Payroll logical database for reading payroll results. In this note, it tells of the new class, CL_HRPAY99_PRR_4_PNP_REPS and the sub-classes under it. The note also give a very simpl

  • ADSTARTAL.sh

    Hi, EBS 11i Is there a one line command to check if all the subprocesses of adstartal.sh are still active or running after sometime just to check or validate or monitor them? Something like to check the ff: adapcctl.sh - Apache Web Server Listener ad

  • Is it possible to delete e-mails from Nokia's mail...

    Hello everyone, I have an E52 with the latest firmware, and I have a question about using it's built-in mail client. I'm using it with Yahoo mail. Is it possible to set up the mail client so that when I delete an e-mail message on my phone it doesn't