Printing multiple documents

Hello FORM experts!
I have a question here..
In my program I generate multiple documents and then want to print them all at once with one button click.
Document info is in a table which is also written into the database table.
How should this work, should I give my smartform calling function some extra parameters to print them all or should I pass all the info to the smartform and make it print them all there with a loop or sth.?
I'll explain some more..
I have a report which then generates special kind of invoices...
when invoices are generated there's a list of them displayed...
Now I would like with one button to call out a smartform and print them.
I want 1 pop-up print screen for all the invoices.
Right now, I get a pop-up for every single invoice it is printing
Thank you!

Hi,
You can try the following.....Loop at your final internal table and call subroutine printform.In which you will call ur smartform for printing.
Write the following code....
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME                 = 'ZZSD_INVOICE_TRADE_FORM'
  VARIANT                  = ' '
  DIRECT_CALL              = ' '
    IMPORTING
      FM_NAME                  = LV_FM_NAME
EXCEPTIONS
  NO_FORM                  = 1
  NO_FUNCTION_MODULE       = 2
  OTHERS                   = 3
  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 LV_FM_NAME
  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            =
  JOB_OUTPUT_OPTIONS         =
  TABLES
    IT_DISPLAY                 = IT_FINAL
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.
  CONTROL-PREVIEW           = 'X'.       "Preview the output of Smartform
  CONTROL-NO_DIALOG         = 'X'.       "Don't show Dialog
  OUTPUT_OPTIONS-TDDEST     = PRINTER.   "Spool: Output device
  OUTPUT_OPTIONS-TDNOPRINT  = ' '.       "No printing from print preview
  OUTPUT_OPTIONS-TDCOPIES   = 1.         " number of print copies
  OUTPUT_OPTIONS-TDIMMED    = 'X'.       " Print Immediately (Print Parameters)
  OUTPUT_OPTIONS-TDDELETE   = 'X'.       " delete the request after printing
  OUTPUT_OPTIONS-TDLIFETIME = '5'.       " spool retention period
  OUTPUT_OPTIONS-TDCOVER    = ' '.       " no cover print
REgards,
Kashyap

