Smartforms Multiple Page Printing

Hi Guys,
I know this could be regular posting from others but it seems that i can't any solutions around.
The Problem is about printing multiple copies from Billing Document at a time. What user requested was to have the word "Original" in the first copy and the subsequent copies will have the word "COPY". i know that this can be done in SAPScript by modifying the print program but how about Smartforms???
I tried NAST (IS_NAST) table as passed by smartform but the field ANZAL seemed to return '2' when i need 2 copies. How do i know when is printing the first copy and when is printing the subsequent copies? any status from any tables indicating i am printing the first or the subsequent copies? Tried NACH but it didn't help much neither....
Please help!!!!!! Thanks a lot....
Cheers,
Andrew

Ok,
so  transaction SMARTFORMS
set the name, press CHANGE
Select Form Interface (in the tree)
You are in the Import parameter, you have to create one import parameter. Choose a name for example WV_TYPE, with assignment TYPE and reference CHAR1.
After this just generate the function module.
And now, when you will show the new function module you have the WV_TYPE parameter that is present.
So, in the Text_Element or anything else you just have to set in the Conditions the test  WV_TYPE = 'X'   to display this Text_Element
I hope it's clear (sorry for my english)
Frederic

Similar Messages

  • Light room 5.0 multiple pages printing issue

    I'm facing strange issue with multiple pages print from Light Room to Pixma Pro-10 using Canon IJ XPS driver. (OS Win 7)
    Every time when I want to print multiple pages, second and all others are shifted to green. It's also seen on Preview page - see below
    View: original size
    It's a print of two exactly same images (created by virtual copy in Lr) only difference is a printing order (seen on bottom left) if I swap  the printing order results is the same - second print is shifted.
    Even if I make 8 copies of the same image and print it - 4 per page (2x2 pattern) all images on the first page is ok and all on second page are shifted.
    I can'not imagine where should be a problem. Image is in sRGB color space. Color management managed by printer. Printing from other applications (tested with Irfan and ACDSee) seems to be OK.
    It's not a startup problem - I already print numerous images without issue - its should be faulty settings somewhere - but I'm not aware of any color related settings change.
    Disabling preview didn't help - second and next images are shifted
    Color management in LightRoom is set to Managed by printer - which gives excellent results (for the first image)
    Any other settings produces much worse images.

    Some thoughts that may or may not be of any help:
    1) To me the "green" image looks desaturated like a ProPhotoRGB image that is being printed with an sRGB profile.  All images in LR have internal color numbers that have ProPhotoRGB-sized colorspace but a different gamma, irrespective of what the source image had for its colorspace, so the way you have things set, I would assume that LR is sending raw ProPhotoRGB-like data and the printer is doing a conversion, but erroneously only for the first page, somehow, whereas any other program that prints is sending sRGB data and it works every time.
    2) What color management settings do you have set on the printer?  Are they some sort of Automatic color or have you set a specific color profile to match the paper?
    3)  What happens if you have LR manage the color with a paper-specific profile set in LR and set the printer not to manage color?  Does the first page print differently, then?  Create smallish-sized prints on each page so as not to waste ink.  This is the way I'd have LR and the printer setup, with LR doing the color-management and the printer not.  You haven't said how you have your printer settings, so something that could be happening is LR is expecting the printer to do the color-management and the printer is expecting LR to be doing it, so its not working right.
    4)  A first page printing differently than the others can be a setting in the printer, to handle a cover-page differently than the rest, because it has different paper.  I have no experience with your printer, but you might look to see if there is such a setting.
    5)  You haven’t said if you’re using any LR printing layout preset or not.  If so then try printing without having selected one or select a completely different, standard one, and see if the problem clears up.
    6)  LR will remember the last printer and printer-driver settings that you used, so if the driver is updated but LR is remembering settings for the previous driver, then things can get messed up.  You can try uninstalling and reinstalling the printer drive.  You can try installing another copy of the printer driver using a different name for the printer, that way LR’s saved settings shouldn’t be associated with that new name.
    7)  As a last resort, and only after reviewing various preferences you have set in LR, you can try to reset LR’s preferences, in case something is corrupted and causing problems.  The way to reset the preferences is to exit LR and rename the preferences file to something without an .agprefs extension, then restart LR.  If renaming doesn’t seem to be working, then move the .agprefs file to your desktop, temporarily.  You can delete the preferences file, but it’s safer to rename it or move it, in case it doesn’t fix the problem, then you can rename or move it back and have all your old preferences back, instead of recreating all the non-default settings.  The Preferences file location along with many other things, is documented here:
    http://members.lightroomqueen.com/Knowledgebase/Article/View/1373/205/lightroom-5-default- locations
    Finally, is there a reason you’re using LR 5.0 rather than one of the newer versions, in case 5.0 has a bug that has been fixed in subsequent versions?
    Various LR versions can be follow by clicking on the Windows/Mac link under Lightroom down near the bottom of the center column of the Adobe Updates page: http://www.adobe.com/downloads/updates

  • Printing Problem - Incomplete multiple page print job - until paper runs out

    I'm on Mac OS 10.9.3 printing to a Samsung CLX-6250FX. This is a network printer used by all the Apple/Window computers in this office.
    I am having terrible problems recently with printing multiple page documents - excel, word, email, pdf etc. I am spending a fortune in paper and printer cartridges.
    The print job does not complete and the last page printed, the following message prints:
    ERROR: syntaxerror
    OFFENDING COMMAND: true        cvt      Tfpgm     nglyf      '   ^  head
    STACK:
    -mark-
    /sfnts
    Then the same printer job restarts and fails at the same point until the printer tray runs out of paper (unless the print job is aborted and/or the printer is turned off and turned on again)!!
    The specific error message displayed by the printer software is either "Remote host did not accept data file (32)" or "Remote host did not accept data file (105)".
    I haven't seen any pattern whatsoever in terms of application used.
    I have deleted the printer and reloaded the driver from the disk supplied with the printer. I have checked to see that I am running the most recent driver.
    I've already reset the printing system, but that didn't fix it.
    I have seen this problem on various support communities pages, but for different printers.
    I have yet to see a solution - Any other recommendations please?

    The error message you see printed is a Postscript error. With your printer, postscript (normal output type from applications) is converted to the printer's page description language before being sent to the printer. So, I believe the problem is in some part of the driver software.
    For first step, I would try restarting from the Recovery partition and repair the hard drive using Disk Utility. You can repair permission, too. This is trying to correct a corrupted file.
    http://support.apple.com/kb/ht4718
    (just read the first paragraph)
    If that doesn't fix it, I would try downloading and installing the latest driver for the printer.
    Come back for more if that still doesn't work.

  • Multiple page printing!!! help needed

    hi,
    Another problem to solve. How the hell I can print multiple pages. If my frame is too large I want it to print on multiple pages. I tried different things but doesn't work. Please help me out in this too. I have included a small code currently it is prinitng one page only. But I need to print multiple pages if the display is too large to fit on one page.
    sample code that I am using
    PrinterJob printerJob = PrinterJob.getPrinterJob();
              //Calls painter to render the pages. The pages in the document to
              //be printed by this PrinterJob are rendered by the Printable object,
              //painter. The PageFormat for each page is the default page format.
              printerJob.setPrintable(this);
              //Presents a dialog to the user for changing the properties of the print job.
              if ( printerJob.printDialog() )
                   try
                        //this print() method implements the Printable interface
                        printerJob.print();
                   catch (Exception e)
                        e.printStackTrace();
    public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException
         if (pageIndex >= 1)
              return Printable.NO_SUCH_PAGE;
         Graphics2D graphics2 = (Graphics2D) graphics;
         graphics2.translate(pageFormat.getImageableX(),
         pageFormat.getImageableY());
         //prints the selected frame only
         selectedFrame.paint(graphics2);
         return Printable.PAGE_EXISTS;
    }

    I used to ask similar question when I starting using Java printing APIs. Is is useless to ask such general questions.
    There is no magic pill. There is no way your program knows how many pages to send to printer - you need to tell your program everything about it. Spend some time and do some research, you will figure out by yourself. Good luck.

  • Turn off multiple page print - Adobe 11.0.4

    Hi:
    After printing multiple pages on one sheet of paper I am not able to find how to revert back to printing a single page on one sheet other than entering 1 by 1 next to custom. Any suggestions?

    Hi Dave,
    OK I’ve downloaded your  file and installed. The option Remove Security appears under the Encrypt action only if I have a file open and it will indeed remove the pw from that file and allow me to save back to the same file name. However I don’t see an option to add multiple files to the action, and if no file is open, the action is dimmed out. This is my last hurdle to getting this job done; can you point me in the right direction?
    Gail

  • Problem in multiple page printed (SAP Script )

    Hi Experts ,
    In SAP Script print ,
    First page print is perfect on preprinted stationary ,but
    Second page data is getting printed 2-3 cm up.
    Please tell me various reason for this ...
    Thanks
    Sonal

    Hi Sonal ,
    This happens with your predefined stationary .
    Are you declaring it in the same window where your declaring your data ?
    If yes, Try taking another variable window and keep all your predefined sationary there and then call it evry time you call your window with data .
    Or, It can be with the Text element try giving 2 empty lines before the text element it solves your problem!
    Hope it helps!
    Much Regards,
    Amuktha .
    Edited by: Amuktha Naraparaju on Feb 9, 2009 9:57 AM

  • Need Help in Smartforms - multiple pages

    Hi all,
    I have developed a Smartform in which i have 2 PAGES.
    in the First Page : there are many windows .
                               Due to space crunch , i can only print a single line / first record alone in the Main       Window. the size of the MAIN window is also small .
    then i have specified the PAGE2 as the NEXT page.
    In the Second Page i have to print the other remaining data in the MAIN WINDOW.
    the problem i am facing is :
    1. I cant have a MAIN WINDOW in the FIRST page because we cant have a MAIN page if we are going to specify PAGE2 as the next page. Due to this reason i have no MAIN WINDOW in the FIRST PAGE. IN the PAGE2 i have placed the MAIN window.
    2. How to make the remaining data print in the PAGE2. I am able to print the first record in the FIRST page.
    Kindly tell in the steps i have to follow , to PRINT THE FIRST RECORD IN THE FIRST PAGE AND THE REMAINING DATA IN THE SECOND PAGE.
    Thanks and Regards,
    Vikki.

    Hi,
    Please declare window(Not main window) in first page, Display one record in first page,
    and declare main window in second page give remaining entries in second page.
    Just now i have checked, it is working perfectly as per above solution.
    Regards
    Jana
    Edited by: Janardhan Reddy on Sep 22, 2008 12:40 PM

  • Multiple Page print

    Dear Experts,
                       I am all the Data's Move  Smartforms in One  Internel Table. Name is IT_EKPO1.(Available in SF) In my Itab is one PO NO->Different Material> Same Address.
    reference: for eg:
    PONO            MATNR     ADDRES         QTY
    10                   lofg           cccc                5
    10                   lidf            cccc                10
    20                   jid              ttttt                 3
    40                   jfdi             dddd                6  This Format.
    My Requirement is Each PONO Should be print SEPARATE PAGE. That is
    10----
    >I page
    20----
    >2 page
    40----
    >3 page.
    Form Design is  THIS WAY PRINT
    PO NO :10  --->secondary window1
    Adress : cccc---> secondary window2
    details: (TABLE FORMAT)---->main window.
    sno    matnr           qty
    1        lofg               5
    2        lidf                10
    when PONO 20 ABOVE FORMAT Print Second page.AND get the Details of PONO 20.
    ASP.
    warm Regards,
    raj.

    place the cursor on main window of the 1st page...
    right click ->create>flowlogic-->command.
    in that command ...
    check the checkbox goto next page and give the page that u want and in the condition tab specify the condition that u want to trigger the next po...

  • Multiple page print dialogue / warning

    Good day!
    I'm working on a 50-page form in which the user only needs to print a few pages at a time.  Numerous times we forget to select which pages in the print dialogue and end up sprinting to the printer and mashing the cancel button.  Possible solutions:
    When user clicks the Print button on the form, a dialogue appears asking which pages user wants to print.
    When user does not select specific pages to print, a warning appears asking, "Are you SURE you want to waste a ream of paper?"
    In the form's table of contents (on the first page) have check boxes next to each page name, so user can select the pages that will print.
    I am a cut and paste Javascripter at this point.  Thanks for reading and for any help you are able to provide.
    Cheers~!
    Software:  Adobe Acrobat XI Pro

    But
    For I As Integer = 0 to DataGridview1.RowCount - 1
    is the iteration of DataGridView1's data
    if i use 
    For I As Integer = panjang To DataGridView1.RowCount -1
    The result could not retrieve all the data from DataGridView1
    panjang is use for indicator for if it reach some number, generates new pages

  • Issue converting to PDF - multiple smartforms / multiple page types

    Hi Experts!
    I am facing a problem converting a Smartform output to PDF.
    There are 2 pages in the Smartform - The Invoice Summary and Invoice details(line items) for a vendor.
    It works fine if the PDF Conversion is done for one vendor. The smartform is converted and the PDF has 2 pages.
    But when I try the same for 10 vendors, I get 10 x 2 = 20 pages, but the first 10 pages are Invoice Summary for the 10 vendors, followed by 20 pages of Invoice details.
    Note: I am removing the "//" before EP in the OTF and apending it, before trying OTF to PDF conversion.
    Any ideas/suggestions?

    Code erro. fixed the issue

  • Multiple Page Print using e.HasMorePages [VB 2010 Express]

    What I want to do is to print all data from DataGridView1, when it reach the bottom of the page (i use variable panjang to compare), it will generate new page and then continue print the page from the DataGridView1 iteration.
    From My Code, it generates unlimited pages(loading pages forever), when I cancel it, all the page is same (print from the first row until the vairable panjang end it)
    Dim p As Pen
    p = New Pen(Brushes.Black, 2.5)
    For i As Integer = 0 To DataGridView1.RowCount - 1 Step 1
    For ic As Integer = 0 To DataGridView1.ColumnCount - 1 Step 1
    e.Graphics.FillRectangle(Brushes.DarkGray, New Rectangle(lebar, panjang, DataGridView1.Columns(ic).Width, DataGridView1.Rows(i).Height))
    e.Graphics.DrawRectangle(p, New Rectangle(lebar, panjang, DataGridView1.Columns(ic).Width, DataGridView1.Rows(i).Height))
    hasil = DataGridView1.Rows(i).Cells(ic).FormattedValue.ToString
    e.Graphics.DrawString(hasil, font2, Brushes.Black, lebar + 0.12, panjang + 0.12)
    lebar = lebar + DataGridView1.Columns(ic).Width
    Next ic
    panjang = panjang + 20
    lebar = 20
    If (panjang = 800) Then
    e.HasMorePages = True
    panjang = 40
    lebar = 20
    Exit Sub
    End If
    Next i
    e.HasMorePages = False
    Please help me, thanks...

    But
    For I As Integer = 0 to DataGridview1.RowCount - 1
    is the iteration of DataGridView1's data
    if i use 
    For I As Integer = panjang To DataGridView1.RowCount -1
    The result could not retrieve all the data from DataGridView1
    panjang is use for indicator for if it reach some number, generates new pages

  • Any way to get more than 100% zoom on print jobs when printing multiple pages?

    I know how to increase the size of a print job, when I am printing one page at a time. But when I go to print 2 pages at once (the multiple page print function), there are always large margins around the page. I'm ok with saving paper and printing up two pages, but it seems silly to see small print and wide blank margins. Is there any way to increase the print zoom, when printing multiple pages per sheet of paper?

    I once overshot the limit by marking too many photos to fit within 99 pages, but I could never figure out how to fool the application and had to give up trying to add those 14 extra photos.
    I asked a friend (who practically lives in Terminal) if he had any way of modifying that limit, but he reminded me that if their printing services are set up to bind books and bill for only 99 pages, fooling the application might be useless if the service only prints me a 99 page book and discards the additional pages.
    I can understand that you wouldn't want to let people print 1000 page books, but I sent feedback anyway to allow me to increase the limit. Anyone know of any service that lets you print beyond iPhoto's limits?

  • I can't print Multiple pages in FF6 – clipping off content after page 1. I have thrown out firefox completely off my imac and re-installed... still does not print correctly. How do I fix this?

    After upgrading last week, i can no longer print multiple page print outs off of any website, without the secondary pages clipping off content. Page 1 prints fine... the remaining pages do not.
    pages print fine in both safari and chrome...

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • Error in smartform when printing multiple pages

    Hi,
    I m using a smartform which have two pages in it,
    i m able to save and activate it without any error message and when i run the function module generated to chk my smartform
    it runs fine and diplays two pages i m using.
    but as i m attaching this form with my driver program it is giving an error message while running . the error message is " No other output defined in main window."
    Please help me out to resolve the issue.

    Re: error in smartform when printing multiple pages
    dharani tadikonda
    Thanks for this answer. It is absolutely correct.

  • How to print multiple pages in single spool in smartforms

    Hi all,
      I have a issue on to print multiple pages in single spool,i can able to print multiple pages in multiple spool .I am doing Check Print smartforms in that i need to print Multiple pages in single spool.Currently i am using the below code please help to solve this issue.
    IF gv_tabix = 1.
    lwa_outp_option-tdnewid = 'X'.
    ELSE.
    lwa_outp_option-tdnewid = ' '.
    ENDIF.
    Thanks,
    Deesanth

    Hi
    TABLES: spfli.
    DATA:
      t_spfli type STANDARD TABLE OF spfli.
    DATA:
      fs_spfli TYPE spfli.
    DATA:
      w_form TYPE tdsfname,
      w_flag TYPE i,
      f_nam TYPE rs38l_fnam,
      w_input TYPE ssfcompin,
      w_control TYPE ssfctrlop.
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
    SELECT-OPTIONS s_carrid FOR spfli-carrid.
    SELECTION-SCREEN END OF BLOCK blk .
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
      p_single RADIOBUTTON GROUP rad1,
      p_ind RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK block1.
    START-OF-SELECTION.
    PERFORM display_data.
    PERFORM ssf_function_module_name.
    PERFORM spool_request.
    *& Form display_data
    * text
    * --> p1 text
    * <-- p2 text
    FORM display_data .
    SELECT * FROM spfli INTO TABLE t_spfli WHERE carrid IN s_carrid.
    ENDFORM. " display_data
    *& Form ssf_function_module_name
    * text
    * --> p1 text
    * <-- p2 text
    FORM ssf_function_module_name .
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING formname = ' '
    IMPORTING fm_name = f_nam
    EXCEPTIONS no_form = 1
    no_function_module = 2.
    * IF sy-subrc NE 0.
    * MESSAGE 'Form cannot be displayed' TYPE 'E' .
    * ENDIF. " IF sy-subrc eq 0
    ENDFORM. " ssf_function_module_name
    *& Form spool_request
    * text
    * --> p1 text
    * <-- p2 text
    FORM spool_request .
    w_input-dialog = 'X'.
    CALL FUNCTION 'SSFCOMP_OPEN'
    EXPORTING input = w_input
    EXCEPTIONS error = 1.
    *" LOOP AT t_spfli .....................................................
    LOOP AT t_spfli INTO fs_spfli.
    w_control-no_open = ' '.
    w_control-no_close = ' '.
    *"Single spool request..................................................
    IF p_single EQ 'X'.
    w_control-no_open = 'X'.
    w_control-no_close = 'X'.
    ELSE.
    *"Individual spool request.............................................
    IF w_flag NE '1'.
    w_control-no_open = 'X'.
    w_control-no_close = ' '.
    w_flag = 1.
    CALL FUNCTION ' '
    EXPORTING control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    endif. " IF w_flag ne '1'
    ENDIF. " IF p_single eq 'X'.
    CALL FUNCTION ' '
    EXPORTING
    control_parameters = w_control
    fs_spfli = fs_spfli
    EXCEPTIONS formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4.
    ENDLOOP. " LOOP at t_spfli into ...
    *&This function module close the spool request *
    CALL FUNCTION 'SSFCOMP_CLOSE'
    EXCEPTIONS error = 1.
    ENDFORM. " spool_request
    Regards,
    Sravanthi

Maybe you are looking for