Combining multiple smartform output in one spool request

Hi,
I'm calling 5 different smart forms from driver program based on some conditions and trying to merge the output of each of these smart forms in a single spool request. I achieved this by setting control parameters no_open and no_close based on first or last print.
The problem i'm facing now is when i call one particular smart form ZSMARTFORM6 along with other smartforms i'm getting a error FORM SMARTFORM6 has wrong Page format.
If i call only this smart form it is working correctly.
Any idea how to avoid this error message.
Regards,
Raghavendra

Hi
In The control Parameters u have an Option NO_OPEN   and NO CLOSE  u have to use this to combine multiple SSF to one Spool
DATA SSFCTRLOP LIKE SSFCTRLOP.
CALL FUNCTION 'SSF_OPEN'
SSFCTRLOP-NO_OPEN = 'X'.
SSFCTRLOP-NO_CLOSE = 'X'.
CALL FUNCTION SMART1
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION SMART2
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION SMART3
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION SMART4
EXPORTING
CONTROL_PARAMETERS = SSFCTRLOP
CALL FUNCTION 'SSF_CLOSE'
Surya
Edited by: suryareddy on Aug 27, 2009 9:24 AM

Similar Messages

  • Display all sales order's smartform output in one spool request

    Hi,
    If suppose user has given sales order number from 01 to 14 then the output of all sales order should come in one print priview of spool request. How to do it?
    Please help.
    Thanks in advance,
    Rgds,
    Madhuri

    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

  • 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

  • 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

  • Print multiple copies of a smartforms in a one spool request

    Dear all,
    I've a network printer "HP Laserjet 4250" configured with an output accessory "Sheet Stapler/Stacker".
    With these accessory all pages of the same spool are stapled together.
    For transaction VL02N we would print n copies of the same delivery using smartforms in this printer, so all copies will be stapled.
    The problem is that in SPAD Copy Counter options if we set the choice "Pass copy counter to the host spool system" only one copy is printed;
    it seems that copy counter parameters has no effects.
    If we set the choice "Pass copies as separate Output Requests", the spool system will send a separate print request for each copy of a document to be printed; but with this option multiple copies are not stapled since they belong to different spool.
    SAP System is ERP 6.0 EHP5 based on windows /SQL 2008 and the last kernel patch.
    Any idea to solve the problem ?
    Thanks
      Maurizio Manera

    Hello,
    By default the number of copies is transferred to the OS host spooler
    and handled by it.
    The flag to pass copies is set in the Output Device definition via
    transaction SPAD as follows:
      SPAD -> Output Device -> <Output Device name> -> Output Attributes ->
              'Pass Copy Counter to Host Spool System'
    Can you please change this flag to:
       'Pass Copies as Separate Output Request(in SAP System)'
    regards,
    John Feely

  • SAPScript ouput + Smartform Output in ONE SPOOL

    Hey folks,
    I have a single print program and I am using it for 1 SAPScript Layout and 1 Smartform Layout.
    Everything works great,except that the outputs get created in 2 separate spools after execution.
    Is there any way I can trigger both of them into a single spool?
    The SAPScript needs to be get printed first and then the Smartform.
    Help would be greatly appreciated!
    Thank you.

    Hi,
    you have to check the outputparameters of the smartform and the sapscript.
    You have several options for it. I do not know them all by head.
    for smartform you have ssfcompop-tdnewid. if this one is X you create a new spool it it is space it uses an open one.
    ssfcompop-tdfinal is to close a spool.
    I hope this offers you ebnough help to solve problem.
    Gr., Frank

  • Multiple smartform output to single pdf file

    HI,
    I am new to ABAP. I have a requirement to combine multiple smartfrom output to  single pdf file.  I searched in this site. I got material but i did not get the complete concept. Can anybody tell me the methodology and sample code to do that.
    Thanks & regards,
    Maha.

    Hi Mahalakshmi,
    Clik on the link to view document: <b>[Combining Multiple Smartform Outputs Into One PDF File|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?overridelayout=true]</b>
    Thanks
    Venkat.O

  • Many smart outputs outputs under 1 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

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

  • 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

  • How i can combine multiple pdf files in one file using a macbook air

    how i can combine multiple pdf files in one file

    The application Preview.
    Preview Help.
    Save combined PDFs
    Open the PDFs you want to combine.
    In each open PDF, choose View > Thumbnails to display the pages of the PDF in the sidebar.
    Drag the thumbnails you want to add (Command-click to select noncontiguous pages) to the thumbnail sidebar in the other PDF.You can add pages to the end of the document or between pages in a document. Drag thumbnails to reorder them. You can also add a PDF file before or after another PDF document.
    Choose File > Export to save a new PDF containing all of the combined pages, or choose File > Save to replace the original version of the destination PDF with the version containing the combined pages.

  • Is there a way to create multiple BQY output to one of the Job File ?

    Hello,
    I am using EPM11.1.2.3.501 version.
    BQY report due to the large amount of data, it is difficult to use a WebClient.
    So will share on a quarterly basis.
    However,
    If modifications are to occur,There are difficulties must modify each file.
    For example,
    Register 2014 1Q, 2014 2Q, 2014 3Q, 2014 4Q BQY Job file.
    When you run the job, the output of the job file is created.
    If the job file is changed, you must modify all four files.
    This will be only grow ations.
    Is there a way to create multiple BQY output to one of the Job File ??
    Please help me.
    Thanks

    It is not possible to have multiple BQY outpu into a job file.
    Thanks,
    KK

  • Hello Apple community... I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.

    I am trying to combine multiple pdf's into one, using preview, but when I drag the additional pages they show up as separate documents.  When I drag the doc in a line would show up in the past, and if I went above th eline all was good.  It doesn't have a line, and no matter what I try I am having no success.
    Please help!

    According to an Apple Support article, unless there are unforeseen issues
    in file ownership or permissions, the combining of .PDFs should be simple.
    •OS X: Combining PDF documents using Preview - Apple Support
    There are a few variable and similar methods, some change with version
    of OS X in use; some vintage OS X may vary a little in the process...
    A variety of similar topics appear in search results, with terms:
    " mac os x combine pdf into one " such as this page shows...
    https://www.google.com/?gws_rd=ssl#q=mac%20os%20x%20combine%20pdf%20into%20one
    If the system is older than Mavericks there may be other methods to try.
    Suggestions are among linked results in the search. I see a few fair ones.
    •Here's another that offers generally similar suggestions...*  this info looks OK, extra links, do not:
    http://osxdaily.com/2014/06/27/how-to-join-multiple-pdf-files-into-a-single-pdf- document-in-mac-os-x/
    { note: avoid clicking on links to products in * this ^ page, since they likely will not help & may be adware prone }
    If you have a problem after trying other methods, based on an OS X
    your computer is running, post back with more exact information...
    Good luck & happy computing!
    edited

  • How to put the alv output into the spool request?

    Hi guys,
    How to put the alv output into the spool request?
    Thanks!

    Hi
    Sending an ALV List screen output to SPOOL
    Convert ALV list to PDF and send mails to respective persons
    Regards
    Pavan

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

Maybe you are looking for