Smartform printing more pages

hi all
I am new in smartform and form printing in general, and I have a problem: I need to print a smartform with two kind of pages and each kind can stay on more pages. So I thought that I have to create 4 pages:
KIND_1_FIRST
KIND_1_NEXT
KIND_2_FIRST
KIND_2_NEXT
on KIND_1_FIRST and KIND_2_FIRST I set respectively KIND_1_NEXT and KIND_2_NEXT as next page. The working hould be that when finished processing KIND_1 I need to start processing KIND_2 ... if I simply put KIND_2_FIRST and KIND_2_NEXT after KIND_1's pages in the tree of the pages, they are not processed and in output I can see only KIND_1_FIRST and KIND_1_NEXT.
I don't know if I am missing something important to set the order of the page to be processed.
I hope I've been clear ...
thanks to anyone eill help me
gabriele

Hi
I don't know how your smartform is arranged, but I've done this:
- Create a simple smartform having two pages: PAGE1 and PAGE2, the page flow is:
PAGE1->PAGE1 (so it has itself as next page)
PAGE2->PAGE2 (so it has itself as next page)
U can have a different page as next page, it's the same.
- Create 2 internal table ITAB1 and ITAB2;
- Create a MAIN with two loop (one for ITAB1 and one for ITAB2)
- Insert the command to skip from PAGE1 to PAGE2 between the loop of ITAB1 and loop of ITAB2
In this way the smartform skips to PAGE2 as soon as has finished to print the data for ITAB1, and then start to print the data of ITAB2.
As the logic of the MAIN is not finished at the statament to skip to new page, the data will be print in PAGE2 and in the next page.
Max

