How to print multiple Smartform Templates

Good day Gurus,
I have 5 Smartform templates combined in one program. During printing if 1 data for each template is available, The pop-up screen also appears 5 times for me to print the templates. My question is how can I print the 5 templates using 1 pop-up screen. What I want is after pressing the PRINT button, all of the templates will automatically print.
Note that P_V_CONTRACTTYPE varies depending on the template to be used. That's why this procedure appear 5 times also.
For the controls, these are my inputs.
- control-no_dialog = ' '.
- control-preview   = ' '.
- w_aux-tddest      = 'LP01'.
determine smartform function module for service request
  call function 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = p_v_contracttype
    IMPORTING
      fm_name            = lf_fm_name
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      others             = 3.
   MESSAGE 'For Multiple Contracts, Only First 10 pages will be displayed.' TYPE 'I'.
  call function lf_fm_name
    EXPORTING
       output_options     = w_aux
       user_settings      = space
       control_parameters = control
      it_noutput          = it_noutput2
      var_lessee_rep      = var_lessee_rep
      var_uses            = var_uses
      var_basic_monthly   = var_basic_monthly
      var_secdep          = var_secdep
      var_lessee_add      = var_lessee_add
      var_other_charge    = var_other_charge
    TABLES
      it_lessee_rep       = it_lessee_rep
      it_noutputrent      = it_noutputrent
      it_uses             = it_uses
      it_basic_monthly    = it_basic_monthly
      it_percentage_rent  = it_percentage_rent
      it_secdep           = it_secdep
      it_noutputrentB     = it_noutputrentB
      it_lessee_add       = it_lessee_add
      it_other_charge     = it_other_charge
      it_noutput          = it_noutput2
       it_adv_rent         = it_adv_rent
    EXCEPTIONS
      formatting_error    = 1
      internal_error      = 2
      send_error          = 3
      user_canceled       = 4
      others              = 5.
Thanks in advance.

Use tdnewid in the control parameters to create spool number on each template.

