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

Similar Messages

  • 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

  • New Spool Request for each purchase order

    Hi all,
    Whenever i create Purchase Order, spool is generated. But when i create one more purcahse Order new spool is not getting generated.
    It is goind inside the same pool.
    I want the spool number, so i can generate the pdf for the PO form and send it through mail through workflow.
    Kindly adivce me how to generate new spool evertime when new PO is created.
    Regards,
    Rahul.

    Hi,
    Generated Spool request number is in table TSP01.
    Retrieve that number and pass to function module CONVERT_ABAPSPOOLJOB_2_PDF to generate PDF.
    SO_DOCUMENT_SEND_API1
    This function module enables you send a new document including any existing attachments. The document and the attachments are transferred in the same table. They are created when sent and can also be placed in the sender's outbox.
    Regards,
    Supriya.

  • How do you preview using a spool request number

    How do you preview using a spool request number?
    I have an application in which I have accumulated the results from several smartforms into one spool request. I have the spool request number, and am printing it using function RSPO_RPRINT_SPOOLREQ.
    I need to be able to preview the contents of the spool request before printing. I can not preview when generating the smartforms, as that involves several previews, and I need to preview once only per spool request.
    I have been trying to use RSPO_RDISPLAY_OUTREQ but it dumps immediately (line 47) with field symbol <FTSP01> not assigned.
    Suggestions?

    *With no faction module "COM_SE_SPOOL_DISPLAY", try this simple code, you can display the form *type spool (you also can put the code in a function module):
    REPORT  ypl_test_display_spool MESSAGE-ID zm_print.
    PARAMETERS: rqident LIKE tsp01-rqident,
                            rqdocty LIKE tsp01-rqdoctype.
    *--- there may be more types need to separate..., so use case...
    CASE rqdocty.
      WHEN 'OTF' OR 'SMART'.
        PERFORM display_form.
      WHEN OTHERS.
        PERFORM display_others.
    ENDCASE.
    *&      Form  DISPLAY_FORM
          display form type spool...
    FORM display_form.
      DATA: wstr_otf_control TYPE itcpp.
      DATA: wtbl_buffer TYPE TABLE OF soli WITH HEADER LINE.
      DATA: wtbl_otf TYPE TABLE OF itcoo WITH HEADER LINE.
      DATA: wstr_retcode LIKE itcpp.
    *--- return spool raw data
      CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
        EXPORTING
          rqident              = rqident
        TABLES
          buffer               = wtbl_buffer
        EXCEPTIONS
          no_such_job          = 1
          job_contains_no_data = 2
          selection_empty      = 3
          no_permission        = 4
          can_not_access       = 5
          read_error           = 6
          type_no_match        = 7
          OTHERS               = 8.
      IF sy-subrc <> 0.
        MESSAGE s013 WITH text-001.
        EXIT.
      ENDIF.
      LOOP AT wtbl_buffer .
        wtbl_otf-tdprintcom = wtbl_buffer(2).
        wtbl_otf-tdprintpar = wtbl_buffer+2.
        APPEND wtbl_otf.
      ENDLOOP.
    *--- some data to pass to this parameter, may not need...from SP01...
      wstr_otf_control-tdcopies = 1.
      wstr_otf_control-tdappl = 'TX'.
      wstr_otf_control-tddest = 'LOCL'.
      wstr_otf_control-tdpages = 0.
      wstr_otf_control-tdnoprint = 'X'.
      CALL FUNCTION 'DISPLAY_OTF'
        EXPORTING
          control = wstr_otf_control
        IMPORTING
          RESULT  = wstr_retcode
        TABLES
          otf     = wtbl_otf.
      IF wstr_retcode IS INITIAL.
    *--- message...
      ENDIF.
    ENDFORM.                    "DISPLAY_FORM
    *&      Form  display_others
          display other types, may more types needed to separate...
          you can refer current version of SAP report RSPOLST2
    FORM display_others.
      CALL FUNCTION 'RSPO_DISPLAY_SPOOLJOB'
        EXPORTING
          rqident              = rqident
        EXCEPTIONS
          no_such_job          = 1
          job_contains_no_data = 2
          selection_empty      = 3
          no_permission        = 4
          can_not_access       = 5
          read_error           = 6
          OTHERS               = 7.
      IF sy-subrc <> 0.
        MESSAGE s013 WITH text-001.
      ENDIF.
    ENDFORM.                    "display_others

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

  • How to find out spool requist number respective Sales Order

    hi,
    I need spool number respective to Sales Order, after print out script.While taking print out of sales order by selecting respective output type  i am able to get spool request number in table TSP01 .Upto eveything fine .But how to find this spool  request number is belongs to that Sales order.
    Regards,
    Eswar

    SELECT * FROM tsp01 WHERE
                 rq0name = sy-repid  AND
                 rq1name = d_suffix1 AND
                 rq2name = d_suffix2 AND
                 rqowner = sy-uname.
              WRITE:/ 'Spool request issued',
                    /  'Spool Number:', tsp01-rqident,
                    /  'Spool Name  :', tsp01-rq0name,
                    /  'Suffix 1    :' , tsp01-rq1name,
                    /  'Suffix 2    :', tsp01-rq2name,
                    /  'Owner       :', tsp01-rqowner,
                    /  'Device      :',tsp01-rqdest,
                    /  'Copies      :', tsp01-rqcopies,
                    /  'Processed   :', tsp01-rqpjreq.
              SKIP.
            ENDSELE

  • 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

  • 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

  • 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

  • Function module to get spool request number

    Hi Experts,
    Is there a FM which basically returns the Spool Request Number generated by a particular Program / User ?
    System: 4.6C
    Thanks a lot.

    one more is there
    'RSPO_OPEN_SPOOLREQUEST'
    it will give the appropriate solution to your query.
    another one ,
    SUBMIT (p_repid) TO SAP-SPOOL
                       SPOOL PARAMETERS mstr_print_parms
                       WITHOUT SPOOL DYNPRO
                       AND RETURN.
    but it will create infinite loop , so use abap memory and export  a flag variable with
    a value to restricted the excution  of the above submit only once  and all the internal
    table and other data which you want in your program . below is the example .
    importing variable value set at first time to restrict the infinite loop .
    IMPORT var FROM MEMORY ID 'abc' .
      var = var + 1 .
    *checking variable to restricted scecond time exction of this block of code
    *IF var = 1 .
       v_memid = 1 .
       EXPORT var TO MEMORY ID 'abc' .  (flag variable to restrict the excution only once ) 
       EXPORT it_pernr it_pernr_quali v_memid TO MEMORY ID 'bcd'.(internal table and otherdata)  
    submitting the spool request
        SUBMIT (p_repid) TO SAP-SPOOL
                         SPOOL PARAMETERS mstr_print_parms
                         WITHOUT SPOOL DYNPRO
                         AND RETURN.
      ENDIF.

  • Relation with spool request number and invoice number

    Hi ALL,
    I have developed two function modules the first one generates the Invoice Number for a particular customer.
    Now on passing this Invoice Number to the second function module, I should get the Spool Request Number.
    I have developed the first function module.
    That Spool Request Number would display the invoice of the customer in the PDF format.
    So please help me how to get that Spool request number.
    Thanks and regards
    rama

    Hi,
    in your case when ever invoice created you need to store the data like spool number,invoice number,user name etc..into a <b>ZTable</b>, and then when ever you enter the invoice select the data from the ZTABLE and convert the spool to PDF and show it.
    Regards
    vijay

  • How to delete the spool request number

    HI Masters,
                My program creates a spool request. And i want to delete that spool request number? How to delete that??
                  Thanks in advance.

    hi
    good
    The program are RSPO0041 or RSPO1041.
    This is handy whenever you encounter a user who managed to create a lot of spool requests which are choking your system.
    Deleting them with SP01 will be too slow and you will get time out if it exceed the online time limit specify by your basis people.
    <b><REMOVED BY MODERATOR></b>
    thanks
    mrutyun^
    Message was edited by:
            Alvaro Tejada Galindo

  • How to get the spool request number ?

    Hi All,
    I am working on a smart-forms. I am using a custom transaction to print these smartforms. When I execute
    the transaction the print screen comes where I can do
    print preview or print.
    Now to convert this Smart Form to PDF I need to know the spool request number to use in the report called RSTXPDFT5.
    How do I get the spool request number ?
    Do I need to do some changes in spool control options of print screens to get the spool request number or something else ?
    Please let me know.
    Answers will be awarded...
    Tushar

    Hi,
    You will get the spool no. in the parameter "job_output_info" after calling the smartform function module in print program. The spool ids of the prints is stored in table job_output_info-SPOOLIDS.
    Regards,
    Gagan

  • How can i find the spool request number in script

    Hi Experts,
    I need solution that how can i see the spool request number, bcoz i need to covert my script into pdf format.
    Thanks and Regards.
    Venkat N

    There isn't any correspondence. I seem to recall that Amazon added that feature to the Kindle app but I haven't checked lately.

