How to print last page in smartforms

Hi,
In my smartform i have 3 pages (FIRST, NEXT & LAST). FIRST contains some header detail and items. NEXT contains rest of items and this page would be repeatable if more item comes. now after NEXT i want to print LAST page. How to achieve this. PLease let me know. I looked into forum but haven't get exact answer so far.
Rgds

Hello,
According to your scenario you are having 4 orders and each order has to print seperately with the last page .right?
The best soln would be,
1) create another internal table same as the one you have and delete adjacent duplicates using order, so you will have 2 internal table one with 4 orders (it-1)and other with all the items(it-2).
2) In the driver program ,
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    control-no_open  = 'X'.
    control-no_close = 'X'.
    output-tdnewid  = 'X'.
   PERFORM ssf_open.
CALL FUNCTION 'SSF_OPEN'
  EXPORTING
  ARCHIVE_PARAMETERS       =
  user_settings            = ' '
  MAIL_SENDER              =
  MAIL_RECIPIENT           =
  MAIL_APPL_OBJ            =
output_options           = output
control_parameters       = control
IMPORTING
  JOB_OUTPUT_OPTIONS       =
EXCEPTIONS
   formatting_error         = 1
   internal_error           = 2
   send_error               = 3
   user_canceled            = 4
   OTHERS                   = 5
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
LOOP AT it-1.
    CALL FUNCTION l_fm_name
endloop.
CALL FUNCTION 'SSF_CLOSE'.
2) In the smartform 
     FIRST  ->   next page -> NEXT
               Beneath the main window -> Table,  put Command - Goto new page  as LAST.
     NEXT  ->   next page -> NEXT
     LAST  ->   Next page -> Blank
I hope this will work as I have done a similiar dev.
Regards,
Radhakrishnan