Similar Messages

  • How can I use Adobe Acrobat X Standard to print multiple documents on Lexis Nexis File & Serve?

    I am unable to print multiple documents on the Lexis Nexis File & Serve legal website that used their Batch Document Processor software. The technicians there told me that Adobe Acrobat X Standard has an incompatibility with their Batch Document Processor software. I never had a problem with Adobe Acrobat 6.0 or Adobe Acrobat 9.0 and the Batch Document Processor program at the Lexis Nexis File & Serve website. I am now running Windows 7 Professional SP1. Before, we were running Windows XP Professional SP3 with the IE 8.0 browser. We now are running the IE 9.0 browser.

    The answer is in the question...
    Only the Pro version of Acrobat is capable of batch processing files (which
    I assume the Lexis Nexis tool uses). Until now you had Acrobat Pro, and now
    you have Acrobat Standard, and therefore you can't use it anymore. You need
    to upgrade to Acrobat Pro.

  • Query regarding Printing multiple documents

    Hi,
    We would like to know how we can print multiple documents at once not one by one in SAP.
    Presently we are using FB03 to print the GL document one by one.
    Thanks
    Pooja Gupta
    SAP FICO Consultant

    HI,
    We also encountered with the same problem and now we are using HP solution for it.
    There are four major problems with the SAP print spool process:
    1. Limited bidirectional communication between the SAP environment and the underlying operating
    system (UNIX, Linux, and related systems). After the file transfer to the host, the only information
    that passes between the two environments is whether the file still remains in the print queue (if the
    SAP environment is configured to enable polling).
    If the file is no longer present in the host’s print queue, the SAP environment assumes that the file
    has printed. If the file disappeared for any other reason, such as a reboot of the operating system
    or if the printer is turned off, the assumption is not correct. SAP proceeds to process the next
    output request and the file simply disappears, leaving no trace of the failure.
    Most often, SAP sets the status flag to ‘complete’ after transferring the request to the host spool
    system. This action is a false positive because it actually indicates the handoff is complete, but not
    that the job is printed. It aggravates users and increases calls to the helpdesk.
    2. The lpr command passes only very specific instructions to the host spooler. The host only attempts
    to deliver the file to the specified printer; it does not wait for the printer to confirm that the last
    pages printed. It does not perform transformations, repackage the data, or redirect the file to
    another printer. Nor does the host track the file and keep a record of what happens. The lpr
    command (in some of the UNIX-related distributions) does allow an option to send an e-mail at
    completion of a print job, but this option can quickly clog up the e-mail system and is rarely used.
    3. Users have to make all adjustments to data within SAP before initiating the print request using the
    capabilities already programmed into the SAP environment. This limitation includes advanced
    print features such as staple, duplex, and resize, although administrators can enable the SAP
    spool work process to handle these types of functionality by creating a new print driver. Further
    extensions require additional programming within the environment.
    4. A relatively inflexible and unfriendly input process can cost money and slow business processes.
    For example, reports often need to go to people in different offices or at different sites. Users must
    create multiple output requests in order to send the documents to multiple destinations, or users
    must send the report to a print center where someone (extra headcount) collects the multiple
    copies and mails them to the recipients (extra mailing costs and extra time). Sending reports by
    fax or e-mail require a different set of steps, which further burdens the user.
    Regards,
    Satish Muvva.

  • Printing multiple documents from CV04N

    Hi friends,
    I have a list of documents arrived thru CV04N transaction. Now I need to print multiple documents at one go. When I select a group of documents and clicked the Print Icon at the top of the list, the system is printing only the first document in the group. My requirement is all the document in the group needs to be printed.
    Any pointers on how to achieve this.
    Regards
    S.Sivakumar

    Hi toocann
    Thanks for the inputs provided. The  programs "CV120_DOC_CHECKOUT_VIEW" and "CV120_START_APPLICATION" are to be added at what place in the BADI?
    Regards
    S.Sivakumar

  • How do I batch print multiple documents?

    We often print a number of different docs but we are changing to Win7 and our present way of doing this won't work in the new software.

    Bluesman123 wrote:
    This works for a doc at a time but we often have thirty or more to do.  One at a time takes too long.
    There is no limit to the number of docs you can print in one go.  However, it will be difficult to select multiple documents if they are not in the same folder.

  • Smartform error while printing multiple documents

    Hi Friends,
    When I am  trying to print individual documents the Smartform output is correct but when I select multiple documents its showing an error that says ' Table GRAPH does not fit into the window'. When I change the GRAPH node it says some other node does not fit. And it goes on.
    Is there any easy way to correct this error ?
    Please help.
    Regards,
    Dikshitha G

    Hi Dikshitha,
    First you need to check whether you have used TABLE under a secondary window or Main window? When you use table GRAPH under MAIN window then automatically next page will be printed and Window width adjusts automatically. Only make sure Hight and Width of Window should not be less than the Table. Click on Output tab of Main window and not down hight and width similarly check for TABLES.
    Regards,
    Gaurav.

  • Print multiple documents in sharepoint client object model

    Hi  All,
    I  have a content editor webpart which displays documents from document library using sharepoint client object model. 
    test1 test2 test3 test4 are documents from document library.
    I have requirement to print the selected documents in single click of print button.
    once I clicks on print button all the selected documents should get printed.
    Is there any way to achieve this....?
    Regards
    Srinivas
    srinivas

    Hi Srinivas,
    You can do this but it will be combination of ECMA and JS. First you need to get selected file name by ECMA script then call a java script function to print documents.
    Here is script to print all docs: http://stackoverflow.com/questions/7187400/printing-multiple-pdf-files-using-javascript
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Printing multiple documents in single pdf on double sided printer

    What is the best way to print a PDF document with a large number of documents so that the start of a successive document does not end up printing on the back page of the prior document? Each document has a cover page and could be used as a "key", but not sure how to set that "cover page" as the key which could then be used to instruct the printer to start on a new page - almost as if a new print job??

    http://www.a-pdf.com/?product-mg
    is a program which you can select a bunch of pdf files and combine them into one pdf.  In the options pane , you can tell it to automatically add a blank page at the end of each odd numbered pdf file.   You can simply then print the new combined pdf double sided on your copier, and it would print correct.
    If you want to still have the pdf as separate pdfs, in Options you can select " bookmark by file name" before combining. 
    After combining, view the new pdf in Acrobat and  you can 'split pdfs by top level bookmarks.

  • How to print multiple documents in SAP

    Hello Users,
    I am using SAP to Print the customs documents for sea shipments which is required to Print the Commercial invoice , Packing List & Bill of lading Instruction.
    so there is any way to Print above three documents combined for list of Order i/o go order by order?

    Hi Moh,
    I'm not sure though, but if they are shipping orders, I guess they and be sent and printed via CVD1 transaction.
    I have done it on shipping Safety Data Sheets, Cover letter etc... along with while shipping the material.
    This can be done via customizing.
    Regards,
    -Chris.

  • Printing multiple sets of Portfolio documents collated

    I use Adobe Acrobat 9 Pro's pdf Portfolio to print multiple documents with similar printing properties (two-sided, stapled, hole-punched) but they are separately two-sided and separately stapled. I try doing multiple copies but the print job comes out with 20 copies of document 1 of the porfolio followed by 20 copies of document 2 of the porfolio, and so on. How is it possible for me to make multiple sets of the portfolio which are by set rather than by document?

    I am also looking for an answer to this question.

  • Can we print multiple excise invoice documents with one click?

    Hello,
    SAP has provided with t-code 'J1IP' for printing excise invoice documents. But for printing multiple documents we need to click print button each time for every new document. is there any other way by which you can print bulk excise documents without clicking print button each time?
    Thanks in advance.
    Neha

    Hi Neha,
    It is possible on SAPB1.
    Try to Use the Document Printing Window on Financials or Marketing or Banking Module..
    Try this,
    ->> Financials.
    -> Choose Document Printing.
    ->> Open the Document Printing Window.
    ->> Select the Document Type - Incoming (or) Outgoing Excise Invoice.
    for example, IF you Select the Document Type - Incoming Excise Invoice.
    ->> Select the require Series.
    -> your requirement wise, put the tick mark of Open Only or &Only Documents Still to Be Printed.
    ->> put the Posting Date From Date & To Date.
    ->> Assign the No. of Copies - 1 or Your wishes.
    ->> Click the OK button, than will Open the Print Incoming Excise Invoice Window.
    ->> Choose all Incoming Excise Document (select all row).
    ->> Click the Print button.
    Regards,
    Madhan.

  • Printing Multiple Word Documents?

    HI,
    I'm using Panther 10.3.9. How do I print a batch of MS Word .doc files ? I've created a desktop printer and when I drag a bunch of .doc files to it only one file prints! argh... I dragged a folder to the desktop printer and I got a directory listing ... double argh....
    Is it possible to do this? And is it possible to do this without seeing the print dialog each time ???
    Thanks,
    Pete

    Hi, Peter.
    I would also like to be able to print multiple documents straight from the Desktop by dragging and dropping or using a keyboard shortcut. It's been so long since I used OS 8 or OS 9 that I can't remember if I was dreaming or not, but I'm pretty sure that in the old OSes you could just drag and drop or click Cmnd+P and print away.
    I've tried using Automator to make an application (have'nt got the hang of it yet), using a desktop printer and searching for an Applescript on the net; all to no avail. It seems that Word behaves differently depending on whether it's open already and whether there is already a blank document open in it or not. That is, if it has to launch before printing, it opens a new, blank document and prints that (or sometimes does nothing even though the printer launches). However, if Word is already open (but has no other document open) it will print all the documents. As you say, though, you have to then select "print" from the resulting dialogue box for each document. So, it's hardly elegant. As someone said elsewhere, it's more of a "bug" than a "feature".
    So, what we need (as far as I can see) is an Automator appplication or workflow (or AppleScript) where 1. you drop a bunch of Word (or other) documents into a folder; 2. Word launches; 3. the new, blank document that automatically opens is closed (by some kind of "close all open windows command"); 4. the documents are sent to the current default printer;5. they all print.
    Surely all the publishers who use Macs must use this kind of thing all the time.
    I wrote to the guys at CocoaTech (who make Path Finder, an excellent Finder substitute) about this problem and they said they'd consider adding the feature, but at the same time seemed a bit confused about exactly what this feature was or why anyone would want to use it.
    Does anyone know of a solution to this?
    Cheers
    Matt
    iBook G4   Mac OS X (10.4.5)  

  • I am unable to print multiple copies on 1 page

    I have a macbook and I used to be able to print multiple copies on 1 page. It had a selection on the bottom right. Now something has changed with the format. It allows me to select multiple copies, but only prints one.

    Hi,
    In order to print multiple documents on one page, you may follow the steps mentioned below:-
    Press Command+p- Select multiple pages or booklet
    If you are not getting these options, please send us a screenshot to better understand the issue.
    Regards,
    Nakul

  • How to list printers on the client machine to print the documents in ADF

    Hi,
    I have a requirement to print multiple documents stored on the server. I am trying to find out how to list the printers or get a default printer on the client machine and print the documents using ADF.
    Thanks
    Sukarna

    I tried that solution. but I am not getting any printer list.
    public void printDocument(ActionEvent actionEvent){
    BindingContainer bindings =
    BindingContext.getCurrent().getCurrentBindingsEntry();
    PrintService[] service = PrintServiceLookup.lookupPrintServices(null, null);
    if (service.length == 0){
    JOptionPane.showMessageDialog(null, "No Printer Selected");
    The printer Service is not returing any data.
    Thanks
    Sukarna
    Edited by: 911653 on Oct 5, 2012 9:01 AM

  • DMS: Print mutiple Documents(originals)  through CV04n List of DIRS directl

    Hi All,
    Is it possible to Print Multiple documents through cv04n list of douments, i.e i will select the documents from the list, say 10 documents & click on the print tab. When i tried it prints only the frist document(original), how can print the all selected documents in one go.
    Is there any config or any userexist & badi for that?
    Help will be appriciated.
    Regards
    Nishant..

    Hi Nishant,
              Multiple originals printing is not possible in std SAP, since it involves Multiple application types (like cad,word,excel) and multiple drawing sheet sizes (A3&A4).
                You need to go for a third party software which provides this solution and support. You can be in touch with following solution providers.
    1. Cideon (http://cideon.de/cideon/en/so/index.php)
    2. Seal systems. (http://www.sealsystems.de/com/outputman/engineering_printing.php)
    Send me your email ID, i can send few documents.
    Regards,
    Prasanna
    <b>Reward points if useful</b>

Maybe you are looking for

  • Conversion Error?

    Hi All, I am getting an error message when trying to convert a PDF file to Excel Format. I have already successfully converted several other files in the same format and from the same source with no problem. The message reads "File failed to be conve

  • Search results load in the current tab rather than the new tab where the search was started from.

    Steps to reproduce: Open a new tab Using the search bar (for Google) within the page on the new tab, enter a search query and press enter Quickly switch to a different tab The search results will load on the different tab rather than the tab where th

  • Newbie to iPhone with iCloud syncing issue

    I am brand new to the iPhone and to iCloud and I am having some trouble. I created about 30 contacts, on my phone, before finding out that you can actually go to icloud.com and create them there. I went to icloud.com and did a "backup", from my phone

  • Passing select options internal table to BAPI attributes...

    Hello Web Dynpro Gurus, When I get the values from select options into interna table, how can I pass the same to the attribtues of the importing/exporting nodes of the BAPI by reading the context. Please help . Regards, Jainam.

  • Migrated sub account no access

    I tried to migrate a sub account to BT Mail and now I am unable to access via webmail or any email clients. When trying to log in with webmail I see 1 of 2 messages: 1) username or password not recognised. Or 2) account is locked. Now as part of the