Print 2 different copies of sapscript

Hi
I want to print 2 copies of form in sapscript but with title for the first print "Oryginal" and for the second
"Copy". How to do it with one click "Print" and without 2 different forms. This tittle must be dynamical depends from which is printing document (1-st or 2-nd).
Parameter tdcopies isn't good for this

Try this.....
loop 2 times.
if sy-index =1.
heading = original
elseif sy-index =2
heading =copy
endif.
open_form
write_form
close_form
endloop.

Similar Messages

  • After moving to Lion, I can no longer print multiple different images on a single page as before when I select "copies per page". Is there any way to regain that ability?

    In systems prior to "lion" when I wanted to select and print multiple different imagews per page, I could select the number I desired in "copies per page". Now when I select a number in "Copies per page", I get that number of a single image instead of 1 of each each different image. Is there a way around this?
    Thanks,
    Tom

    Chances are no one who saw your question knew the answer.
    Unless you're willing to share the answer you found here, then anyone else like you searching for the problem who comes across this thread will also be unable to thank you for providing the answer too.  

  • Printing different/selective files with different copies

    Hi everyone,
    I've been working on finding a solution, on how to print different pdf files with different copies, without opening the pdf-files.
    Task:
    I have a folder, with 25 pdf files
    I want to make a php overview, of the folder
    At the end of each line/file - i would like to add a number for the copies
    In the end, I would like to simply press print - and every document ive added a number/copies to - are being printet...
    I guess I need to use PrintPDF - but does anyone know any pre-made program/function - that could handle the "copies" part...?
    I hope someone can help me out,
    Thanks
    Jan

    Well, i had hoped that the acrobat could open silent - eventhough they've removed that feature in the newer versions.
    Even though the program would open - if the amount of copies was added - and i just hat to press print - it would ease the job alot.

  • Number of different copies to be printed in smartform

    Hello,
    I have developed a smartform with 3 different pages, now when i give a print command , the first page should print 2 number of copies , second page should print 3 number of copies and the third page should print 4 number of copies.
    Is it possible in smartform, if so how?
    Thanks and Regards
    A

    hi,
    for printing different copies u have to use loop in main window and check for the condition for number of page.
    and den after printing all the values in mainwindow put command node and mention page no say page1 in urcase there put condition fr watever amount of repeated copies u want ex 2 in ur case.
    then once 2 times page 1 has been printed put a commad for goto page 2 and loop accordingly for the no of time u want
    then for the third page.
    hope this will help u .
    regards,
    prashanti

  • Photosmart C4580 "stuck" printing about 20 copies of each when I only asked for 1!

    Hi,
    I am baffled and I need to fix this problem soon!  I need my printer.  All of a sudden, my printer started printing about 20 copies of each item when I only asked for one!  This not only uses a lot of ink, but wastes a ton of time, for the little of time I have put up with it.  Lately, I have just shut it off.  Please - any suggestions??  I thought of uninstalling and reinstalling, but I can't find my disk!  Thank you,  Soly

    Did you ever find a solution for this problem? I have no problem printing the business cards out on a Canon printer, or a different HP printer I used to have, but the D110 is nothing but a pain in the you know what !  I'm using publisher and the avery 8371 card stock,  I searched solutions for days and did everything possible but still they're not printing correctly!! I'm dissapointed in this printer, every time I have a problem with something it always seems to be an HP product!!!  Very frustrating because I never had to mess with any settings in the other printers I had, I would just put the file in, change the quality and click the print button with no problems. I'm ready to throw this printer out the window Anyway thanks in advance and I hope somebody can help me with this issue !!! 

  • Print 2 different forms to 2 different printers 1 ABAP program

    Is it possible to print 2 different forms to 2 different printers from one program?
    Example: a Shipping invoice and a Shipping Label (mailing sticky label)
    Could they be a combination for form types? SAP Script and SMARTFORMS, SAP Script and PDF, SMARTFORMS and PDF
    I have a need to print a Shipping Invoice and Label from a single program. I need to beable to print multiple copies of the label at the same time for multiple shipping packages. i.e. 1 of 4, 2 of 4 etc.
    The users want to select print a single invoice and the neccessary labels from a single transaction request.
    Ken

    Hi,
    Could you please see the program RLVSDR40.
    Thanks,
    Abhijit

  • I am using a MacBook Pro and am trying to print double sided copies on the HP Deskjet 3054 that came with it. Can anyone tell me how to do this?

    I am using a MacBook Pro and am trying to print double sided copies on the HP Deskjet 3054 that came with it. Can anyone tell me how to do this? I am a total MacBook nube and can use any help you may offer! Thank you so much.

    How you enable double-sided printing can depend on the applications from whick you wish to print. Example: if I print to my HP PhotoSmart  from Safari, I get this print dialog box:
    (Edit: OOPS! Note that I forgot to switch printers when i took the scene-shots, so ignore the "Brother" reference. It's should look the same for your HP.
    Note the selection labled "Safari" near the bottom. If I change that form "safari to "Layout: I get this:
    Note the option for two-sided printing appears for your selection. If I print from Word, the box is different:
    The "Copies & Pages" option can be changed to "Layout" when you click it, again allowing the selection of two-sided printing.
    If you tell us what applciaiton is vexing you, we may be able to give better-focused information.
    A

  • InDesign CS6 print number of copies issue

    Hello!
    I have a document that I needed 25 copies of, so I set the # of copies to 25 and off it went. No issue. However, now when I go to a different doc and I print, the # of copies stayed at 25 when I only needed 1. I have to remember to change the # of copies every time I go to print. I was wondering, if there is a preference or setting within the print options for InDesign to return each doc back to 1 copy instead of keeping the previous # of copies?
    Thanks!

    Eugene,
    Oh, ok. That's a bummer. Oh, well, lol. Thanks anyway!

  • Each page to be printed with multiple copies

    I have the following requirement:
    Each page of a document has to printed in the following way:
    at first the page is printed on paper from the standard paper tray
    then the same page is printed on special paper from a second paper tray.
    The print controls for the paper trays are clear.
    The problem is to print each page multiple times
    and to feed the paper from different trays for the different copies.
    And to get it sorted in that order!
    And to get it in one spool item.
    Is there a solution with SAP-Script/Smartforms or any other way?

    Frank,
    Pls look carefully this code which meets exactly your requirement.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                EXPORTING
                  formname           = w_form
                IMPORTING
                  fm_name            = w_fmname
                EXCEPTIONS
                  no_form            = 1
                  no_function_module = 2
                  OTHERS             = 3.
              IF sy-subrc <> 0.
                MESSAGE e899(5at) WITH 'Smartform call fails'.
              ENDIF.
              CALL FUNCTION w_fmname
                EXPORTING
                  control_parameters = ls_control_param
                  wa_vbrk            = wa_vbrk
                  wa_adrc            = wa_adrc
                  wa_j_1imocomp      = wa_j_1imocomp
                  wa_kna1            = wa_kna1
                  l_consignee        = l_consignee
                  l_name_co          = l_name_co_e
                  wa_adrc_l          = wa_adrc_l_e
                  l_j_1icht1         = l_j_1icht1_e
                  l_grnd_pcs         = l_grnd_pcs_e
                  l_grnd_fa          = l_grnd_fa_e
                  l_amtsum           = l_amtsum_e
                  wa_j_1iexchdr      = wa_j_1iexchdr_e
                  l_vbelv            = l_vbelv_e
                  l_wadat_ist        = l_wadat_ist_e
                  wa_j_1imocomp_l    = wa_j_1imocomp_l_e
                  l_name1            = l_name1_e
                  l_traid            = l_traid_e
                  wa_j_1imocust_l    = wa_j_1imocust_l_e.
    FORM set_print_param  CHANGING cs_control_param TYPE ssfctrlop.
      DATA:    ls_itcpo     TYPE itcpo,
               cf_retcode   TYPE sy-subrc,
               lf_repid     TYPE sy-repid,
               lf_device    TYPE tddevice.
      lf_repid = sy-repid.
      CALL FUNCTION 'WFMC_PREPARE_SMART_FORM'
        EXPORTING
          pi_nast             = nast
    *     PI_ADDR_KEY         = ' '
    *     PI_COUNTRY          = ' '
          pi_repid            = lf_repid
    *     PI_SCREEN           = ' '
       IMPORTING
          pe_returncode = cf_retcode
          pe_itcpo      = ls_itcpo
          pe_device     = lf_device.
    *      pe_recipient  = cs_recipient
    *      pe_sender     = cs_sender.
      IF cf_retcode = 0.
        cs_control_param-device      = lf_device.
        cs_control_param-no_dialog   = 'X'.
        cs_control_param-preview     = xscreen.
        cs_control_param-getotf      = ls_itcpo-tdgetotf.
        cs_control_param-langu       = nast-spras.
      ENDIF.
    ENDFORM.                    " set
    FORM sub_fill_copy .
      IF w_juri = 'KOLKATA'.
        t_copy-copy = 'ORIGINAL FOR BUYER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'DUPLICATE FOR TRANSPORTER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'TRIPLICATE FOR ASSESSE'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
      ELSEIF w_juri = 'BEHROR'.
        t_copy-copy = 'ORIGINAL FOR BUYER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'DUPLICATE FOR TRANSPORTER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'TRIPLICATE FOR ASSESSE'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
      ELSEIF w_juri = 'RUDRAPUR'.
        t_copy-copy = 'ORIGINAL FOR BUYER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'DUPLICATE FOR TRANSPORTER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'TRIPLICATE FOR ASSESSE'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
      ELSEIF w_juri = 'MON'.
        t_copy-copy = 'ORIGINAL FOR BUYER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'DUPLICATE FOR TRANSPORTER'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'TRIPLICATE FOR ASSESSE'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
        t_copy-copy = 'EXTRA COPY'.
        APPEND t_copy.
        CLEAR  t_copy.
      ENDIF.
    Amit.

  • Prints unwanted multiples copies

    Printer: Officejet 6500 (wireless network connection)
    OS: Windows 7
    Sometimes when I send a job to the printer it prints multiple copies.
    It is totally random and I haven't been able to determine a pattern. It happens from different programs, but not always.
    As an example last week I came to the HP site and saw the notice about the forum today. I decided to print it to have as a reminder and I stoped the printer after 3 copies.
    Usually it prints 2, but sometimes 3 - and of course, sometimes just 1.
    I have check to make sure that when sending the order to print it only says one.
    Any ideas?
    Thanks

    Have you tried the solutions on this thread?
    regards, CF
    I work for HP and hope to make your day Sproutastic!

  • Print layout different with crystal report 2008 runtime

    Hi,
    I have reports which I print on a pre printed stationary. With Crystal report 11.5 run time it works fine.
    Now I am using Crystal Report 2008 run time and with this I found that layout on the print is different than the actual layout in the design.
    The print with CR 2008 run time is not exactly matching with the pre printed stationary. Whereas it is working fine with the 11.5 run time.
    Can anyone please help?
    Thanks,
    Abhijit Gorhe

    hi,
    you can verify the settings
    File -> Page Setup
    - Printer Options
    - Page Options
    - Margins
    Regards,
    Vamsee

  • How can I print mulitple different .ai files onto one page in Illustrator CS6?

    How can I print mulitple different .ai files onto one page in Illustrator CS6? I have all of the files organized by Arrange Documents>Tile All in Grid and I would like to print the files in this format so that they can all be seen at once when printed out onto one page.
    Some background is that I have 16 different cad drawings that I have converted and edited in illustrator. I'd like to basically make a contact sheet with all 16 drawings so that they can be reviewed on one sheet of paper after printing. But each drawing is in it's own unique file, and I have not figured out how to put them all onto one page for printing.

    You can place them (linked) into a new Illustrator file and print from there.
    The original files will need pdf compatability.

  • How to print two different multiple pages in smart forms

    Hi All,
    In my form iam printing 12 different pages.In that 11th & 12 th pages are having two different formats and if more records are there for each page i have to print more similar pages.For 12th page iam using main window in that by using command and table nodes iam printing similar pages for 12th one.
    But come to 11th page i don't have more than one main window in my form.So iam unable to use the command node.
    Can anybody help regards to this problem.
    Regards,
    Srinivas Reddy.Ch

    hi Srinivas..
    u don't have multiple main windows in smartform but we can us the same window for multiple number  of pages...
    wht u need to do is use the CONDITIONS Tab of every node..
    in the check <b>only on page</b> PAGE11.. for the node u want to trigger in page11 and for other node <b>only on page</b> PAGE12 for the node u want to trigger in page12.
    i hope it is clear now.. let me know if u want more clarification.
    Please Close this thread.. when u r problem is solved. Reward if Helpful
    Regards
    Naresh Reddy K

  • Can I print to different paper sizes with AirPrint and Safari?

    I am the organizer of a trade show coming up.
    We are using a web based registration system for attendees.
    To print the attendee badges, we simply log in to the site through the net, and print them.  I have an HP CP1525nw loaded with 3x5 index cards that will slide into the badge holders.
    When printing from the Mac, I simply go to Page Setup, set the paper size and orientation and print.   It works great.
    However, we would love to use iPads for our registration staff.  Not only are they less expensive, but they are portable, and totally wireless.   We can access the site just fine, and the badges show great on the screen.   The website generates the badges as a .pdf file and they load into the browser.
    When printing from the iPad, the badges print HUGE, filling an entire 8.5x11 size page.   With the 3x5 card stock loaded in the paper tray, they still print huge, only showing the portion of the badge on the 3x5 card in the location it would be had there been letter size paper in the tray.
    Any ideas?
    I've considered formatting another badge for letter size, and having it print only where the 3x5 card would fall... but that is a huge tweak that I think should be unnecessary.
    How do I print to different size paper from my iPad?
    Thanks for the help in advance.
    --Brian

    Thanks for the info.
    It will let me send the PDF to eprint....  and there are paper size choices.
    However, they only offer Letter, Legal and A4.
    My printer DOES support 3x5 index cards.  But, the option is not listed.
    Any other ideas?

  • In adobe reader, I can't print from different trays?

    Using Adobe Reader, I can't print from different trays on my Lexmark x954 printer.  I've tried reinstalling the print driver (latest version) and reinstalling Adobe Reader with no luck.  I can see the trays and even select them in the print dialog box in adobe but when I print I am unable to print from the correct trays.  It always prints from tray 3 of my printer no matter what tray and type of paper I choose in adobe.  Any suggestions?
    I've also noticed a problem printing through Preview.  I can select different trays using preview but the print time is extremely slow.  It seems like it has to re-download the pdf page each time it goes to print.  So a 100 page print job takes 20-30 minutes to complete which means other have to wait for my job to complete so it really slows our office down.
    Thanks for your help.  Also, I am using the mountain lion operating system.  Thanks again! 

    Don't know whether it will make any difference, but a new version of Adobe Reader has just been released:
    http://www.macupdate.com/app/mac/73/adobe-reader  (version 11.0.03).

Maybe you are looking for