Similar Messages

  • How to print multiple smartforms ( 2 or 3 SM )  in one page serially .

    My requirement is -  I want bank-branch wise smartforms that too serially one after another . Depending on  space of  page it should print no. of smartforms on pages upto the last smartform.
    for example
    smartform1 takes only 10 lines .
    smartform2 takes only 15 lines.
    and 1st page has 30 lines.
    then  smartform1 &  smartform2 should  get printed on the same 1st page serially one after another.
    And if  smartform3 has 25 LInes then it should printed on next page alone and  smartform4 on next page and so on,.
    Right now I am getting  smartform1 on page1 ,
                                         smartform2 on page2,
                                         smartform3 on page3
                                         correctly branch-wise.
    So how to obtain the above requirement , can ANYBODY tell me ?
    With Regards,
                             Ashish G.

    Hi,
    I am sorry, I use wrong word. Similarly like Protect.. end protect there is a same concept like PAGE PROTECTION in smartforms.
    So you can use that.  PAGE PROTECTION work exactly as Protect.. end protect in script.
    You can achieve this functionality through style also ( Just check checkbox of PAGE PROTECTION and add that style in ur loop).
    So it will work..
    No need of triggering smartforms multiple times. Put ur logic, as if 1 loop will act as 1 smartform and use PAGE PROTECTION and when 2nd time loop will be triggered, will print as 2nd smartform, So you might be able to achive your functionality...
    Thanks & regards,
    Mihir.
    Edited by: mihir6666 on Jul 11, 2011 11:19 AM
    Edited by: mihir6666 on Jul 11, 2011 11:23 AM

  • How to print multiple footers for each page in RTF template xml report.

    Hi,
    How to print multiple footers for each page in RTF template xml report.
    i am able to print ( two sets ) ...
    up to last page ( one template ) and for last page ( another template).
    i want to change the footer information based on the group value printed in the report ( it might be 5 to 6) In every report run.. can you please check and let me know do we have any feasibility to achieve this.
    Thanks in advance.
    Regards,
    KAP.

    You can remove all other logic, like last page only contents (start@last-page:body), etc and section breaks if any you have inserted manually.
    Just have for-each@section logic.
    It would be difficult for me to guess what you have done without looking at your RTF or describing here.

  • How to print multiple copies on one page ?

    How to print multiple copies of one document on one page ?
    in coreldraw I used to make the document -for example a business card 5x9 - and when sending to print it automatically placed the number of cards that would fit in my A4 sheet.
    how do I make the same operation in Indesign.
    thanks

    Hi, Peter S.
    >I can see that as a shortcut to printing a page of different cards for multiple people, but to do a simple n-up of a single card it seems overly complex to me. What am I missing?
    * It's just an alternative to copy/paste and step/repeat.
    * For a one-time only use, perhaps it's a little more complex than necessary. But for any future needs, only the content of the data file needs to be changed, either by editing, or by pointing to a new data file. If different cards for multiple people becomes necessary, it's ready to go.
    Regards,
    Peter Gold
    KnowHow ProServices

  • Can anybody explain how to print multiple copies of different documents at the same time as at the moment I have to open each individually and press print

    Can anybody explain how to print multiple copies of different documents at the same time as at the moment I have to open each individually and press print

    is this a windows in bootcamp question ?

  • How to Print multiple Records under one level in Etext templates.

    Hi,
    I am working on the Etext templates and customizing the standard template “US NACHA PPD FORMAT”.
    This standard template don’t have a addenda record.. I have modified and it is working for single Addenda records. But when I have multiple ADDENDA records to be printed in one particular *<outboundpayment>* level, it is not printing.
    How do I modify the template so that Multiple Addenda records get printed?
    Note:     I have multiple *<MyPayables>* tags under *<OutboundPayment>* tags.
    Please help me in understanding this…
    Regards
    Pradeep G

    What you probably need to do is generate each bio
    individually with the
    <cfdocument...> tag just the way you want them. And
    then use some of
    the advanced <cfpdf...> functionality that allows you
    to append two or
    more individual PDF's into a single large PDF.
    Here are some resources that describe some of the
    <cfpdf...> functionality.
    http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
    http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
    http://cfpdf.blogspot.com/
    http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html

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

  • 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

  • How to print multiple pages of same form with one print command

    Hi,
    I have created a cheque print form in smartform. There is provision to print multiple cheques. I give multiple cheque numbers from my selection screen and for each cheque the smart form is called in loop.  Currently I get preview of 1st cheque then I print 1st cheque then click on back, cancel or exit button and then I get preview of second cheque ans so on...
    Now I want to print all the cheques with one print command.
    Please advice.
    Regards,

    Instead of looping at the smartform multiple times, pass an internal table with the data content to the smartform and use loop/ Table youroption  in ur smartform in the main window.in this way u can achieve printing multiple cheques at once and avoid previewing the document several times.
    Edited by: Mithun Shetty on Feb 25, 2011 8:56 PM

  • How to print multiple emails on one page

    How do I print multiple emails on a single page?

    Thanks, but fumbling around I think I found a better solution.
    All of the incoming e-mails have a see more from...." line in blue type at the bottom. When I click on the"See more from…"  line it opens up the entire chain of discussion which can then be printed on a single page. Exactly what I've been searching to do.

  • How to print multiple copies of same image (with specific fixed dimensions) on single page

    I am using Photoshop Elements 10 on Win 7 PC.  I am trying to print multiple copies of one image on a single 8.5x11 sheet of paper? The images are artwork for buttons (to be used in button-making machine) so the dimensions must be exact on the duplicated images.  When I select Picture Package, the images are resized to fit the dimensions in the picture package. When I select Contact Sheet, the images are resized to fit the number of columns I selected.  Neither is acceptable.  How can I repeat the same image on a single piece of paper without having the system re-size the image?  I know that I can manually create a new PSE file and manually insert the images into this file.  This is what I have been doing as a work-around.   But I would hope there is a better/faster way.
    Thank-you!

    A variation of hatstead's method where the pictures are precisely aligned:
    1. Add the picture to the blank file as hatstead described. Use the Move tool to position the picture in the upper left corner.
    2. Duplicate the layer. Use the arrow keys (NOT the mouse) to move the new layer to the right.
    3. Repeat step 2 until the row is filled:
    4. Merge Down the 3 layers into one. Alternatively, link the 3 layers and do a Merge Linked as in this example. The end result is the pictures in the row are on one layer:
    5. Duplicate the layer and use the arrow keys to move this down to the 2nd row.
    6. Repeat step 5 to create additional rows.
    7. Finally, to center the whole thing on the sheet, link all the row layers and position with the arrow keys.
    Note that you can also custom-make your own Picture Package. Instructions for this should be somewhere in Help.

  • How to print multiple mail forms in a single run?

    How can multiple, personalized letters be printed out from SAP CRM 7.0?
    Business requirement:
    When for example entrance tickets for a trade fair are sent to a group
    of customers, the accompanying letters are to be printed out of the CRM
    system.
    In SAP CRM 5.0 this was done by creating a marketing campaign, linking
    a target group & assigning a mail form to it.
    By selecting the communication medium "Printer" it was possible to
    print multiple letters in one run and send these documents by mail (not e-mail).
    The quantities of letters that have to be sent are too small to
    outsource the job to an external service provider (e.g. a printing house).
    In the latest version of SAP CRM the communication medium "Printer" is
    however no longer available in marketing campaigns.
    Does anyone know how this requirement can be met in SAP CRM 7.0?
    Thanks in advance for your reply,

    Thanks for your reaction.
    We considered working this way, but the idea was dropped because the quantities of letters that have to be sent are too large (several hundreds) & also because no follow-up of these activities is needed.

  • How to print multiple photos in Photo Papers Plus?

    Hi, may I know how to print out multiple photos (let's say 2 photos) in Photo Paper (Mine is Photo Paper Plus Semi-gloss, 4*6 inch), without border (Borderless). Thank you.

    I don't have your particular program, but many use Page Setup to configure the layout of printing from the File menu.    If you can save as PDF you can configure Preview to change the page layout that way.

  • How to print multiple photos on one page

    How do I print multiple photos onone page

    Create a new blank document the size of your paper and then copy the photos you want to print into it. They'll each come in on a new layer and you can move them wherever you want, rotating if wanted, to make best use of the paper.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • How to print a web template in background

    Hi experts,
    i want to print a web template which includes 4-5 Queries over a background job for different Profit Centers (for example, for all Profit Centers that are in Region Europe)?
    How can i simply achieve this ?
    Thanks.

    Hi Arun,
    web template have a variable, that is Profit Center
    Now user wants to give on web, only Region = Europe, not Profit Center. (Region is an attribute of PC)
    Then he wants to have for each Profitcenters in Europa (let say 50 PCs) a seperate printout.
    Now he should call the report 50 times for each profit center should click on Print Button...
    Cheers

Maybe you are looking for

  • My iPhone 4 is not recognized by Windows 7 but syncs with iTunes.

    Driver fails to load. Device manager considers my iPhone a MTP USB.  I have deleted and re-installed iTunes with no resolution. I have read several strings regarding Autoplay. Nothing seems to work. 

  • Using Lightroom 5 as stand alone to convert RAW, then save to CS2?

    I am a professional photographer, and I am perfectly happy with my CS2 version of Photoshop, as I can get it to do everything I need, without spending another $600 on the newest version. Unfortunately the new camera I purchased needs either CS6, or L

  • Firefox not loading tabs from last session

    A few days ago I set up my laptop from scratch after a long time of not using it. In the process, I set up Firefox Sync to link it to my desktop's browser. This is the only thing I have changed recently. However, after rebooting my laptop, I noticed

  • Preview Slideshow Transitions Help

    Hi Folks, we're running OSX Mavericks and are troubleshooting this little issue: on all previous versions of Preview, one could run a full-screen slideshow using a group of photos/pdfs/whatever, and each 'slide' would transition to the next using a s

  • Keyboard Shortcut for moving audio

    Is there a keyboard shortcut to move an audio track the smallest increment?  I am trying to sync audio with video and when I use the mouse to drag the audio left of right along the timeline, it jumps more than the minimum allowable increment. Thanks