Maybe you are looking for

  • A Tale of Woe and a Lesson to be Learned

    A Tale of Woe Well, it happened to me last night. I went to open the iPhoto 5 library dedicated to my latest book project and voilà, I had the dreaded gray thumbnails and the SWOD white, blank Edit window that comes up after double-clicking on one of

  • Second optical drive problem

    New to macs after a 14 year hiatus. I recently installed a new pioneer BDR-205 blu-ray drive as a second lower drive in my mac pro 2009 running SL and fully updated. The original first upper drive is a model HL-DT-ST DVD-RW GH41N. Pioneer and OWC bot

  • Need Info Regarding REPOSRC - DATA field.

    hi friends. i am doing some changes in my existing program, in which i m clearing the entry of Data field of the table REPOSRC. This part is based on the some authorization check. now when this part is getting executed, i am unable to see my actual c

  • Determination of Porg for MRP generated PRs

    Hello All, We have a requirement to transfer the PR into the SRM after ensuring that the Porg is also available so that only the unsourced items are sent to the SRM for sourcing. For certain MRP generated PRs wew finsd that the Porg is not available

  • Can't send image to Photoshop.

    Hi, All. I have done this successfully before in Lightroom 3 but it is not working in Lightroom 4. As I work on some of my images in Lightroom there are some I have tried to edit in Photoshop but the images won't open. I am running Photoshop CS6. As