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.

Similar Messages

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

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

  • 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

  • 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

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

  • 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

  • All Labels in the Smartform  should be printed under one spool request ?

    Hi All,
    I need to print the labels with some data .At a time I have to print 10 labels with the same Spool request. I have required data in one internal table .I am looping the internal table and printing the label.In this case every time control leading to Print prview, and when i click on PRINT button then only It is leading to the Spool.For each print it is creating a new spool .
      But My requirement is , I need all the labels should be printed under only one spool .And I can see the print preview only once , and  if I click on print  button 10 labels(depending on the records in internal table) should be printed .Cotrol should not come again to the Print popup .
    Thanks,
    Suresh Kumar D.

    Hi,
    As per your requirement, if you want to print 10 labels, in same spool request, design your smart form like that,
    I mean design 10 labels in your smart forms.
    I hope this is easy solution.
    Regards,
    Sreenu.

  • 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

  • Number of pages in new spool request

    Hello.
    I use FM RSPO_RETURN_ABAP_SPOOLJOB to extract lines from a given spool. Then I open a new spool with FM RSPO_SR_OPEN. Each line of the table coming out of RSPO_RETURN_ABAP_SPOOLJOB is written to the new spool. Afterwards i close the new spool with FM RSPO_SR_CLOSE.
    So far so good. This works fine.
    My problem is that when i take a look into transaction SP01 the old spool has a certain number of pages. SP01 maintains that the new spool has 0 pages.
    How does that come? How can I solve this?
    Thx in advance
    Mike

    Thank you all.
    My problem was that during the process of data extraction (old spool -> internal table) the NEW-PAGE-tags are deleted or at least they were not transferred into the table. And so the could not have been written into the new spool.
    Solution:
    Every 65 lines, that are written into the new spool request, I call RSPO_SR_PAGE_BREAK.
    Thank you anyway.
    MIKE

  • How to print two alv lists in one spool request

    Hello,
    I have made a report which has one alv list based on CL_SALV_TABLE and a message box displayed in a splitter container based on SBAL. In dialog mode everything is fine.
    If I run the report in batch mode, I have put the alv table to
    list_display = abap_true.
    For printing the messages I am using FM BAL_DSP_LOG_PRINT. It has this nice parameter
    i_s_list_append = abap_true.
    Unfortunatly the messages are not appended to the alv list, nor are they in the same spool request.
    I think the system will put it only into the first spool request, when the name, the printer, the number of prints and the format are the same and of couse, if the spool request is still open for appenfing (which it is).
    The name and the format are not the same in my case. So I tried to set the name to TEST using the print options of the FM
    ls_print_options-print_ctrl-pri_params-plist = 'TEST'.
    But unfortunately it is not working. No changes to the name, when I run the report in batch mode.
    Who has experiance with that? Why are both lists not in the same spool request? Are my findings right? Why isn't the name changed?
    Thank you for your help,
    Peter

    do 2 times
    perform write_form.
    end do.
    for header u can give condtion in form.
    use if condition in the editor...
    this will help u...
    Reward IF....... <= IF what? Points removed... read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]!
    Regards
    Anbu
    Edited by: Julius Bussche on Jul 17, 2008 7:01 PM

  • Additional pages in multipart spool requests.

    Hello,
    does anybody also encountered the problem, that for some printers additional pages between the files of a multipart spool request are printed? The page just contains @PJL. It occurs with our own printouts and also with FP_TEST_00.
    Device type is HPLJ4.
    In addtition, we want to use a stapling functionality on another printer, but that printer does treat the multipart print as one printout. So the stapling is by part and not by spool request, It may be the same cause.
    Any idea?
    Kind regards
    -Jürgen-

    Please go through the below links, that might help you....
    http://h30499.www3.hp.com/t5/Black-and-White/PJL-Errors/td-p/4082827#.U2t_otIW1Ns
    http://forum.support.xerox.com/t5/Printing/Extra-page-with-PJL-info-is-printed-with-every-print-job-on/td-p/266
    Naveen.

  • Want to integrate all jsf pages into one application like globle mene

    Hi,
    i have created lot of jsf pages, that all are in diffrenet-2- systems. Now i want to integrate all page in one system for one application. please tell me how i can integrate these in jdeveloper.
    Thanks in Advance.
    Sanjay

    Hi,
    if you want them all under one J2EE context root during runtime then you have to move the files to one project root, which is a manual configuration to do. For build requirements like this i think looking into Apache Maven could hep.
    Frank

Maybe you are looking for

  • How can I get rid of the "other" GB in my HD? HELP! ASAP!!!!

    I recently purchase a new EHD and I already did a backup, I have too many pictures and I am planning on moving my iPhoto library to the EHD, but I noticed that I have a ridiculous amount of space in the "other" section? What is this? How can I get ri

  • How can I add 100s of old photos to albums on my N...

    Hi - I've just switched to an N80. I've got hundreds of photos from previous phones stored in folders. As you'll know, to get this category effect on the N80 I'll need to add them to albums. Any ideas of how I can do this easily for such a large numb

  • Does my hp Officejet Pro L7590 have a hard drive?

    For Security reasons, is there a hard drive that needs to be removed prior to disposing of my Officejet Pro L7590?

  • IPhoto behaving oddly

    I imported all my photos into iPhoto and all my folders correctly showed up as events. However, several of the event are black squares with no photos. All the photos are still visible in Finder but not in iPhoto's. What did I do wrong.

  • Using multiple headphones with apple tv and projector?

    Hi, I own a Barbers where we have an apple tv set up with a projector (through HDMI). It would probably be a good point to say this is attached to the ceiling As we're trying to take things to the next level, i was wanting to provide over-ear headpho