Printing text on last page of adobe form

Hi abapers,
My requirment is that i have to print a particular text in the footer.
But this has to be printed only on the last page.
how do i go about doing this.
thanks in advance.

Hi Aditya,
Give the condition as.
If &SFSY-NEXT-PAGE & = 0.
print what text u wanna to print.
endif.
Best Regards,
Flavya

Similar Messages

  • Printing Footer Only on the last page of adobe Form

    Hi Experts ,
    I have a requirement of printing text only on the last page of the adoe Forms.
    I know how to do this in Smart Forms , but being a novice in adobe forms i am unable to get the exact place to puth these conditions.
    Please reply ASAP.
    Thanks

    Thanks .
    Problem Solved.
    Here is the Code snippet in Formcalc language that i used in the intialize event
    var curpage  = $layout.page ( ref ( $ ) )
    var totpages = $layout.pageCount()
    if ( curpage ne totpages ) then
    $.presence = "hidden"
    endif

  • Printing text in last page main window of a script

    Hi All,
           I want to print some text at the bottom of last page main window.But how can we find that it is last page.I mean which condition we have to put for that.
    I think the below condition like
    If last-page NE ' 0'.
    write : '----
    '..........   will be used for printing at last page footer window.
    what about main window........how to find that it is the main window of last page............
    Thanks in advance ....
    Regards,
    Rakesh.

    Hi,
    you can use this
    IF NEXT_PAGE EQ ' 0 '.
    write the text here.
    ENDIF.
    in the main window itself. Once all the records got printed, it will check that there is no next page. at that time, that was the end of the internal table in the mainwindow and the text will be printed.
    If you want a seperate window, then also the same logic will work.
    If you want a seperate window, then the output look and feel will not be so good.
    I mean where ever the last record got completed, it will print the text if you put it in Main window. other wise statically it will print at a particular position where your window was placed.
    Regards,
    Venkatesh

  • 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  (  $  )  )

  • Print Footer Window of PO Form at end of Last Page of PDF Forms(Adobe)

    Hi,
    I am trying to print PO form using PDF form which includes multiple line items. At the end of last page I am trying to print the footer window that contains Comments and Signature.
    Right now my Footer Window is being printed immediately after the end of line items.
    I have included the Comments text box and image inside a Sub Form.
    Please let me know how to print the Footer window at the end of the page instead of printing immediately after the line items.
    Thanks,
    Rekha

    Hi,
    Please take the footer subform from the tables section and position it on the page where u want to print and write the script so that it will print only on last page.
    Regards,
    sasi

  • Secondary window to be printed on the last page the form

    Hello,
    Is there any way, by which we can show the defined secondary window on the last page of the form in smartform?
    Only 1 page is defined in the smartform for the layout.
    e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. then total (defined in the secondary window) of the line items must be displayed on the the last page of the form only in this case the last page is 2nd.
    Thanks and Regards,
    Paresh

    >
    paresh rane wrote:
    > e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. 
    > Paresh
    put a counter on which you are getting the line items.
    for the last page, the counter should be equal to the number of line items in the table .. right?
    so.. keep the number of records in another variable, lets say in the global initialization part.
    and for the secondary window condition tab
    keep
    counter = gv_number_of_lines
    only when this condition satisfies, the window will be triggered. and this condition will only be satisfied if all the items are covered => last page.

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • 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

  • Hiding Pages in ADOBE form using formcalc scripting.

    Hi Experts,
    I am new to ADOBE form and currently working on invoice print output. (NOT an  Interactive adobe form)
    My requirement is
    i wanted to print one main page and 5  different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
    Deppending on 'Oreder reason' (made as global variable)  , i need to select appropriate annexure and print
    main page and any one of the annexure.
    so i should hide all other annexure, to achive this i used formcalc scripting.
    i tried hiding annexure 2 by following code,
    data.Annexure2::ready:form - (FormCalc, client)
    if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
    then $.presence = "hidden"
    endif
    i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
    Experts please help me...
    this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
    thanks and regards
    varun
    Edited by: skyblue on Aug 6, 2011 3:30 PM

    coding Formcalc is a pain.
    But you're doing the right thing by passing in a variable and hiding based on the content of it.
    Here's an example of where I'm hiding a subform on a page.
      if ( main_sf2.charter_only.CHARTER_DOC.rawValue eq "X" ) then
       main_sf2.pts_sf.presence = "visible"
      else
       main_sf2.pts_sf.presence = "hidden"
    endif
    Looks like your code is similar - try changing
    ( data.G_F_ORDER_REASON.rawValue == "ANX" )  to
    ( data.G_F_ORDER_REASON.rawValue  eq "ANX" )
    or instead of $.presence = "hidden"  fully qualify the name of your page to  data.Annexure2.presence = "hidden"

  • Condition text on last page of Main window of a SAPSCRIPT

    Hi,
         I want to print some condition text in last page of a Main window of my custom sapscript, we can't use &NEXTPAGE& in Main window. Is there any other method to identify the last page.

    Hi Venu gopal,
    In the print program use the control break statement.
    Refer this code
    *AT LAST*
    call function 'WRITE_FORM'
           exporting
           element                          = 'GRAND_TOTAL'
    *   FUNCTION                            = 'SET'
    *   TYPE                                = 'BODY'
             window                         = 'MAIN'
    Regards,
    Sravanthi

  • Print total in last page,

    Hello Everyone
    In PLD i have a requirement whereby if the layout goes into more than a page says 2 pages,then the total should display "Continued in next page" in the 1st page and in the last page(in our case 2nd page) total should print the document total in the same area. How can this be done? How to achieve this if...then...else statement in PLD
    if CurrentPage()!=TotalPages()
    then "Continued in Next page"
    else Doctotal
    Thanks and Regards
    Raghu
    Edited by: Raghu Ram on Apr 7, 2009 12:38 PM

    Dear Raghu,
    If you would like to print certain fields on the last page only,
    'TotalPages()' cannot be used in formula, therefore, please follow the
    Workaround below.
    As a Workaround create the following field:
       Field_Formula
       General Tab
       Untick visible
       Left = 0 / Width = 0 / Top = 0 / Height = 0
       Content Tab
       Source Type: Formula
       SystemString(ContinueNextPageNotice) ==''
    And enter the ID of this field as the "Link to" for the Fields you
    like to print on the last page only.
    For more information please refer to the NOTE 1058584.
    Hope this helps.
    Regards,
    Gagan Thareja
    SAP Business One Forums Team

  • How can I import text produced in Pages into Adobe inDesign?

    How can I import text produced in Pages into Adobe inDesign?

    Menu > File > Export > Word .doc/x
    I doubt it will do graphics and layout, but maybe, depending on your version of Indesign you may hit lucky (but probably not).
    Peter

  • Table footer issue in body page of adobe form

    Form has 1 master page and 1 body page. Body page has table within which there is a footer header and detail (2 footers) in the form. My intention is to make footer (both the footers) appear in the last page of the form. For most of the scenarios, footer is displayed at the last page or if it has only 1 page to display, it shows in the first page itself.
    But issue arises when number of rows reaches the maximum length of body page. Let's say, body page can accommodate 11 rows, then footer header is displayed in 1st page but footer detail is shown in next page (2nd page).  I want to show both of these in the last page with 11th record in the last page without any break.
    I've tried below options:
    1. Group both footers as a section and check "Include footer row in final page" in pagination tab.
    2. Mark both the footers individually with check "Include footer row in final page" in pagination tab.
    Is there any other option that I need to look for to solve this issue?

    Thank you Norbert. That solved the problem.
    I've one more question relating to this. Let's say I can only display 11 records in one page with these 2 footer. For 12 records, 2nd page shows last record with these 2 footers. 10 records will be displayed in one page properly. But when it comes to 11 records, 1st page shows all of 11 records and 2 footers with a page header will be shown in 2nd page. Is there a way to control this dynamically so that whenever 11th record needs to be shown, even though body page(or subform) can accommodate 11 records, show the 11th in 2nd page with footers?
    Thanks,
    Phani

  • Print the attachements added in the adobe form

    Hi,
    I added the attachments in the adobe form.But when ever i print this adobe form , i want to make sure that the attachments are also printed in addition to the original adobe form.
    Is there any automatic way of doign it or any alternatives to avoid adding it as an attachment ,
    i have  a word document stored in the database.
    so when ever i print my form need to print the document sthat are stored in the database also.
    Please help me.
    Regards,
    Sasi

    "Discrepancies"?

  • How to create new page in adobe form.

    how to create new page in adobe form.

    Hi
    First Go To Layout.
    On Hicherchy Platte , rightclick on Subform and select option new body page.
    This way you can create body page for the particular subform.
    if you want to create master page , right click on page 1 and select New master page.
    Hope this will helpful to you.
    Rewards if useful.
    With Regards
    Nikunj Shah

Maybe you are looking for