Similar Messages

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • How to print specific page in smartform !

    Hello Friends,
                  I like to print specific page in smartform. for Ex. page 4. But when I give page no. 4, the print preview not showing the exact page.
    Thank you for your time.
    Senthil

    Hi Senthil,
    chk this link you get a brief idea abt Smartforms.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    Reward points if you find this helpful
    Regards,
    Harini

  • How to Print next Page in smartform ?

    Hello ,
    I want to print next page in smartform.
    The situation is :-
    I am passing an internal table containing list of personal numbers.
    I have to print their details . Every candidate's detail should be printed on a new page .
    I have designed the whole form , but I am not print their details on a New Page.
    Please guide.
    Thanks in Advance.

    Hi, Nikita.
    Please Have a Look the following Link
    [MODERATOR MESSAGE: SapScript/Smartform questions go in FORM PRINTING forum|/thread/1360534 [original link is broken];
    So, Please Post Questions Regarding SapScript and Smartform in FORM PRINTING.
    1. First of all you need to set a Flag at the end of every Personal Number.
    2. Than Right Click on the object Like Main Window
    --> Create --> Flow Logic --> Command
    3. From First Tab of Command General Attributes Check the Check Box Go to New Page and Select Your Page
    4. In the Conditions Tab Give you Flag Condition.
    Hope will help you to solve out your problem,
    Please Reply if any Issue,
    Best Regards,
    Faisal

  • How to Print two pages in smartforms

    Hi All,
    How to create two different pages in smartforms.In my requirement the first page contains Table data in main window and in second page only the hard coded desription should be printed containg instructions,but the second page is mandatory after first
    page is completed,the first page may have n number of pages after printing those pages my second page should trigger.Help me if any one knows.
    Thanks in advance............
    Regards,
    Satya.

    hi ,
    once a main window size is declared , then that space will be placed in each page created.
    eg. if a table with header and footer is created, first of all the space for header and footer are allocated and body page is allocated.
    so we cannot dynamically change the size of the main window , even it is a copied main window.
    Otherwise another option is to continue the main window into the second page.
    for that first page main window -> create table -> add page break command to page 2 -> hard code description in template.
    page attribute for first page --> GOTO assign same page ( for continuing the same page)
    Page attribute for second page --> no need default is enough

  • How to Print Particular Page in Smartform

    Hi ,
         Anyone Give me steps to Print Particular Page when Printing Several Forms in One Print Request .
        Am Using smartform Within the Loop , So  i Used SSF_OPEN And SSF_CLOSE. When am printing the Smartform i gave particular    Page in Dialog Box , But all the pages are Printed.
        Please Help me to Solve this Problem.
    With Regrds
    Kesavaperumal

    Hi Kesav,
    You can do this in Print Control Dialog, when you give printer name as LP01 or LOCL , just below that, one input field 'Page Selection' is available,
    You can give like
    Pages selected for printing
    You can define which pages should be output in the page selection.
    All pages are printed if an entry is not made here.
    You can either specify individual pages or a range of pages. These entries are separated by a comma.
    Examples:
    4     only page 4
    2-5   pages 2 to 5
    -20   up to and including page 20
    3-    from and including page 3
    4,8-10,15-   pages 4, 8 to 10, and page 15 onwards.
    And If you need to control the rpinted copies from the program , you can try with the OUTPUT_OPTIONS-TDPAGESLCT parameter of Functionmodule (which is generated from Smartform).
    Hope this solves your issue
    Rgds,
    Sripal

  • How to print Last Page Balance on Next Page Header

    I am using Report 3. I have three field in
    my repeating frame.
    1. received
    2. issue
    3. balance
    Balance Field is running total of received and issue.
    I just want to print balance outside of my
    repeating frame at the end of page and then
    in header of next page.
    null

    I have the same question. Someone know how to do this. plz help.

  • How to print grandtotal in table footer only in the last page in SMARTFORMS

    Hello Experts,
    How do I print the GRANDTOTAL in the table footer only on the LAST PAGE in SMARTFORMS.
    What I have done is in the text element of CELL1 of the table footer i wrote the folowing logic but not working.
    /: IF &SFSY-PAGE& EQ &SFSY-FORMPAGES&.
    * V_SUM.
    /: ENDIF.
    I even tried this.
    /: IF &NEXT-PAGE& EQ 0.
    * V_SUM.
    /: ENDIF.
    but still it displays the grand total on all pages at table footer.
    How do i go for this experts.
    Regards,
    Ranjith N

    HI Nambiar,
    To print the grand total only on the last page then create the secondary window --> create the text node for the grand total -->In the condition tab check only after the end of the main window.
    This grand total will be displayed after all the items and end of the main window.
    Footer in the table displays as the subtotals i.e on every page total is displayed..
    Regards,
    Sravanthi

  • Cheque printing. How to avoid last page in case of check printing in F110?

    F-68 prints only one page whereas F110 prints 2 pages.
    How to avoid last page in case of check printing using F110? Is there any other option than changing the Script.

    Hi,
    Im also facing the same issue. Generates 1 page with F-58 but 2 pages with f110. Kindly let me know how to resolve.

  • Printing last page (Purchase order Terms) in SMARTFORMS

    Dear SAP Gurus,
    Our Purchasing unit would like to print purchase order terms and conditions after the end of Purchase order. Initially I had two pages (First and Next). The following are the steps I followed to print last page with Purcahsing terms.
    1. Create Command line at end of Main window in First and Next page and in command line output options select Go to page as Last page.
    2. Under last page, I have a secondary window which prints a text. (this is a long text and cant be printed using secondary window. I need Main window to print the text as it would be continous)
    The following are the problems I am facing.
    1. By placing command line at end of Main window, data in secondary window after the Main window are not printing.
    2. Purchase terms Text placed in the last page under Main window is not printing. Text placed in last page under secondary window is printing but instead of 8 pages of terms text only one page is printing.
    How can I handle this.
    Thanks in advance.
    Thanks
    Shanthi

    Hi Shanti,
      From what I've understood from you post, you may try putting the command in the secondary window (which comes after the MAIN Window) of the first page. In the command give Goto Page ->NEXT.
    Hope this helps.
    Thanks,
      Ranjith

  • To print LAST page in smatform

    Hi All,
               The requirement is to change the existing smartform.
    The smartform already contains FIRST PAGE and NEXT PAGE.
    Now the requirement is to add a NEW PAGE that should be printed at last.
    ie the FIRST and LAST page should be printed compulsarily while the NEXT page is optional.
    My doubt is in attributes in the NEXT page option if we give NEXT(both in FIRST and NEXT page) then how will the LAST page will be printed.
    Or should the new layout for LAST page should be incorporated in NEXT page only.

    Hi Sridhar,
    Use a command for that.
    You have 3 pages
    First Page
    Next Page
    Last Page
    Now at the end of first page use a "Command" with condition for the next page to trigger.
    If condition will satisfy then the contents of next Page will trigger else last Page triggers directly.
    Reply back if u will face any problem.
    If ur problem get solved then please close this thread.
    Regards,
    Ankur

  • How to Get last page number in report 10g

    I want to get last page number in report but Current page number found from srw.get_page_num(n)
    but i want to get last page number for conditional formating like this
    srw.get_page_num(current_page)=last_page
    pls help me how can get last page number;
    pls help;
    thanks in advanced;

    Hi,
    you can use the Property Print Object On for this.
    Regards
    Rainer

  • How to print blank page in script

    Hi all,
    how to print blank page in script

    Hi,
    Try the command /: NEW-PAGE. Let me know if it is working.
    Ray

  • How to print horizantal lines in smartforms?

    hi friends,
                       how to print horizantal lines in smartforms.
    waiting for ur valuble replies.
    Thanks,
    Kiran

    HI,
    If u use templates or table,then use borders to print the horizontal lines.
    Eg : Create template-->Table painter->click select pattern button->Display framed pattern->select 3rd one.it will display only horizantal lines.
    if want to print horizantal line under the text, then create one paragraph or character formate with Underline in smartstyles.Use that paragraph or character to u r text element

  • How to print a bullet in smartforms?

    Hi All,
    How to print a bullet in smartforms?
    I need it urgently.
    Any help would be appeciated.
    Regards,
    Mahesh.

    Hi,
    if i remember correct <600> is the value for bullets.
    you can insert this using sap system symbols ---> select bullets (before this place your cursor where ever you want the bullets.
    eg:
    P1  <600> test.
    Thanks,
    Sree.

Maybe you are looking for

  • "Transfer structure  does not exist" while deleting data from a DSO

    Hello experts, while deleting data from a DSO I get the following messages: @5B\QInformation@     Database table /BIC/AAKIVO1400 was deleted and recreated @5C\QError@     Transfer structure  does not exist When I try it twice process works without an

  • GUI_DOWNLOAD and codepage problem

    I'm trying to download XML data using this function module to a local PC file. It contains finnish characters such as Ä. When I open the XML file with an XML editor, it tells me that "Byte 0xFF found in file ... is invalid for encoding utf-8' I think

  • Work around for JSF lack of XHMTL standards

    Has anyone come up with a work around for the fact that JSF cannot produce XHTML documents? Anyone know why they went this route? Thanks, David

  • What is the difference between payment_num and check_num?

    Hi All, I am looking into the table ap_selected_invoice_all (temp table which stores information about selected for payment in a payment batch). I saw a column payment_num, is this the check_num ?? Thanks and Regards, Prathima.

  • Posting in 13-16 period

    Hi, Can anyone please tell me with examples the entries which we do in 13-16 periods ?? Regards.