Control printing with ALTERNATIVE in several pages

Hello all, 
I'm currently working on generating a PDF where each page needs to be conditional (ie user can print 1st & 2nd page, or 1st, 2nd & 3rd, or 1st & 3rd).  Altogether there are about 20 pages.
The use of alternative + command with next page works great for the determining the print of the 2nd page, but I can't seem to get it to work the same for the printing of the 3rd page, etc.  I did notice that in order for the contents of the 2nd page to print, they HAVE to be placed in a secondary window, but I can't put the next page commands in a secondary window.  What I've tried is to have the secondary window first (with all the page content), then a main window (with alternatives & commands), but this doesn't seem to work.  (Also, listing main widow then secondary doesn't work.)
When I add breakpoints, it seems as though the main window is never called.  (I can see the breakpoints in the F01 include, but they are never called.)
Any ideas?
Here's what I'm needing:
Page 1
- alternative 1 -> TRUE -> go to page 2
- alternative 1 -> FALSE
--alternative 2 -> TRUE -> go to page 3
--alternative 2 -> FALSE
---alternative 3 -> TRUE -> go to page 4
Page 2
- alternative 1 -> TRUE ->go to page 3
- alternative 1 -> FALSE
--alternative 2 -> TRUE -> go to page 4
--alternative 2 -> FALSE
---alternative 3 -> TRUE -> go to page 5
Lisa
Edited by: Lisa Mychalishyn on Feb 2, 2012 4:13 PM

OK, here's the technique I used to make this work.
I pass a table with pages to be printed (PAGETAB).  In the main window, I loop thru PAGETAB and use it's value to use the layout for that particular page (grouped into a folder, with conditions).  At the end of the main window, I check to see if this the last page to be printed, else I use Command to force a page break (otherwise, 2 forms may print on the same page). 
Here's a sample of the code:
Page
Main window
- program lines -> get total # lines in PAGETAB into V_TOTAL
- loop @ PAGETAB
  -- program lines -> add 1 to V_LOOP
   -- folder 1 -> condition -> PAGETAB = "PAGE1"
    --- page 1 layout stuff
   --- alternative - if V_LOOP < V_TOTAL
TRUE
command -> go to next page -> Page
   -- folder 2 -> condition -> PAGETAB = "PAGE2"
     --- page 2 layout stuff
     --- alternative - if V_LOOP < V_TOTAL
TRUE
command -> go to next page = Page
... rest of pages
Lisa

Similar Messages

  • Controlling print options esp. fit to page

    is there a way to control print options, particularly fit to page, from within the PDF itself?
    We provide print ready files for our clients who print them as needed, but they are brochures that are set up for fit to page OFF, otherwise the white border (because it can't bleed) around it is uneven.
    So they would send the file to our print shop and the printer would automatically print it with this option off, based on the pdf settings for that document.

    Go to Properties (Crtl+D) and the advanced tab, you can set the print porperties that will come up by default there, it is still possible to over ride them though.

  • Print with 'Proof' on each page

    Would like to print a booklet to send to a client with 'Proof' on each page. How to? Thanks.

    I did this several years ago but do not remember using a layer. Somehow I was in a form that let me add any wording, size and format.
    Any ideas on how I did that? Thank  you.

  • How can I control printing highlighted part of a page?

    I have a problem with a new computer on which I can not print highlighted part of a page. When I try the highlighted part is not printed. If I use my old computer the highlighted part is printed as expected. I have compared the settings for both the printer and Firefox on both computers, but do not see any difference. Both runs Win7, runs on the same network and use the same printer. Only difference I can think of is that the new is a 64 bit computer. Any ideas of how I can solve my problem?

    Hi 16tons,
    The issue you are referring to might be a known bug. You should look at CWW's post in this thread:
    https://support.mozilla.org/en-US/questions/923294
    A fix is planned for the next Firefox update.
    Hopefully this helps!

  • Word document pdf printing with vertical and horizontal pages

    I have a Word document that has both vertical and horizontal formatted pages.  When I print to PDF, the I get a new pdf file whenever a page orientation change is found.  pages 1 to 7 are vertical, 8 to 12 are horizontal and 13 to 20 are vertical again.  If I print to a file named "out_to_PDF" I get 3 files named "out_to_PDF", "out_to_PDF2" and "out_to_PDF3", the first one with pages 1 to 7, the second one with pages 8 to 12 and the third one with the remaining pages.  Is there a way to get only one file with all the pages?
    I know I can merge the files later.  This file with 20 pages is no problem.  I have several 70+ page docs, with multiple changes between horizontal and vertical that will result in 20 or more separate pdf files.
    Any pointers?

    Word renders print jobs that change the orientation as separate print jobs. So, each print job becomes its own PDF.
    You can make an Automator workflow to combine PDFs. I’m not sure how it decides the order it combines them, so you’d have to experiment.
    This is built as an Application where you’d drop all of the PDFs onto the App icon and it will open the combined PDF where you can edit, name, and save.

  • How to print large image across several pages?

    After using Appleworks for years I finally got Pages 09. In AW I used to be able to use drawing app to print large (36 x 36) images over several pieces of paper, simply by adding pages to the document. I would then tape the pages together to form the large poster. I can't see anyway to do this in Pages. It won't let you print any larger than 11x17, nor let you add pages to a layout to print a large image. Anybody know how to do this, or did I just waste my money?

    Welcome to Apple Discussions
    Yvan Koenig discovered with iWork '08 that you can span images across pages in a Numbers document as a substitute. Select & delete any tables & then treat the Numbers document as a draw document. You shouldn't need to add pages like in AppleWorks as Numbers adds them as needed to display all of the content.

  • Spool print with more than one page doesn't work

    Hi Experts,
    I need some help.
    I have following code in my report:
    SORT ta_ausgabe BY vstel vkorg_auft fkdat.
      NEW-PAGE PRINT ON .
       LOOP AT ta_ausgabe INTO wa_ausgabe.
         READ TABLE ts_vstel
           INTO wa_vstel
           WITH TABLE KEY spras = sy-langu
                          vstel = wa_ausgabe-vstel.
         READ TABLE ta_vkorg
           INTO wa_vkorg
           WITH KEY vkorg = wa_ausgabe-vkorg_auft.
         WRITE:  wa_ausgabe-vstel.
         WRITE:  wa_ausgabe-vkorg_auft.
         WRITE:  wa_ausgabe-fkdat.
         WRITE:  wa_ausgabe-matnr NO-ZERO LEFT-JUSTIFIED,
           AT 30 wa_ausgabe-maktx NO-ZERO LEFT-JUSTIFIED,
           AT 70 wa_ausgabe-fkimg NO-ZERO LEFT-JUSTIFIED, 
           AT 79 wa_ausgabe-vrkme NO-ZERO LEFT-JUSTIFIED.
         NEW-LINE.
       ENDLOOP.
       NEW-PAGE PRINT OFF.
       COMMIT WORK.
       v_spool_attach = sy-spono.
    As you see the information of the table TA_AUSGABE will be just prined into spool. When I have only information for one page everything
    work fine, but as soon there more information to be printed I cannt open my pdf file with the spool info anymore.
    What could be a reason?
    Please urgent
    BR
    Denis

    Hi Denis,
    The code works for me for printing more than 1 page.
    Pls try giving the spool id manually  in report RSTXPDFT4 and see whether it gets Multi pages in pdf and let me know if you have any issues.
    Rgds,
    K.S.

  • Ideas / Recommendations for Workgroup Printer with LOW Cost-per-page?

    (Like everyone else), we're printing more color than we anticipated.
    Our leasing company charges $0.09 per color page on our Xerox Workcenter 7545 copier.
    Color print is primarily used by a small group (6 individuals) who print about 3000 color pages per month.  I'm considering a smaller additional network laser just for that group - if a suitable one can be found.  (Does not need to be multi-function.)
    We'd probably purchase (vs. lease) in this case - but cost-per-page (toner cost) is an important consideration.
    Has anyone else done a similar recent study - and been happily surprised by the actual outcome?  Or - are your costs lower - but you've been unsatisfied by reliability, etc.?
    Thanks in advance!
    This topic first appeared in the Spiceworks Community

    I would greatly appreciate any feedback please!!! I thank you in advance!!!

  • Controlling Iframes with links in parent page (CS4)

    OK, here's what i'm trying to do: I have a number of "calculators" for a home loan company, and I want them to show up in an Iframe (when the corresponding link is clicked) on the page instead of opening in a new window. How does one go about this?
    Help a Dreamweaver damsel in distress?

    Nevermind, I got my answer elsewhere. For anyone who wants to know:
    When you declare your iframe, be sure to give it a name, like this:
    <iframe src="somepage.html" name="myframe"></iframe>
    Then in your link itself, give it a target of the name of the iframe:
    <a href="PageToAppearInTheIframe.html" target="myframe">Link Text</a>
    or simply define the frame in the target box while the link text/image is selected.

  • Several pages only on one paper

    Hi expert
       In the print preview, there are several pages displayed, but when I try to print on the paper, all the pages are printed only on one paper and it leads to overlap. It looks ugly. Anyone can help me with that, thank you very much. By the way I use smartform.
    Alex

    If your problem was with Adobe forms, i would recommend you to check the subforms content to be flowed. But this is not likely in this forum, right? Good luck ,Otto

  • HP ENVY 4500 fails to print lower half of last page of series

    When printing a document over several pages my ENVY 4500 fails to print the lower half of the last page to be printed. Because pages are printed in reverse numerical order, this is in fact page 1 of the document.

    Try installing the Microsoft patch for the WSD service.  http://support.microsoft.com/kb/3000461
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • Hi, i created and bought a 74 pages book on iPhoto that costs me around 96 euros. It was delivered with a all 2 pages badly printed. It is not acceptable that there is no quality control at this level of price.I am very disappointed and wo't buy again!!!

    hi, i created and bought a 74 pages book on iPhoto that costs me around 96 euros. It was delivered with a all 2 pages badly printed. It is not acceptable that there is no quality control at this level of price.I am very disappointed and won't buy again!!!
    except this major point i must admit the quality is quite good , but a bick lack of quality control and a customer disapointed at the end.
    On the internet site it is not possible to send it back. So apple doesn't want to take in account that they mail sometimes fail, and want to satisfy their customer, because you have no other choice that accepting it.
    best regards

    Yes it is returnable.
    http://store.apple.com/us/help/returns_refund
    That's for the US, there's a similar one for your country.

  • How to print a Vbox container with several pages

    I need to print a Vbox container that contains severval pages
    of content with .5 inch margins and a footer with the page number.
    The content is created from htmlText coming from several reccords
    in a MySQL table. I have been able to print the content using
    FlexPrintJob across multiple pages, but the print fills the entire
    page with no margins and the footer only on the last page. How can
    I best do this?

    I had a similar issue, here are some tips:
    Check Flex's example for printing a PrintDataGrid in mulitple
    pages (
    http://livedocs.macromedia.com/flex/2/langref/mx/printing/PrintDataGrid.html
    or in the Printing chapter of the Flex Developer's Guide), that
    will give you an idea of how to handle the footer and the header.
    Now about the margins you will have to do it manually, i
    can't think of any other solution for that.
    If you still have doubts, let me know about it, trying to be
    as specific as possible

  • Preview : error while printing several pages per sheet

    I have a pdf file from which I would like to get a pdf with several pages per sheet. I cannot do that using acrobat through printing into a pdf file because it tells me to save it first ! So, as I did before upgrading my OS from SL to Lion, I tried to do it with Preview. The problem is that I get the following message "Error while printing" and no more information.
    - I tried with an other pdf file and I got the same problem.
    - Printing one page per sheet is OK, either into a pdf file or to an actual printer.
    - Printing several pages per sheet from Acrobat to a printer is working fine.
    - I asked to a colleague who is still using SL to do the same procedure with my file and it worked fine.
    My conclusion is that there is something fishy with Preview under Lion.
    Does anyone get into the same trouble than me ? Is there a solution even an alternative one ?

    In the printing configuration window, I selected Layout and then 2 pages per sheet, save in Pdf, select a directory and name then save. At the end of the process, I got the printing error message. Looking at the /var/log/system.log, I got an error message concerning PMSessionEndDocumentNoDialog() returning 1282.
    I am using past because I do not have the problem anymore. My MBP is a bit funny since the Lion upgrade. It looks like windows : from time to time, I get the black screen telling me that I should press the switch on button (like the famous blue screen).
    I am suspecting that XQuartz (last update) is messing-up somehow my laptop (system crashes happened when it was launched or even when it was starting).
    Thanks anyway.

  • Front end printing with control technology problem with Mac platforms

    Hello,
       We are looking into replacing Host Spool Access method "F: Printing on front end computer" with the newer "front end printing with control technology" but are running into an issue.  Our Mac platforms cannot print duplex nor print multiple pages per side using the new technology.  We have followed SAP's recommendation to use the POST2 device type but it still won't allow full printing functionality.  Has anyone run into this and if so how did you overcome it?
    Thanks and Regards,
    Rich

    Hi Rich,
    I've had success getting duplex printing through "front end printing with control technology" with the Mac SAPgui as follows:
    In the Mac SAPgui, go to the Preferences window and select Printing (i.e. Preferences -> Desktop -> Printing).
    In the "Media sides" pull-down menu, select one of the "two-sided" choices (such as "two-sided-long-edge").
    Click the "Save" button at the bottom of the window (near the right hand side.
    Print to a Front end printer.
    I haven't figured out how to get n-up printing.
    /David Rosenberg

Maybe you are looking for

  • Can't print in color from iPhoto

    When I try to print a photo from iPhoto, using my color printer, I get a black & white print (not even greyscale). I can print in color from other applications, just not from iPhoto (but I think I used to print in color from iPhoto). Any clues out th

  • HT4427 installing a hard drive on my macbook.

    How do I install a internal hard drive in my mac book.

  • Can't get good MySpace access with Safari on my MacBook

    I'm sure this isn't related to my MacBook, but when I access MySpace the videos and many graphics don't come up. The MacBook is brand new, so I'm sure nothing's wrong with it. Any suggestions on fixing this? Thanks.

  • UTL_FILE vs Oracle Tables

    Hi Oracle Gurus, I have a question, My team is using UTL_FILE to write process logs to physical files. My thinking is that if they use Direct tables to Insert process log its going to be faster compared to UTL_FILE. Am I right to think so? Thanks, Fa

  • NEED HELP WITH RUNTIME ERROR!

    I have recently formated my laptop and installed Adobe Reader. Every time I try to open a .pdf I get the message below: Runtime Error! Program: c:\program files\adobe\reader 9.0\readeacroRd32.exe This application has requested the Runtime to terminat