Batch printing in Smartforms

hi guys,
i have a problem to perform batch printing and process batch printing at a button click and here is the detail explanation of the problem.
The Front End Screen will be a selection screen with (1) radio buttons listing all form letters, a field for Date of the form, (2) a field for Employee Number (PERNR), (3) a field for Request Date, (4) a field for Request Reason, (5) <b>a selection for Print Now or Print Batch</b>, and (6) <b>a Process Batch button</b>.
when Radio Button for one of the Forms selected, the User will then select the Print Now or Print Batch option. If the Print Now option was selected, the selected form will be immediately generated and printed. If the Print Batch option has been selected, the data on the Front End Screen will be stored in a batch file for processing and printing en masse.
Screen when ready to print the batch file of forms. When the Process Batch button is selected, any forms that are stored in the batch file are then processed (created and printed). Forms may be printed multiple times (one for the employee, one for the employee’s supervisor and one for the personnel file). Each form detailed below will indicate the number of copies to be printed.

Printing a Smartform is always about calling the function module generated for this form. Calling the FM is done from a printing program.
Put this program into a job using
CALL FUNCTION 'JOB_OPEN'
  EXPORTING
    jobname          = name
  IMPORTING
    jobcount         = number
  EXCEPTIONS
    cant_create_job  = 1
    invalid_job_data = 2
    jobname_missing  = 3
    OTHERS           = 4.
IF sy-subrc = 0.
" FOR each PERNR
  SUBMIT submitable TO SAP-SPOOL
                    SPOOL PARAMETERS print_parameters
                    WITHOUT SPOOL DYNPRO
                    VIA JOB name NUMBER number
                    AND RETURN.
ENDIF.
then when you want to execute the job, call this:
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        jobcount             = number
        jobname              = name
        strtimmed            = 'X'
      EXCEPTIONS
        cant_start_immediate = 1
        invalid_startdate    = 2
        jobname_missing      = 3
        job_close_failed     = 4
        job_nosteps          = 5
        job_notex            = 6
        lock_failed          = 7
        OTHERS               = 8.
    IF sy-subrc <> 0.
    ENDIF.
ENDIF.

