REQUIRE One spool request for n copies in one print command in smartform

Hii Friends,
          I created a smartform..I require 5 copies of that form..There is a text which needs to be changed in evry copies...eg Original in first copy
                        Duplicate in second copy
                        Triplicate in third copy....n so on
So i used a loop n i am calling smartform 5 times....The problem is i need one spool request to be created..
Note: By default sometimes it create one spool request and sometimes 3 spool request...
Pls share your inputs ............
Thanks,
Regards,
Sujit.

hi,
this is more complicated see below description from help
regards,darek
Printing Several Forms in One Print Request
Use
You want to bundle several forms into one print job.
Print Request vs. Spool Request
SAP Smart Forms allows you to bundle several forms to form one output unit. This output unit is called a print request. A print request is different from a spool request:
Whether a new spool job is created in the spool depends on the settings in the spool dialog.
Whether a new print request starts depends on the standard parameters of the generated function module you set in SAP Smart Forms. For each print request, the spool dialog is called only once. If you suppress the dialog, you can pass parameters for spool processing only at the beginning of the print request.
This means that a print request gathers several forms before submitting them to spool processing. Thus they cannot be spread over several spool requests. Vice versa however, you can include several print requests into one spool request.
Procedure
Use function module SSF_FUNCTION_MODULE_NAME to retrieve the name of the function module generated from the Smart Form (see also: Integrating the Smart Form Into the Application).
Call the Smart Form for the first time and set the NO_CLOSE parameter of the control structure. This prevents the print request from being closed after accepting the output of the Smart Form and allows you to include all other form output into this print request as well. Leave the NO_OPEN parameter empty.
Instead of calling the Smart Form for the first time you can also call function module SSF_OPEN .
If you want to start a new spool request for the print request, set the TDNEWID field of the Output Options in this first call.
For all other form output of the application program that you want to include into the print request, use a loop to set both the NO_OPEN field and the NO_CLOSE field of the control structure.
To close the print request, in the call of the last Smart Form set the NO_OPEN parameter and unmark the NO_CLOSE parameter.
Instead of calling the Smart Form for the last time, you can also call function module SSF_CLOSE .
Result
The forms you called in the steps described above are included into one print request. If in the first step you started a new spool request, you can now view its status in the spool request overview (transaction SP01 ).

