Regarding Smartforms printing - multiple pages

Hi Friends:
    Please help me out on this query. I know how to make a smartform. I've made smartforms but the condition is that it triggers only one smartform. I've a requuirement that I've to trigger smartform for multiple vendors.The format of the smartform will be the same.Logo will be same. The address of the vendors will be changed.The line items in the main window will be changed.Footer will be constant. There will be a select option on the selection screen, which will select a range of the vendors.There will be some other parameters.I tried using loop, but every time it triggers one smartform & then again displays "print preview dialog box". I want all the smartforms to generate in one go.once the smartform for one vendor finishes, it should trigger a new one on the next page.Please help me out urgently.If anyone has a sample program, please send it to me.Reward points will be there.

Hi,
Pass the select-option as a input to smartform.
Check this link.Here I am explaining how to do this.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
If you want to restrict print dialog box,you can achieve it by the following coding.
*& Report  ZZZ_JAYTEST1                                                *
REPORT  zzz_jaytest1 NO STANDARD PAGE HEADING MESSAGE-ID zhrt.
Variable Declaration
DATA : v_form_name TYPE rs38l_fnam,
       itab TYPE STANDARD TABLE OF pa0001,
       w_ctrlop TYPE ssfctrlop,
      w_compop TYPE ssfcompop,
      w_return TYPE ssfcrescl.
SELECT * FROM pa0001 INTO TABLE itab UP TO 5 ROWS.
SORT itab BY pernr.
DELETE ADJACENT DUPLICATES FROM itab COMPARING pernr.
DATA: control TYPE ssfctrlop,
control_parameters TYPE ssfctrlop,
output_options type SSFCOMPOP.
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = 'X'.
control-device = 'PRINTER'.
output_options-tddest = 'LOCL'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
   USER_SETTINGS            = ' '
   OUTPUT_OPTIONS           = output_options
   CONTROL_PARAMETERS       = control
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.
output_options-tddest = 'LOCL'.
OUTPUT_OPTIONS-TDNOPRINT = 'X'.
OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
CALL FUNCTION '/1BCDWB/SF00000066'
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            = w_return
  JOB_OUTPUT_OPTIONS         =
  TABLES
    itab                       = itab
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.
CALL FUNCTION 'SSF_CLOSE'.
Kindly reward points if it helps.

