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

Similar Messages

  • How to create new spool request in smartforms??????

    hi all,
    i have to ctreate a new spool request for a smartform...
    The driver program for this smartform is a standard program.
    when i run the transaction, the spool for standard sap-script gets created but not for my smartform.
    the code is something like this:-
    wa_ssfcompop-TDDEST = 'LOCL'.
    wa_ssfcompop-TDIMMED  = space.
    wa_ssfcompop-TDNEWID = 'X'.
    wa_ssfcompop-TDFINAL = 'X'.
    *wa_ssfcompop-XSF = 'X'.
    wa_SSFCTRLOP-no_dialog = 'X'.
      CALL FUNCTION v_fm_name
        EXPORTING
         CONTROL_PARAMETERS = wa_SSFCTRLOP
          OUTPUT_OPTIONS     = wa_ssfcompop
          wa_rldri         = xrldri
          wa_rldrp         = xrldrp
          wa_rldru         = xrldru
          wa_t329p         = xt329p
          wa_resb          = xresb
          wa_rldrc         = xrldrc
          wa_vblkk         = xvblkk
          wa_vblkp         = xvblkp
          wa_rldrh         = xrldrh
          wa_rlvek         = xrlvek
          wa_reftab        = xreftab
          wa_lthu          = xlthu
          v_date           = v_date
          v_time           = v_time
          v_label          = v_label
          v_bzeit          = v_bzeit
          v_name1          = v_name1
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_rldri         = xrldri
          it_rldrh         = xrldrh
          it_rldrc         = xrldrc
          it_vblkk         = it_vblkk
          it_vblkp         = it_vblkp
          it_rldrp         = it_rldrp
          it_rldru         = it_rldru
          it_t329p         = it_t329p
          it_resb          = it_resb
          it_rlvek         = it_rlvek
          it_reftab        = it_reftab
          it_lthu          = it_lthu
        EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Help would be greatly appreciated and definitely rewarded

    hi
    good
    Use the function module 'GET_PRINT_PARAMETERS'.
    sample:
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
    ARCHIVE_ID = C_CHAR_UNKNOWN
    ARCHIVE_INFO = C_CHAR_UNKNOWN
    ARCHIVE_MODE = C_CHAR_UNKNOWN
    ARCHIVE_TEXT = C_CHAR_UNKNOWN
    AR_OBJECT = C_CHAR_UNKNOWN
    ARCHIVE_REPORT = C_CHAR_UNKNOWN
    AUTHORITY = C_CHAR_UNKNOWN
    copies = g_copies
    COVER_PAGE = C_CHAR_UNKNOWN
    DATA_SET = C_CHAR_UNKNOWN
    department = ''
    destination = g_destination
    expiration = g_days
    immediately = ' '
    IN_ARCHIVE_PARAMETERS = ' '
    IN_PARAMETERS = ' '
    layout = 'X_65_200'
    line_count = 65
    line_size = 200
    list_name = g_listname
    list_text = g_listtext
    MODE = ' '
    new_list_id = 'X'
    PROTECT_LIST = C_CHAR_UNKNOWN
    no_dialog = 'X'
    receiver = 'SAP*'
    release = ' '
    REPORT = C_CHAR_UNKNOWN
    sap_cover_page = 'X'
    HOST_COVER_PAGE = C_CHAR_UNKNOWN
    PRIORITY = C_NUM1_UNKNOWN
    SAP_OBJECT = C_CHAR_UNKNOWN
    TYPE = C_CHAR_UNKNOWN
    USER = SY-UNAME
    USE_OLD_LAYOUT = ' '
    UC_DISPLAY_MODE = C_CHAR_UNKNOWN
    DRAFT = C_CHAR_UNKNOWN
    ABAP_LIST = ' '
    USE_ARCHIVENAME_DEF = ' '
    DEFAULT_SPOOL_SIZE = C_CHAR_UNKNOWN
    PO_FAX_STORE = ' '
    NO_FRAMES = C_CHAR_UNKNOWN
    IMPORTING
    OUT_ARCHIVE_PARAMETERS =
    out_parameters = g_params
    valid = g_valid.
    IF g_valid <> space.
    NEW-PAGE PRINT ON PARAMETERS g_params NO DIALOG.
    IF NOT tb_output3[] IS INITIAL.
    LOOP AT tb_output3 INTO wa_output3.
    PERFORM write_summary.
    ENDLOOP.
    ENDIF.
    Reward if useful...
    thanks
    mrutyun^

  • New Spool Request not generating

    Dear All,
    I have seen print preview of one PO and taken print which has created a spool request.
    Another PO also I have seen the preview and taken print, but it has added to previous spool request as second page.
    My problem is I need to generate new spool request for each PO. Where do I need to do setting for this. Pls guide.
    Rgds
    Srini

    Hi Srinivasan,
    In the print program, try setting the parameter TDNEWID  to  'X'.
    Following link can help you ..
    Stop the combining of spool request to an existing one

  • Always generation of new spool request when using message type WNAK

    Hey!
    I have one question regarding the printout of message type WNAK.
    In SAP standard the print program RWBNASTV and entry routine ENTRY_ABR_NATRAB is used.
    Now I want to ensure that at every printout generates a new spool request.
    Problem is that when a user prints a purchase order and after that a Sett. Crdt Agrmt (WNAK) the second printout is attached to the previous spool.
    How can I ensure that there is always a new spool file generated without copying the print program and the corresponding function modules before OPEN_FORM?
    In the print conditions I only know the function "Immediately print" but that is no help if the printout is attached to the purchase order which was printed before.
    Is there no flag which escpecially ensures that for this message type should be always be generated a new spool request?!?!
    I hope you know something else.
    With kind regards.
    Mark

    I alreadey copied the print program and the function modules but I am still looking for another solution because I think that is not the best solution for the problem.
    I changed following in include LWNPNFO0 (copied to LYWNPNFO0):
    --- Konvertierung der Kommunikationsdaten:                         --
      MOVE-CORRESPONDING pi_nast TO lvs_snast.
      MOVE sy-repid              TO lvf_program.
      CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
        EXPORTING
          pi_comm_type              = lvs_comm_type
          pi_comm_values            = lvs_comm_values
          pi_screen                 = pi_screen
    pi_newid                  = 'X'
          pi_country                = pi_tocountry
          pi_repid                  = lvf_program
          pi_snast                  = lvs_snast
        IMPORTING
          pe_itcpo                  = lvs_itcpo
          pe_device                 = lvf_device
          pe_mail_recipient         = lvs_recipient
          pe_mail_sender            = lvs_sender
        EXCEPTIONS
          comm_type_not_supported   = 1
          recipient_creation_failed = 2
          sender_creation_failed    = 3
          OTHERS                    = 4.
      IF sy-subrc <> 0.
        MOVE sy-subrc TO po_retcode.
        PERFORM error_message_arrang_append_sy TABLES ptx_error_messages
                                                    USING  pi_kona
                                                           dummy_vake.
      ENDIF.
      CHECK po_retcode = 0.
    *--- Öffnen des Formulars:
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          archive_index  = toa_dara
          archive_params = arc_params
          device         = lvf_device
          dialog         = ' '
          form           = pi_formular
          language       = pi_nast-spras
          OPTIONS        = lvs_itcpo
          mail_sender    = lvs_sender
          mail_recipient = lvs_recipient
        EXCEPTIONS
          canceled       = 1
          device         = 2
          form           = 3
          OPTIONS        = 4
          unclosed       = 5
          mail_options   = 6
          archive_error  = 7
          OTHERS         = 8.
      IF sy-subrc NE 0.
    Edited by: Mark Müller on Jul 30, 2009 10:36 PM

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

  • New Spool Request

    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,
    Check the TDNEWID parameter while generating the spool.
    Check this link : [http://help.sap.com/saphelp_nw04/helpdata/en/84/1f14b517aa11d5b67b006094192fe3/content.htm]
    Please post this question in ABAP section.
    Cheers,
    Raja.D

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

  • Max number of pages in a spool

    Hi Gurus,
    I have a background job which takes an input file from app server.Input file has 50000 records.I need to process them inside the program and display the result in spool.Now,my question is ,will I be able to see all the records.is there any upper limit for no.of pages that gets generated in the spool.

    Usally no limit for max number of pages ( There may be a system setting for it). But when you scroll down, it does not display all the data. You can either click on the button Settings and choose last 10 pages or click on last page button and that will display till the end.

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

  • Finding Soln. to initialise total number of pages for new production order

    Hi Experts,
    My internal table has details of Production Order which has to be printed in a smartform. The page numbers has to be initialised i.e both SFSY-PAGEand SFSY-FORMPAGES each time when it prints a new production Order.
    Example :
    Say Production Order 1 is populating in 4 Pages it should display
    1 of 4
    2 of 4
    3 of 4
    4 of 4
    and for the 2nd Production Order say it Occupies 2 pages page number should be initialized and displayed as
    1 of 2
    2 of 2
    One solution i found is having the smartform inside a loop and passing details of one production order at a time but i dont want to use it as i might be lead to performance issue.
    Kindly suggest me a Solution where i passed my internal table once to the smartform and get the output.

    Hi Experts,
    My internal table has details of Production Order which has to be printed in a smartform. The page numbers has to be initialised i.e both SFSY-PAGEand SFSY-FORMPAGES each time when it prints a new production Order.
    Example :
    Say Production Order 1 is populating in 4 Pages it should display
    1 of 4
    2 of 4
    3 of 4
    4 of 4
    and for the 2nd Production Order say it Occupies 2 pages page number should be initialized and displayed as
    1 of 2
    2 of 2
    One solution i found is having the smartform inside a loop and passing details of one production order at a time but i dont want to use it as i might be lead to performance issue.
    Kindly suggest me a Solution where i passed my internal table once to the smartform and get the output.

  • I keep on adjusting the duration of the IMOVIE clips , and after I have hit DONE and check the clip, it reverts to the original number and not the new duration requested. Any suggestions???

    I keep on adjusting the duration of the IMOVIE clips, hit Done , and when I go check the clip, it reverts to the original duration. Any suggestions??

    Error -69 suggests a possible problem with the source files on your computer. Check the source disk for errors and backup if you don't already do so. See HT1210: iTunes displays a -69 error when syncing iPod for more details.
    The SyncToy backup program is also a good way to identify exactly which files cannot be read. Repeated runs may succed in copying files which won't copy over on the first attempt.
    See also Corrupt iPod classic.
    It may also help to disable any AV software while syncing or set exclusions on the media folder and the iPod's drive.
    tt2

  • How to find Number of pages in a particular spool.

    Hi,
    Can any one tell me in which table - table field the number of pages in the spool are stored.
    There is a requirement that the list be sorted as per the number of pages present in the spool.
    Help. Points will be rewarded.
    Vinod.

    Vinod,
    Use this FM RSPO_GET_PAGES_SPOOLJOB.
    for more on spools check out this onlinehelp
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d9/4a8efb51ea11d189570000e829fbbd/frameset.htm
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • How may spool request can I create in the backend?...

    Hi Experts,
    How may spool request can I create in the backend? If yes, is there anywhere in the system can I set this value to increase number of spool request per user.
    Is there any condition which can prevent me create a new spool request?
    Yes all of the answer above is answered, so is there any offfical document from SAP states them.
    Thanks!
    - Anthony-

    Thx for the feedback. But, in fact, what was the real issue, originally?
    I forgot to inform you of that:
    1) [Note 193638 - Calculating spool number from file names as of 4.0A|http://service.sap.com/sap/support/notes/193638] (indicates the algorithm of UNIX file names). This note also indicates "For Release 4.0A, the maximum spool number has been increased from 99000 to 2000000000. The maximum number of output requests per spool request has been increased to 32767 as well."
    2) I think I forgot one of your initial questions:
    > Is there any condition which can prevent me create a new spool request?
    By default, SAP tries to append pages to existing spools with same characteristics. If they are always different, a new spool request is always created. So, you may change some characteristics so that they are identical and SAP will reuse existing spools. See rules in [Note 85318 appending documents to existing spool requests|http://service.sap.com/sap/support/notes/85318].

  • Reg - Spool Request #

    Gurus,
        If I print the different PO Documents, it take same Spool Requst number.  I need different Spool Req # for different PO Documents.
    Any Authorisation or Config settings...
    Pls advise...
    Regards
    Rajesh.

    Hai,
    First select the Printer from which you need to print the PO's from SPAD, then try to print something from that printer for example: SPAD -- Printer name (double click) -- Now you will be inside the printer definition -- then goto Utilities -- For Device types -- Test data (ABAP) -- In the next page input the Printer name which you are going to print from and then go down to the 'additional parameter' section and click on 'Force new spool request' and save.
    This will help you in creating the new spool numbers for every print through that particular printer.
    Hope this helps.
    Regards,
    Yoganand.V

  • 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

Maybe you are looking for

  • How to use GET_FIELDNAME_FOR_CHANGEDOC in CUSTOMER_ADD_DATA_CS

    Hello all, I'm using the BADI CUSTOMER_ADD_DATA_CS for some additional fields in the customer master data. These fields are included in an append of table KNB1. Their data elements have checked the "change documents" field. This is enough to mark the

  • Java calling secured IIS web service

    I have a java servlet calling a IIS based .NET web service. The original code called the web service without authentication required, but recent changes mean that the WS has to be locked down with Integrated Windows authentication. Calling the WS ret

  • Cannot Open Camera Raw images in CS2

    Hi I am running CS2 and PSE 8,but cannot open Raw images in CS2 My camera is an Eos 5 MKII Camera Raw in PSE is 5.5. I would like to open the Raw files into CS2. Any Help would be appreciated. I am using the latest firmware from Canon. Thankyou Keith

  • Do I use DnD or MouseMotionListener ?

    I am wondering about the pros and cons of using dnd api vs. MouseListener/MouseMotionListener. I am experimenting with drag-and-drop using a simple app that allows components to be rearranged by dragging. Here is a description of desired test program

  • XmltoQuery removing leading zero

    Hi, I have a function that takes in a raw xml and covert to query.  The problem is any leading zeroes are gone.  For example, 000123 will become 123.  Is there any way or function in CF that will stop from removing leading zeroes? Thanks,