Similar Messages

  • FM to release the spool  request for printing

    I have requirement one of my program generate the spool request.
    now i need to schedule the print job in background.
    can any one help in specifing the Funtion modulde that can be used to releasing the spool request for printing

    Hi ,
    Please can one specify what are the parameters to be populated to make it run in the back ground
    right know i'm populating these fields.
    In SP01 it showing status as "Frontend Unavaliable".
    if i schedule the program in back ground.
    CALL FUNCTION 'RSPO_OUTPUT_SPOOL_REQUEST'
      EXPORTING
       COPIES                         = 1
       DEVICE                         = 'LOCL'
      DIVISION                       = '*'
       ENDPAGE                        = 0
       PRIO                           = 1
      RECEIVER                       = '*'
      REQEST_TITLE                   = '*'
        spool_request_id               = '9817'
      STARTPAGE                      = 0
      TELELAN                        = '*'
      TELENUM                        = '*'
      POSNAME                        =
      ACTTIME                        =
    TABLES
      ATTRIBUTES                     =
    EXCEPTIONS
       ARCHIVE_DEST_INVALID           = 1
       ARCHIVE_DEST_NOT_FOUND         = 2
       ARCHIVE_DEST_NO_RIGHT          = 3
       CANNOT_ARCHIVE                 = 4
       CHANGE_ARCHDEST_NO_RIGHT       = 5
       CHANGE_COPIES_NO_RIGHT         = 6
       CHANGE_DEST_NO_RIGHT           = 7
       CHANGE_DEVTYPE_NO_RIGHT        = 8
       CHANGE_PRIO_NO_RIGHT           = 9
       CHANGE_TELENUM_NO_RIGHT        = 10
       CHANGE_TITLE_NO_RIGHT          = 11
       DEST_INVALID                   = 12
       DEST_NOT_FOUND                 = 13
       DEST_NO_RIGHT                  = 14
       INTERNAL_PROBLEM               = 15
       INVALID_FAX_ATTRIBUTE          = 16
       INVALID_PARAMETERS             = 17
       NON_OWNER_NO_RIGHT             = 18
       NO_LAYOUT                      = 19
       NO_SPOOL_REQUEST               = 20
       OUT_AGAIN_NO_RIGHT             = 21
       SPOOLER_PROBLEM                = 22
       OTHERS                         = 23

  • Creating single spool request for printing all shop floor papers

    Hello PP Gurus,
    We are printing shop floor papers at the time of releasing production order using txn CO02. It creates individual spool request for printing different shop floor papers in the same orders . eg Pick list, goods receipt list etc.
    Is it possible to do the cofiguration setting to create only one spool request for all the different SF papers belong to same order.? If yes, please let me know the steps for customising this.
    Thanks for your help in advance.
    Regards & Thanks
    Rajesh D.

    In transaction OPK8, in forms uncheck the 'New List' check box for the List.
    Regards
    Ramanujan

  • Printing invoices with VF31 in only one spool request

    Hello,
    we want to print a number of invoices with VF31 using only one spool request, as at this time we become one spool request for each document.
    The problem is that VF31 calls indirectly RSNAST00 and this program makes a call to the print program where we have OPEN_FORM and END_FORM each time, so this creates one spool request every time the program is called.
    Is there a way to print in only one spool request without doing big changes to programs?
    Thanks and regards.

    Hi,
    To append to an existing spool, see the SAP Notes 85318 and 16410.
    For spools to be appended the parameters 'New spool request' and 'Do not Append Print Jobs' must be set to 'No' by the application creating the spools.
    For Sapscript, when the application call the function module OPEN_FORM in your print program, you can transfer a structure ITCPO to the parameter OPTIONS. Via ITCPO-TDNEWID, you can select the option 'New Spool Request'.Via ITCPO-TDFINAL, you can can select if the spool is closed.
    Regards,
    Aidan

  • How to create the multiple spool requests for a single report.

    Hi gurus,
                     I have one requirement to be completed , i need to send the out put of the report via mail in pdf format. for that what i did was, iam executing report in background and creating spool request and converting it to pdf and sending the file.
    now the problem is, its a customer ledger report, for each customer i need to create a new spool request and send mail to that particular customer, now my dought is how to create multiple spool requests for a single pro and how i need to go about it.
    And one more question is can we create a spool request for a report which is running in online.
    waiting for inputs frm gurus.

    Hello,
    As per my knowledge for creating new spool id you will have to set
    output_options-tdnewid = 'X'.
    and then using
    job_output_info-spoolids
    create a pdf using
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
    Rachana.

  • Many documents into one spool request

    How can I control the opening & closing of spool requests in ABAP?
    The context is a program that prints dunning letters and their associated billing documents.
    We want the hard copies to appear in the correct order (dunnning letter, its billing documents, dunnning letter, its billing documents,...)
    One way to achieve this could be to have a single spool request for each "dunning letter + billing documents" set of documents.
    Currently the documents go into the spool-request list in the correct order (in separate spool requests), but that does not ensure the correct order for the hard copies, since we have more than one work process handling the spool queue.

    My program is working: for each dunning letter and its billing documents there is one spool request.  Thanks, Christian.
    Some key points...
    [1] Invoices in table MHND can be other than SD invoices.  The non-SD ones were disregarded - trying to print them as SD billing documents would fail, and maybe mess up the logic for opening/closing spool requests.
    [2] For each billing document, I used itcpo values exactly as for its dunning letter, except that:
    for the dunning letter, itcpo-tdnewid = 'X' and itcpo-tdfinal = ' ';
    for billing documents other than the last, itcpo-tdnewid = ' ' and itcpo-tdfinal = ' '.
    for the last billing document for the dunning letter, itcpo-tdnewid = ' ' and itcpo-tdfinal = 'X';
    If you use different values of any of tddest, tdreceiver, tddataset, tdsuffix1, tdsuffix2,..., for instance, then you will get a new spool request, whatever the values of tdnewid or tdfinal.
    [3] Fortunately we already use our own print program for billing documents.  So just before the CALL FUNCTION 'OPEN_FORM', I tested the value of sy-cprog, and if it was the name of my report then I assigned as in [2] to the structure for the OPTIONS (i.e. itcpo) parameter of OPEN_FORM.
    [4] To pass values for [3] from the report to the print program, I used export/import to/from memory.
    [5] Because I was controlling the itcpo values, I was able to arrange that something helpful to the user appears in the Title column in 'Own spool requests' (transaction SP02).  This title comes from the itcpo fields tddataset, tdsuffix1 & tdsuffix2, and I arranged that the dunning level and the customer number appears in Title.

  • F110 - one spool request number per payment order --URGENT

    Hi folks,
      I am ABAPer working for ECC6 upgrade project when i am running F110 payment run for customers to generate payment orders i am getting all the orders in one spool request no, But i need to generate one spool request no. per payment order.
      thanks in advance for you valuble inputs
    regards,
    ramahari

    Hi Madhuri,
    Call open form write form and close form in loop so that till sales order remains in the loop the form will continue to print. In this way all sales order in internal table will print in the same spool.
    Hope this will help you.
    Regards,
    Vijay

  • Multiple Spool Requests for BACS Payment

    Hi,
    We are running payment program F110 for BACS payment.
    When we run F110 in production system, irrespective of no. of. vendors or payment line items, only one spool request is generated.
    But when we run F110 in quality system, multiple spool requests are generated for single payment run.
    please give your valuable suggestions, why this is happening like this?
    Regards,
    Praisty

    Dear,
    please check the prnitout/data medium variant which you selected during the payment run.
    Regards,
    Panneer

  • SCRIPT: all first pages has one spool request

    Hi Friends,
    i've copied the program RFFOUS_C and form F110_prenum_chk as  'Z"
    My requirement is given below,
    Bottom of the bond sheet has cheque and top of the page has remittence details(line item, per page has 20 line item)
    If the remittence details is exceeds in the first page then it goes to the second page(now its working fine)
    if the user gives the bulk cheque printing then all the first page should print under one spool request and all the second page should print another one spool request.
    Is it possible in ZRFFOUS_C program. if it is possible where we can change the logic.
    Thanks in advance,
    Vallamuthu.M

    Sure it is possible. If the title, prefix and suffix and suffix2 are same, printouts go to the same spool.
    The rest is just a bit of thinking and clever usage of START_FORM and END_FORM.

  • How to get SapScript and Smartform printed in one spool request?

    Hello experts,
    I want to print the production order package in one spool request.
    Print program consists of Smartform and SapScript.
    First page is in landscape format with barcode(Smartform) and the rest is in portrait format(Sapscript).
    In SAP documentation is written that it is possible for several Smartforms to be printed in one spool request.
    Is it possible for 1 Smartform and 1 SapScript called from a single program to be printed in one spool request?
    I have tested it with calling first the Smartform control-no_close= 'X' without success.
    Can anyone tell me if this is possible and how?
    Thank you.
    Kind regards,
    Danijela

    Hi
    In the driver program .
    *"Selection screen elements............................................
    SELECTION-SCREEN BEGIN OF BLOCK block  WITH FRAME.
    PARAMETERS:
    p_script   RADIOBUTTON GROUP rad1,
    p_smartform RADIOBUTTON GROUP rad1,
    SELECTION-SCREEN END OF BLOCK block.
    *"Selection screen elements............................................
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
    p_single RADIOBUTTON GROUP rad2,      " All the spool request
    p_ind    RADIOBUTTON GROUP rad2.
    SELECTION-SCREEN END OF BLOCK block1. " Single spool request
    If p_script EQ 'x'.
    w_form = 'Y_SCRIPT'.
      Elseif p_smartfom EQ 'X'.
       w_form = 'Y_SMARTFORM'.
    ENDIF.
    call function 'SSF_FUNCTION_MODULE_NAME'.
    Call function 'SSFCOMP_OPEN'.
    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 '    '-----> smartform function module.
    CALL FUNCTION 'SSFCOMP_CLOSE'.
    Regards,
    Sravanthi

  • Creation of spool request for a report without selection-screen.

    Hi Experts ,
    I need to create a spool request for ALV Grid report which is not having any selection-screen , after pressing F8 it will directly display the ALV Grid out put.
    Can any one help me how to run the above report in background which is not having selection-screen?
    Thank you & Regards.
    Rajasekhar.P

    HI,
    At transaction SE38 click Program -> Execute -> Background.
    Regards
    Sudheer

  • Dunning letter to four different customers in one spool request

    Hello Experts,
    I want to send a standard letter in DUNNING  to four different customers in one spool request. H ow it can be done, please reply with all the configuration steps.
    Thanks in Advance.
    Urmila S

    Hi Urmila,
    I have been able to generate a single spool for 4 and more customers with different dunning notices.
    I dont think there is any special setting needed.
    However, things that you may just check in dunning procedure is:
    - have you ticked on "notices by dunning area"
    - have you ticked on "notices by dunning level"
    I havent ticked on any of the above, and by default, in SAP I am getting a single spool generated.
    Regards,
    Asha

  • Allform outputs under one spool request?

    hai,
    iam executing the smart form for 10 customers(for sales orders).
    how can i get all these 10 outputs under one spool request?
    and if i execute the smart form ,i should not get the PRINT dailog screen.Directly , it should go to spool....how?
    regards,
    vrlreddy

    Hi,
    When calling your smartform FM, pass value 'X' for parameter user_settings as below.
    CALL FUNCTION lf_fm_name
               EXPORTING
                          archive_index        = toa_dara
                          archive_parameters   = arc_params
                          control_parameters   = ls_control_param
                          mail_recipient       = ls_recipient
                          mail_sender          = ls_sender
                          output_options       = ls_composer_param
                          user_settings        = 'X'
    This means standard user setting is used instead of asking for print parameter through PRINT dailog screen.
    Regards,
    Teddy

  • Spliting Spool Request for Dunning in background.

    Hi Experts,
    I'm having a requirement to split the spool request for every 1000 pages,as for more then 1000 pages for Dunning executed in background.
    the job is automaticaly canceled after 30 mn of execution
    => in F150, status of the printout is "Printout has terminated" .
    My requirement is to split the spool request using enhancement in print program.
    How can i split the spool request after 1000 pages and again print from 1001 to last.
    print program for F150 - SAPF150D2
    Thanks in advance.

    Hi Yusuf,
    There is no otherway to delete the spool request except giving the option delete in the authorization object S_SPO_ACT.Make sure that you havenot given the values SP01, SP0R under the authoriztion object S_ADMI_FCD. If you have given both  the authorization objects with the above mentioned values than that user will get the authorization to delete the spool requests created by the other users also. So if you want to restrict the user not to delete the spool requests created by the other users make sure , not to give him the values SP01, SP0R under the authoriztion object S_ADMI_FCD.
    Regards,
    Bharath.

  • Spool Request for 365 days?

    Hi Gurus,
    1.     One of my client wants the Spool request to be stored for 365 days
    So please let me know how can I store Spool request for 365 days?
    2.     By default how many days Spool Request is stored?
    3.     Any Spool related Parameter to hold the spool request for days?
    Your response highly appreciated
    Regards
    Ricky Smith
    Message was edited by:
            Ricky smith

    go into SM37 and cancel scheduling of SAP_REORG_SPOOL
    then, you can schedule program RSPO1041,
    check option at the bottom, you can specify usernames (creator).
    click on the arrow on the right, click on exclude single value and put your username
    adapt other parameters in this screen accordingly. call it SAP_REORG_SPOOL
    shchedule the same program and put parameters for 365 days four your special username only. call it SAP_REORG_SPOOL_SPC
    Result: you have 2 scheduled jobs:
    1. job that delete every old spool except for your special user
    2. job that delete 365 days old spool for your special users.
    Please award points if useful.
    Thaks.

Maybe you are looking for

  • I get every time after rendering four black bars around the video, I would like to fix this because it is not really professional.

    sorry for my poor english, I have a problem with adobe premiere elements 12 when I render I get a video black bars on all sides of the screen, which makes the video smaller. How do I fix this?

  • Timer shows incorrect hours on lock screen in iOS 7.0.4 (11B554a)

    Majority of time, I only use timer to count down for 30 min or 45 min so I did not notice the problem. However, when it came to 1 hour and 30 min, it displayed as 23:30:00 in the lock screen. Therefore I came back and checked again to make sure i did

  • Service pack 3

    i recently purchased Adobe Acrobat XI Pro Student and Teacher Ed (Windows, English).  during installation it stopped with the message "require Service Pack 3".  what is this, and where / how do download?  aslo, how do i remove all other / previous ve

  • Date Converter

    Hi, If input value is in String format "2000-09-09" we can convert into date using "java.sql.Date.valueOf" function. But if our input value is in "09-Sep-2006" String form, is there any java function( like "java.sql.Date.valueOf") to convert into dat

  • Opening CS4 .ai files in CS3

    Can I open Ill. CS4 .ai & .eps files using Ill. CS3 (without someone backsaving them for me first)? Thanks!