Similar Messages

  • 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

  • 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 do I print multiple pages (2) to one A4 page?

    Hi folks,
    How do I print multiple pages (2) to one A4 page (as you can in a PDF) ?
    There is no option when I try to print & I have checked advanced etc. I have tried opening as a PDF. I have tried printing to PDF but it won't allow.
    Any ideas or suggestions would be greatly welcomed - I don't fancy printing the whole 188 pages, but I need them all!
    Thanks,

    Hi Chris,
    Try this, and if you have any trouble get back and we'll trouble shoot, but I think it will work for you.
    Open System Preferences.
    Select Print & Scan
    Click on your printer under Printers in the left pane
    Click "Open Print Queue", on the right
    The print queue app will appear on your Dock
    Open a Finder window containing your files to be printed and select them all
    Drag the files from Finder to Print Queue icon in Dock
    Regards,
    Jerry

  • Trouble printing multiple pages with HP ENVY 5531

    I am printing wirelessly from a Windows 8 machine.  If I only print one page it works fine every time.  If I try to print multiple pages then on the 2nd or 3rd page it always cuts off the bottom portion of the page.
    There was another post that had a similar problem but the problem went away when they connected up the USB cable from the computer to the printer.  I need to print over wireless so that isn't a good solution for me.

    Hi,
    Try following the steps below and check if that may help:
    - Open the HP software by clicking the HP ENVY 5530 icon within the Desktop or the Start Menu, then click the Printer Home Page (EWS) link.
    - Click the Network tab.
    - Depending on your printer model click on Networking and then on Network Address (IP) or click on IPv4 within the active network connection type.
    - Click on Manual IP , and then click Suggest a Manual IP Address . A manual IP address, Subnet Mask, and Default Gateway displays.
    *Be sure to take a note of the IP address and Confirm the changes, then close the EWS page.
    - Click the HP ENVY 5530 icon within the Desktop or the Start Menu and click the Utilities tab, then click on Update IP Address.
    - Type the manually configured IP address, click on Save and confirm.
    - Open the control panel and go to Devices and Printers.
    - Right click the HP ENVY 5530 icon and select Printer Properties.
    - Open the Ports tab.
    - Click the Add Port button, select Standard TCP/IP and click on New Port.
    - Follow the steps by typing the manually configured IP address and confirm the changes.
    Now try printing and check if the issue been resolved.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Trouble printing multiple pages, not multiple images per page

    I have just upgraded to PS Elements 10 and am having a challenging time printing multiple pages of the same document (image).  These are labels that will be run, so we do 300 of the same image at a time, one per page (label).  From the open Elements .psd file I choose print and set the printer settings, and then choose the amount of labels to print.  No matter what number I put in for the Print X copies of each page, it still only prints one.  When I convert it over to the organizer it seems to work with printing multiple copies.  Having to move each file over especially if we are just wanting a quick test run is very time consuming and troublesome.  It seems like there should be a simple fix that I am missing in the Elements program.

    Hi,
    Try following the steps below and check if that may help:
    - Open the HP software by clicking the HP ENVY 5530 icon within the Desktop or the Start Menu, then click the Printer Home Page (EWS) link.
    - Click the Network tab.
    - Depending on your printer model click on Networking and then on Network Address (IP) or click on IPv4 within the active network connection type.
    - Click on Manual IP , and then click Suggest a Manual IP Address . A manual IP address, Subnet Mask, and Default Gateway displays.
    *Be sure to take a note of the IP address and Confirm the changes, then close the EWS page.
    - Click the HP ENVY 5530 icon within the Desktop or the Start Menu and click the Utilities tab, then click on Update IP Address.
    - Type the manually configured IP address, click on Save and confirm.
    - Open the control panel and go to Devices and Printers.
    - Right click the HP ENVY 5530 icon and select Printer Properties.
    - Open the Ports tab.
    - Click the Add Port button, select Standard TCP/IP and click on New Port.
    - Follow the steps by typing the manually configured IP address and confirm the changes.
    Now try printing and check if the issue been resolved.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Photosmart C4580 - printing multiple pages in error

    Hi - I have the above printer, and it is printing multiple pages instead of the number requested.  I have to physically stop the printing after the required number of pages, otherwise it will continue to print more of the same pages. I have uninstalled, and reinstalled the printer, and all other aspects are working fine.  It is linked wirelessly to the computer and that is fine.  Any help you may have would be appreciated.  Regards, debnmaid

    Using the printing API, you have a Graphics object to do your printing on.
    So just set a clip window to your current 1/4 of the screen, draw page, translate to the next 1/4, set clip, draw page, etc.?

  • Disable Auto-Centring When Printing Multiple Pages

    Hello,
    I am using Adobe Reader XI Version 11.0.04 (mac). I am trying to print multiple pages (specifically custom 1 by 3 portrait), but am finding that the 3 pages auto-centre (appear in the middle of the page). Is there a way to disable this auto-centring so that the three pages can be flush to th left of the page (e.g. left margin).
    Thanks

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

  • My HP Officejet J6480 All-In-One has started printing multiple pages.

    All of a sudden my officejet J6480 printer is printing multiple pages every time I print.  I've made sure it is saying only 1 copy, but it still continures printing the extra pages.

    Disconnect the power cable and the usb cable from the computer. Restart both the printer and the computer. Clear the print que. Fan all the pages in the printer. Power on the printer connect the usb cable and try printing again. Happy Printing
    The HP Print and Scan Doctor will guide you through troubleshooting your network printer setup and connectivity problems.  It also provides you with a wealth of information regarding your network and, in some cases, automatically fixes network connectivity issues.
    The HP Print and Scan Doctor runs on Windows XP, Vista, Win 7, and Win 8.  You will need administrator privileges in order to run the utility.
    Get it here:  HP Print and Scan Doctor
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"
    (Although I am employed by HP, I am speaking for myself and not for HP)

  • Print multiple pages on one page in Preview?

    I tried to print a PDF in OSX Lion and I was unable to find the option to print multiple pages on one Page. Instead there is an option to print multiple copies of pages on one page. Does anybody know where I can find the old option from (as in Snow Leopard, Leopard, Tiger..)? (See screenshot.)
    Thanks!
    roboter

    Look under the "Vorschau" menu for the Layout menu, and then choose "Seiten pro Blatt."
    Hope this helps.

  • How do you get rid of white space when you are printing multiple pages to one sheet of paper?

    How do you get rid of extra white space when you are printing multiple pages to one sheet of paper?  When printing multiple pages to one sheet of paper Acrobat won't let you select the "zoom" for printing.
    Thanks

    Take a look at Quite Imposing.

  • Print multiple pages on a single page in word or from a PDF

    I need to print multiple pages on a single page from a PDF (ie: pages 1 and 2 onto a single page, pages 3 and 4 on a single page etc.)
    Does anyone know how to do this? Thanks

    (near the middle in a pull down menu - if you have the small print window click on the triangle next to the printer name to expand the window
    In preview the menu shows "preview" until you open it to see more - and
    if you have the small print window click on the triangle next to the printer name to expand the window
    LN

  • 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?

  • Trouble Printing Multiple Pages in Quick Succession - LaserJet P4015x - Networked Printer

    Hi,
    We are currently experiencing problems printing multiple pages in quick succession. We use a bespoke Microsoft Access Database to run our Sales Order Processing. As part of this software we print 3 part invoices, credit notes etc on different coloured paper. We do this by printing to different printer trays. Originally we tried automating the printer tray configuration through VBA code using one report and changing the print tray as part of the print process but were having problems with Microsoft Access freezing. As result we have resorted to printing 3 different reports straight after each other (using VBA code) but with each report specified to print from a different tray.
    We are current using tray 2 (500 sheet feeder - standard A4 paper), tray 3 (500 sheet feeder - standard A4 paper) & tray 4 (500 sheet feeder - standard A4 paper).
    The current setup does print a copy from each tray and does give us what we want apart from the whole print process being very slow.
    The first page comes out from tray 2 at the normal speed you would expect from a network printer but then we start to have issues.
    Sometimes the second page from tray 3 will come out quickly but the third page (from tray 4) will be very slow or both pages 2 & 3 will be slow to print. There seems to be no pattern as to why these are slow. To make matters even worse sometimes it will print correctly and all three pages come out in very quick succession (although rarely).
    We are using modern PC's (running Windows XP SP 3 with 2GB RAM & 160GB HDD) and the print command is definately being sent to the printer in quick succession - as far as I can tell. I have tried to setting the printers to print through  the server and setting them up to print directly to the printer using the built in print server in P4015x.
    The printers are networked to a Windows SBS 2008 server with quad core processors and 16GB RAM.  The server is only used as a file and print server and is not under heavy load.
    I will also point out that I have tried printing to another HP printer (4250dtn) and it has exactly the same problems.
    I have removed advanced printing features from the printer driver setup on the client PC's but it does not seem to make any difference. I have also tried printing directly to the printer rather than spooling.
    I have updated the drivers to the latest one on the HP website and still no change.
    I would appreciate any ideas any one might have to sort the problem out.

    Did you ever solve this?
    I'm doing the exact same thing: three print outs in succession to a specific tray on a network shared printer and occasionally getting a MS Access printing error 2212 counldn't print you object.  Printer setup is saved with the reports one for each printer tray.
    I'm printing from bespoke MS Access 2002 application using runtime to HP LJ 4100 on Citrix terminal server session.
    Any info you have would be appreciated.

  • Used to be able to print multiple page pdf files on my HP 7310 all in one and then it stopped and would only print the curent page. This is tedious for long PDF docs. I am on 10.6.8 .

    Used to be ablert to print multiple page pdf files on my HP 7310 all in one printer and now I can only print the current page and therefore it takes forever printing them one by one. I am in version 10.6.8. Tried printing as image using the advanced click and that did not work either.  I have Adobe 9.0 reader installed.

    I tried this earlier, and I tried it again today.  Both times it said "Software Missing!"  and "HP Software required to connect to your printer over the network could not be found on this computer."  But when I tried to install the software (AIO_CDB_Net_Full_Win_WW_130_141.exe, which I downloaded from HP's web site), it wouldn't install, as described above.  In the diagnostic utility, I clicked "skip", and it said "Connection Verified!", and "The printer is connected to the network and the services related to the network connections have been verified and reset to a normal operating state.  Everything appears to work fine at this point.  Please doa test print to verify that the issue is resolved or click Skip to move to the next step."  I clickedthe "Test Print" button, and immediately it popped up a box that said "Test Print Failed."
    I tried again to install the HP software, and it installed, detected the printer, and asked me to select it.  I selected the printer, clicked "next", and it did its network diagnostics.  Then it said "Problem(s) found with your network" and "Problem(s) may exist with the network functions of your printer . . ."  I continued the installation without connecting to the printer.  Then I ran your network printer diagnostic tool again, and got the same result - "HP Software required to connect to youir printer over the network could not be found on this computer."

Maybe you are looking for