Similar Messages

  • Why SmartForm Printing empty pages??

    Hi All,
           I got a production ticket belongs to shipment (VT03N) prints packing list smart form. The Output data is only 2 pages. but it is printing 68 pages. From last two years, the same smartform working fine.
    The first page prints only 3 materials, and 68th page prints grand total. Rest 66 pages empty (header prints on every page but no items)
    Only one shipment causes this problem. Rest all shipments are printing fine. Version 4.6C.
    I appreciate your suggestion.
    Thanks in advance,
    Ashok

    The empty pages can come because of couple of reasons:
    1. Check: If you have more than one line in your text element in your main window. If yes, than put the text element in the folder and set the "page protection on" on the folder.
    .... MAIN
    ......... TABLE
    ...............TEXT ELEMENT
    ........................LINE 1
    ........................LINE 2
    Should be
    .... MAIN
    ......... TABLE
    .............FOLDER  (Page protection ON)
    ...............TEXT ELEMENT
    ........................LINE 1
    ........................LINE 2
    2. Unnecessary COMMAND which triggers the next page. If yes than remove them.
    Regards,
    Naimesh Patel

  • Smartforms: Printing Selective Pages

    My smartform have 5 pages. My aim is print selective pages (ie page 1-3).
    In the global definition -> initialization, i wrote the statement below:
      OUTPUT_OPTIONS-TDPAGESLCT = '1-3'.
    My problem is all 5 pages are still being printed out instead of page1 to page3. Please advice.

    Hi,
    With the specified way , the condition cann't work.Once check it.
    In the generated FM you have parameter OUTPUT_OPTIONS-TDPAGESLCT, which is for "Pages selected for printing".
    You have to call FM 'SSF_FUNCTION_MODULE_NAME' to get the generated FM name, then call this FM dynamically with the mentioned parameter.
    Reagards,
    Shiva Kumar

  • Smartforms with more pages

    Hi Gurus.
    I have a smartform with five pages.
    page1 has like next page page2
    page2 has like next page page3
    page23has like next page page4
    and so on.
    In the First page general Attributes, i allready assign the next page as 'Second page'
    and also in command prompt assign the next page .
    But when I print the smartform, It's show only the first and the second pages.
    Why?
    Please, help me!
    Regards
    sam

    Hello Sam,
    I assume that you need to print the 5 pages always.
    If so , in the command node in main window of "Second Page" assign the next page as "Third Page" & so on.
    Hope you get the point.
    BR,
    Suhas

  • Regarding Smartforms printing - multiple pages

    Hi Friends:
        Please help me out on this query. I know how to make a smartform. I've made smartforms but the condition is that it triggers only one smartform. I've a requuirement that I've to trigger smartform for multiple vendors.The format of the smartform will be the same.Logo will be same. The address of the vendors will be changed.The line items in the main window will be changed.Footer will be constant. There will be a select option on the selection screen, which will select a range of the vendors.There will be some other parameters.I tried using loop, but every time it triggers one smartform & then again displays "print preview dialog box". I want all the smartforms to generate in one go.once the smartform for one vendor finishes, it should trigger a new one on the next page.Please help me out urgently.If anyone has a sample program, please send it to me.Reward points will be there.

    Hi,
    Pass the select-option as a input to smartform.
    Check this link.Here I am explaining how to do this.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
    If you want to restrict print dialog box,you can achieve it by the following coding.
    *& Report  ZZZ_JAYTEST1                                                *
    REPORT  zzz_jaytest1 NO STANDARD PAGE HEADING MESSAGE-ID zhrt.
    Variable Declaration
    DATA : v_form_name TYPE rs38l_fnam,
           itab TYPE STANDARD TABLE OF pa0001,
           w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl.
    SELECT * FROM pa0001 INTO TABLE itab UP TO 5 ROWS.
    SORT itab BY pernr.
    DELETE ADJACENT DUPLICATES FROM itab COMPARING pernr.
    DATA: control TYPE ssfctrlop,
    control_parameters TYPE ssfctrlop,
    output_options type SSFCOMPOP.
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.
    control-no_dialog = 'X'.
    control-device = 'PRINTER'.
    output_options-tddest = 'LOCL'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
       USER_SETTINGS            = ' '
       OUTPUT_OPTIONS           = output_options
       CONTROL_PARAMETERS       = control
    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.
    output_options-tddest = 'LOCL'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
    CALL FUNCTION '/1BCDWB/SF00000066'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = control
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       OUTPUT_OPTIONS             = output_options
       USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            = w_return
      JOB_OUTPUT_OPTIONS         =
      TABLES
        itab                       = itab
    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.
    CALL FUNCTION 'SSF_CLOSE'.
    Kindly reward points if it helps.

  • Smartform printing all pages from 2 trays

    Hello all,
    can we print Smartforms from 2 diffrent trays we have a tray selection option in smartform but is there a way we can print all the pages from tray 1 as well as tray2?
    for example if i have 3 pages i want to print all 3 pages from tray1 as well as tray 2.
    Thanks,
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on May 28, 2009 5:13 PM

    You will have to send the form to the printer 2 times to print from different trays. I seriously doubt it would be possible to do it otherwise, but you might want to check in the forum specific to forms.

  • Signature text printing 2 pages

    Hai,
    In smartform i have 2 pages and have signatute text in both the pages.Now if smartform while printing if it has only 1 page then signature should print in 1st page if smartforms prints 2 pages then signature should display only in 2nd page.First page signature should not display.If tried using SFSY-PAGE and SFSY-FORMPAGES.Can anybody help

    Hi ,
    For that you have to create the secondary / final  window put your signature in that
    If you want signature in each page dont put any condition for that  than it will trigger in all the pages
    If you want the signature at the end of the window than you create the final  window  and  check the condition as  SFSY-PAGE   = SFSY-FORMPAGES (For secondary window it will not work )  than it will print  your signature in the  last page only .
    Ex : 
    Header window
    Main Window
    Signature Window   (According to your requirement  it will be  secondary/Final window)
    Let me know If any concerns......

  • How to print a field on the last page of Smartform with more  of 2 pages?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SFSY BUT NOT worked.      
    The form has  more of  2 pages.
    Thank you.
    ROGERIO VAZ

    Hi ,
    You dont have to hard code anything to achieve this functionality,
    just create a window and in that window define a text element to print
    that variable.In the conditions tab of that window check the check box
    "only after end of main window".i think you might have used a main window,
    so irrespective of the no of pages the smartform prints,it always displays that
    field in the last page of the smartform.
    regards,
    srikanth.

  • SMARTFORM: how to create 3 copy (each copy can print more than one page)

    SMARTFORM: how to create 3 copy (each copy can print more than one page)
    Hello everyone.
    my user want to have form that print 3 copy.
    such as 1 copy description = master,  2 copy description = copy 1 ,3 copy description = copy 2.
    so i create 3 page . I copy from page 1.
    and in each page there is main window which can have data more than 1 page.(such as have a lot of sale data ,it's take 2 page for show output .so it's take 2 page in each copy)
    please help me.
    how to set page and window in each page for print 3 copy and each page can have main window that print more than 1 page

    Hello Vinit.
    thank you very much for your help.
    could you help me more please.
    in below code
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Now i out of office .so i cannot test.
    where do i set NAST_ANZAL for 3 ?
    can i input ?
    NAST_ANZAL = 3.
      DO NAST_ANZAL TIMES.
    l_counter = l_counter + 1.  " << pass this to FM and use for the TEXT to print
    CALL FUNCTION LF_FM_NAME
               EXPORTING
                         COUNTER = l_COUNTER   " USE this to derive the text into PRINTOUT
    enddo.
    Edited by: dittaporn nanasilp on Mar 12, 2011 3:33 PM

  • 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

  • P1006 - networked with XP and VIsta-64 not printing more than 2 pages

    Hello - I have a dilemma with my HP P1006.  I have the printer directly plugged in (USB) with my XP (32bit) PC.  I have a Vista-64 PC networked with it.  Both (XP-32 and Vista-64) are plugged in directly to the router (not wireless).  My question is why can I not print more than two pages at a time with items opened on the Vista-64 PC?  I CAN print more than two pages with items opened in the XP-32.
    Things I've done:
    1 - uninstalled everything & reinstalled the latest drivers for the XP-32.
    2 - marked the printer as "sharing" on the XP-32.
    3 - confirmed the printer is marked "enable bidirectional sharing" under the printer properties on the XP-32 PC.
    Things I perplexed about:
    1 - why won't items (docs, webpages, etc.) print more than two pages at a time from the Vista-64 PC?
    2 - is there any reason that I should download a driver for the Vista-64 OS? If so, which PC do I download it to?
    3 - I have another printer (Lexmark inkjet) connected in the same way (except it is a serial port not USB) and it can print more than two pages of a document at one time with no problem from either the XP-32 or Vista-64 PC?  Why?
    Any thoughts on this situation?  Any suggestions are greatly appreciate.
    Thank you - Jane.

    Hi!
    I just get a system message at teh bottom of teh screen saying "output cannot be issued " and it remains on teh same screen . I goto t-code va23 and enter my quotation number and on the top I select sales document ...issue output and select my output type and print preview or prnit , it comes out of that screen into the first screen and at the bottom gives msg "Output cannot be issued". I beleiev its not allowing the smartform to display when there are more than 2 pages , because I tried it with a contact which has 2 pages and it shows output but when I try with the one having more items i.e more than 2 pages it comes out of it . Its a smartform issue and something in the smartform is causing problem I beleive.
    Thanks

  • Printing Multiple pages in Smartform on Local printer

    Hi guys,
    I have a smartform with a command to print a page with the general conditions.
    When I print this on a defined printer in SPAD everything goes fine (got 2 pages) but when I print this same form thru the Local printer I only get 1 page. It seems the second page is printed over the first.
    Tried it with more pages, 1 with data then general conditions then data again, and it also prints it all on 1 page thru the Local printer. With the third page on top of the second on top of the first.
    Does anybody know how to solve this issue.
    Thanks.

    Hi,
    I checked the printers and they are using the normal SAPWIN type. I tried it with access method F and G but both give the same result. The page format used is the standard DINA4.
    On the print preview it looks fine, when I print it on a printer from my windows session using the local printer it all prints on the first page (so it only shows the last page).
    I tried to add the check SY-TABIX > 1 and it is the same issue.
    The problem seems not to be with the smartform because if I print a layout which do not have a command to add an extra page but it contains enough data to print on multiple pages and we get the same result. Second page is printed over first page.
    Thx.

  • SMARTFORMS : print systematically a page

    Hi all,
    in my smartforms i would like to print systematically a page with legal text, even if my data take one or more pages, i want to print systematically this page, how can i do that ?
    Thanks
    Edited by: CECG on Nov 3, 2008 5:59 PM

    Hi,
    Put all your data in Main window and process the data in the order you want in your ourput.
    Thanks,
    Sree.

  • Large pdf(40MB) with 600 pages color quality is poor if i print more than 1 or 2 pages at a time.

    I have a 40MB PDF file with over 600 pages of color images. If i print each page one at a time, there is no issue whatsoever with the quality, but if i print say 5 pages, the 4th and 5th page and any subsequent page will look like rubbish. In general, just not the same color quality as before. The Konica Minolta printer doesn't seem to be at fault here because like i mentioned, this problem does not occur if i print individual sheets, just if i print more than 5 or so.
    Printing individual sheets in this instance, however, is not a real solution because in all the job will have many thousand pages. What do i do? Any one here experience a similar problem?

    You were able to catch me whilst my Konica Minolta tech was here.
    This is my take on his diagnosis,
    The c353 while capable of quality output is not exactly a robust production level machine.
    Without the aid of a RIP, all the processing needs to happen either in memory or it may have a hdd. Does the machine have a hard drive?
    In either case, you are running out of memory.
    Changing the printers properties on spooling may aid in completing the job.
    He mentioned sending the job as raster. Print as Image from Acrobat's Advanced tab would do that, but I think you would cripple your computer doing such. Try it; be prepared to go out to lunch or something while it churns away.
    hth

  • How do I set or get firefox to print more than one all pages the print using verizon emails is there a setting to change I have been told by verizon techs it is not my printer

    when opening an email using verizon emails I can only print one page. I have checked an I do not have a printer or computer problem because the printer prints more than one page with others such as gmail. We feel there is a print setting in firefox that needs to be changed. How do I change this??

    That is usually caused by a few different Bugs in Firefox, which seem to be fixed in the Firefox 4.0 betas.

Maybe you are looking for

  • Re. Sales order Created with reference to Contract

    Hi Guru's, I have create a Contract with Sold to party, Ship to party and material combination. So when i am creating a Sales order for the same combination system is not proposing the availability of contract. I manually need to assign the contract

  • ABAP: Get parent container

    Hello, In my action handler method I have an ID of the element that triggered this event, lets call it ELEMENT_A. I need to get UI element (let's call it container_element) that contains ELEMENT_A. I know that this container_element is type of cl_wd_

  • What happened to my TV show?

    I bought a TV season, but once I watch an episode, I can't find it in my library again.

  • Is LOST, Season 3 just in 720p?

    Hi, I just purchased LOST, Season 3 from the iTunes Store, yet it is given me issues. One issue is when the tv season is in iCloud, it is labeling it as "No Season" as opposed to "Season 3". Secondly, the resolution is 720p, not 1080p.   I have my st

  • Disable sales document type from COPA? Is it possible?

    Hello gurus We have a situation where we dont wish system to create Profitability Analysis segments for items belonging to the quotes that we are creating? Is is possible to disable PA assignments by a sales document type and or item categories? Many