Similar Messages

  • Is there a way to automatically add the filename in the page header when batch printing text files directly from finder?

    hello, i have 80 text files (docx). the finder preview works great and i can open them in pages.
    I need to batch print them from finder:
    I select all the documents > drag on printer's icon> printer puts them in queue ( after an on the fly pdf conversion)  ad starts printing.
    BUT
    i need the filename printed on each page  ( in hearder or footer) , not only the regular text content.
    Do you know if there is a workaround?
    thank you
    Tullio

    If that section has an ID or NAME attribute then you can add that to the URL (#anchor) that you want to reload.
    See View > Page Source
    https://support.mozilla.com/en-US/questions/774792#answer-128100

  • I can't batch print to any printer on any of my iMacs

    I have 5 iMacs 2.4 GHz Intel Core 2 Duo,  4 GB 667 MHz DDR2 SDRAM, on 10.10.2 Yosemite. Before this week, I could open a PDF file, select any amount, 1-1000, drag into my print queue and all my files print, in correct format, on my printers. I use this method of printing throughout each day for my work. I have files of over 500 PDF drawings that I need in some cases. Opening each file up and going through the printer process like that is way too tedious and pointless imo. Please don't offer me an app that can do this for me, Adobe Reader has worked flawlessly up till now. Now, after I send my PDF's to queue, my printers start spooling up, then I get this message: cgpdftops quit unexpectedly. I have NEVER seen this error. I have been able to batch print with no issues at all for the past 2-3 years. It makes no sense that all of a sudden, it stops working.
    I have already done the following:
    1. Reinstalled all printers and drivers.
    2. Restarted all iMacs after reinstallation
    3. Updated Adobe Reader and Java SE6
    4. I have spent 45 mins on the phone with Apple Care Customer Support.
    5. I have booted into Safe Mode and managed to batch print PDF's of a web page I saved, as the Apple Care rep told me to do, but NOT PDF's from Adobe Reader. Why she thought saving a web page as a PDF was the same as what I do for work, I have no clue, but her method didn't solve a single thing.
    All of my PDF's come through in Adobe Reader. That is how all the GC's send me ll of my drawings and plans. If anyone can please provide some insight for me on how to get this issue fixed, that would be greatly appreciated.
    The 3 main printers I am attempting to print to are:
    1. OKI C6100 in Standard 8.5 x 11 Letter    
    2. HP LaserJet Pro 200 in Standard 8.5 x 11 Letter
    3. Oce Plotwave 350 in 18" x 24" Arch C Wide Format

    Jintymcginty61,
    there’s not enough information yet to answer your question. Which version of OS X is installed on your MacBook Pro?

  • Batch Print Images in Their Original Dimensions CS5?

    How can I batch print multiple images that have various dimensions and have them printed at their original dimensions? I used to be able to do this in CS3 but now I'm using CS5 Creative Suite in Windows 7, all the images are printed at the same dimensions. Any help would be greately appreciated.

    Then again it may have to do with the images you recorded the action with. It might have been small and center images was checked so the offsets are large. I do not know the answer I don't Batch print and have not create actions with print steps.  You may want to try to recorde the action a bit differently. Open a document (image) then go through the steps to print it. That is Open the print dialog and select the printer and set up its defaults paper and orientation like landscape from paper tray 8.5 x 11.  After doing that don't print just exit the print dialog.   You may want to download my crafting action package there is a utility script that will rotate protrait images to lanscape you may want to include in you action and an other long side print size it you want to fit the image to the paper. Any way when you record the action print step record menu File>Print One Copy.   Print One Copy does not record anything about size.
    http://www.mouseprints.net/old/dpr/JJMacksCraftingActions.zip
    Contains:
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action http://www.mouseprints.net/old/dpr/WM900x600.jpg
    Sample Actions.txt Photoshop CraftedActions set saved as a text file. This file has some additional comments I inserted describing how the actions work.
    12 Scripts for actions

  • Printing a smartform to a different printer than my default

    I have a function module that gets passes a delivery number and the short-name of a printer.  The function module is supposed to print a smartform (pick list) for that delivery to the specified printer.  The problem is that no matter what I put in for the printer, it prints to my default printer.  If I change it, it will go there.  I'm sure I'm just missing some kind of setting.  Here is what I got:
    printer is the shortname for the printer i want, type RSPOPTYPE
    *Print Smartfomr picklist for  delivery
      data: ls_ctrl_prnt type ssfctrlop,
            ls_outp_opts type ssfcompop.
      ls_ctrl_prnt-no_dialog = 'X'.        " Suppres dialog
      ls_ctrl_prnt-device    = 'PRINTER'.
      ls_outp_opts-tddest    = printer.
      ls_outp_opts-tdprinter = printer.    " Specify required printer
      call function gv_func
        exporting
          control_parameters = ls_ctrl_prnt
          output_options = ls_outp_opts
          pk_hdr               = sf_info
          pk_orders            = sf_odrs
          pk_items             = sf_item
          pk_pgbk              = sf_pgbk
        exceptions
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4.
    Am I missing something here?  Any help would be greatly appreciated.
    Thanks,
    Curtis

    I was able to solve my issue. The field TDIMMED (print immediate) in the parameter OUTPUT_OPTION need to be passed with the value 'X'.
    The code is pasted below.
    DATA: l_ssfctrlop TYPE ssfctrlop,
            l_ssfcompop TYPE ssfcompop,
            l_formname  TYPE tdsfname,
            l_fm_name   TYPE rs38l_fnam.
      CLEAR l_formname.
    Get the smartform name based on the output type
      SELECT SINGLE sform FROM tnapr INTO l_formname
        WHERE kschl = ysdt_dynlayout-auart
          AND nacha = '1'
          AND kappl = 'V2'.
      Get the smartform function module name
        CLEAR l_fm_name.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = l_formname
          IMPORTING
            fm_name            = l_fm_name
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
        IF sy-subrc EQ 0.
          l_ssfctrlop-no_dialog = 'X'.                        " print popup dialog box is suppressed
          l_ssfcompop-tddest    = usr01-spld.         " the printer name is passed from screen to this field
          l_ssfcompop-tdimmed   = 'X'.                    " print immediate option is set
          l_ssfcompop-tdcopies  = copies_in.         " number of copies of output required
        Call the smartform
          CALL FUNCTION l_fm_name
            EXPORTING
              control_parameters = l_ssfctrlop
              output_options     = l_ssfcompop
              user_settings      = ' '                            "manual override of user settings            
              i_del_head         = likp
              i_dyn_layout       = ysdt_dynlayout
            TABLES
              t_del_item         = ig_lips
              t_home_address     = ig_home_address
              t_header_text1     = ig_header_text1
              t_footer_text1     = ig_footer_text1
              t_footer_text2     = ig_footer_text2
              t_footer_text3     = ig_footer_text3
              t_text4            = ig_text4
              t_text5            = ig_text5
            EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              OTHERS             = 5.
        ENDIF.

  • Batch Printing with File Names in Photoshop CS5

    How can I batch print hundreds of images with the file name on each of the print? I also need them to be printed at their original dimensions, which mean they should not be scaled when printed to papers.  Any help would be greatly appreciated. Thanks.

    Thanks for your response, Noel. However, the images to be printed at their actual dimensions and resolution (300ppi). This is so that we can see how their qualities are going to be when they are printed the actual publication, which is at 300ppi.
    What I used to be able to do in CS3 is creating an action in Photoshop that contains a print command with "label" or file name option on. Then I ran the script through the batch command in Bridge. However, in CS5, when I tried to same method, all of the images are printed at 1/2 an inch while they are actually 3-5 inches at 300ppi. Therefore, I am trying to another method that would give me the same result.

  • Batch Printing with Desktop Printer

    I have been batch printing with a desktop printer to a ethernet connected xerox phaser printer. The files are doc files that I drop onto the desktop printer to automatically print anywhere from 10-30 files at a time. I either use TextEdit or Pages as the default program for the files so I do not have to deal with the print dialog box that comes up with Microsoft Word. My problem is that if I send 20 files for example, only a certain number of them will actually print and the job of printing all of them is not completed. It appears random. Sometimes it may get through 5 and othertimes 15 files before it stops. There is no error message and it seems as if everything was sent to the xerox printer fine...
    Any advise would be appreciated

    I spoke with Xerox support. They suggest typing your printers IP address in a browser, clicking on PROPERTIES, select GENERAL from the file menu on the left, then select PRINTER DEFAULTS. Change Timeout Settings from a default of 120 to 999.
    Apparently the printer drops info if it takes longer than a specific duration so if there is network traffic or a large number of files are being sent all at once.
    I just changed my settings so we shall see if this works

  • How to print multiple form for tag printing in smartforms

    Dear Experts,
    I am working on tag printing in smartforms .in tag printing i am showing
    1.material no.
    2.material descrption.
    3.material doc no.
    4.Quantity
    5.supplier.
    my requirement is that for example , if the mat. document no.  has a material of 10,000.00 quantity , in tag printing it should come 1,000.00 of each tag  and total no of tag should be 10. and it should come one after another .
    and the page format size 8 x 6 cm. is it possible .if possible how ! how the system will know how many tag is to be printed . please reply its urgent.

    Hi Kumar,
    Let me know. is the quantity 1000.00 is fixed? if so thn you can achieve the requirement.
    For example:
    There are  A-material with 20000.00 quantity thn  u can first divide the quantity with 1000.00
                 v_ex = 20000.00/1000.00=20.
    thn  you can repeat the  print of the smartform for 20 times by passing  the parameter to  form fm.
    Please reward if  useful.

  • Can I batch print PDF files with Adobe Acrobat Reader X

    can I batch print PDF files with Adobe Acrobat Reader X?  I have tried from Windows Exploer (Windows XP) and it looks like the files are opening but they do not print.
    Pat

    Very strange!  What is your installed Reader version?
    Try disabling Protected Mode in Adobe Reader [Edit | Preferences | Security (Enhanced)].

  • We have an applescript that will batch print InDesign CS6 files from a folder to a laser printer using an InDesign print preset. The script does not work in OS X Yosemite. The script errors out with the print preset. Any thoughts?

    tell application "Finder"
      activate
      set thefolder to choose folder with prompt "Select a Folder with InDesign Files to be Printed" as text
      set thePath to thefolder as text
      set the selected_items to every item of folder thefolder
      if the selected_items is {} then
      beep
      display dialog "Please select a folder with InDesign files before running this script." buttons {"Cancel"} default button 1
      end if
      repeat with aFile in selected_items
      tell application "Adobe InDesign CS6"
      activate
      with timeout of 600 seconds
      set user interaction level of script preferences to never interact
      open aFile
      tell document 1
      tell print preferences
      set active printer preset to "Catalog Pages"
      set page range to all pages
      end tell
      print without print dialog
      close saving no
      end tell
      end timeout
      --might need this delay
      --delay 10
      set user interaction level of script preferences to interact with all
      end tell
      end repeat
      tell application "Finder"
      activate
      display dialog "Batch Printing is complete!" giving up after 5
      end tell
    end tell

    Hi
    After I put a small delay in as shown, your code ran fine, tested on about twenty ID files, using ID CC 2014, OSX 10.10.2
    tell document 1
    delay 0.5   -- delay added
      tell print preferences
      set active printer preset to "Catalog Pages"

  • Issue with character formats using duplex printing in smartform

    Hi all,
    I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
    Can anyone know where is the problem..please.
    Points to be rewarded..
    Thanks.
    Regards,
    Zaheed.

    Hi Zaheed,
    Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
    If you are saying it is happening in ur case then
         1. Recheck whether whether you have same text module getting printed on the
             two page. If they are different then then individual check formatting option for
             each..
          2. If above point does'nt work for you ..then instead of bold char use normal
              format for text element and see if it is printing same on both page..
    Try this out and let us know your findings...
    Enjoy SAP.
    Pankaj Singh

  • A solution for batch print PDF documents

    Dear,
       I use a command line to auto print some PDF documents as below:
       C:\>AcroRd32.exe /h /t PDF_file_name printer_name
       the printing is no problem.
       But when I use the command line to print a large number of PDF files, there are a problem, for example:
       There are 3 PDFs that I want to print, they are 1.pdf, 2.pdf and 3.pdf
       I sent command one by one like below.
      C:\>AcroRd32.exe /h /t 1.pdf printer_name
      C:\>AcroRd32.exe /h /t 2.pdf printer_name
      C:\>AcroRd32.exe /h /t 3.pdf printer_name
      But the hard copy from the print are:
      first print: 1.pdf
      2nd print: 3.pdf
      3rd print:  2.pdf
      what can I do for this case, I want to get the output seq. will be 1.pdf, 2.pdf, 3.pdf.
      Thanks.

    KingPool's snarky response notwithstanding (he appears to have some financial interest in “pushing” sales of PrimoPDF), your need is real and your observations do correspond to the reality of printing. The fact is that when you use spooling under Windows, the application program actually can complete spooling of the file to the printer before that spooled output is ready to be actually transmitted to the device. The print process is a multiple step, asynchronous process.
    To absolutely force printing in an exact order as per your scenario, go to the printer's Properties and select the Advanced tab. The printer is probably currently set to Spool print documents so program finishes printing faster with either the Start printing immediately or the Start printing after last page is spooled option selected. Change that to the Print directly to the printer option and then press OK. This will force printing in the order that you specify. Note however, that this forces Reader to wait as the document is fully printed and then terminate. You should reset that spooling option when you are done with this batch printing operation to regain system performance.
    Alternatively, another approach you could try would be to hold the particular print queue before running your commands. Then, after ascertaining that all the print jobs are on the queue and ready to be printed, release the queue. The jobs should print in the order queued. And finally, if there still is a mis-ordering of the jobs, after holding the entire queue, put a hold on all the jobs, release the printer queue, and then release the jobs in desired order.
              - Dov

  • Is it possible to batch print .pdf AND .doc files together?

    I need to let users to batch print a set of files that includes both .PDFs and .DOCs. Since <cfprint> allows .PDF files only, what would you suggest?
    Thanks!

    el_sim wrote:
    Unfortunately, it's not an option because I need to allow users to batch print and I have no info about their network printer configuration
    That raises a large RED Flag that you may be misunderstanding the <cfprint...> functionality.  <cfprint...> can NOT print to a printer that is configured to the clients computer.  So if that is what you are looking to do, you need to be looking at Client side technology.  But be aware, that current, common, browser based web applications generally have very limited connections to client hardware.  If you are willing to get into Flex, Flash, Air (or another company's technologies) you could probably do more.  But HTML and JavaScript currently do not have much access to the hardware of a client computer.
    The <cfprint...> tag is designed to send a print job from the SERVER running the ColdFusion application to a printer connected to that server.  IF you are writing programs with no knowledge of the server network configurations (I.E. an application meant to be sold to various customers) this becomes much more difficult to do.  But if you are writing a CFML application to be run on a known network, which is what many of us do, then it should be pretty easy to know what printers are connected to the server running ColdFusion and figure out what capabilities those printers have.

  • Adobe Reader PDF Batch Print

    Question:
    Is it possible to build a batch printer using the SDK and libraries
    available with Adobe Reader?
    Environment:
    Win XP and Win 7
    Client machine install
    Adobe Reader - required version can be installed
    VB6 or C# .NET
    Experience To Date:
    The ActiveX control works fine for loading/displaying a PDF, and
    a single file with any number of pages can easily be printed via
    automation.  The print process does not cause the application
    to pause until the printAllFit method completes.  The LoadFile
    method on the next file returns True even if the current file is
    still being printed and, therefore, the next file does not load.
    General Comments:
    Anybody else find it a bit odd that the SDK documentation is
    not a single, down-loadable PDF file?

    I do that in Perl
    (but it is no problem to translate the code into VB or C++)
    http://blogs.perl.org/users/rtillian/2011/10/batch-printing-on-command-line-via-print-driv er.html

  • How i can print the smartform directly

    hi,
    my requirement is i have to print the smartform directly by skiping the dialog window.
    i am using the following code but in that i have press the Print push button again .
    DATA: output_options TYPE ssfcompop.
      output_options-tdimmed = 'X'.
      output_options-tddest = 'LOCL'.

    Trty something like
    *   Print parameters
        ssfcompop-tddest = tddest.
        ssfcompop-tdimmed = 'X'.
        ssfcompop-tdnewid = 'X'.
        ssfcompop-tddelete = 'X'.
    *   Control parameters
        ssfctrlop-device = 'PRINTER'.
        ssfctrlop-no_dialog = 'X'.
    * Call driver
        CALL FUNCTION fm_name
             EXPORTING
                  control_parameters = ssfctrlop
                  output_options     = ssfcompop
    Regards

Maybe you are looking for