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.

Similar Messages

  • How to print our several Billing documents in one spool request?

    Hello all,
    I encountered a problem while printing billing document.
    Currently, we only can use VF02 to change billing document's condition type and print out Billing document. It's troublesome and waste a lot of time to change output condition type in each Billing document.
    Is there a function that will list all the billing document, so we can print the selected billing document by pick this billing documents and send to printer.
    If my description is confusing, Please let me know.

    Hi, Iimnava,
    Thanks for ur reply. But there is still some problem about this.
    Let me introduce the special setting for our company's system:
    There are 2 output condition set in SAP.
    1. First one-ZD00, it will process automatically and send to a archive software. but won't print out. all of our billing document are using this output condition.
    2. Second one-ZD01, manual print out. If we need to print out the billing document, we can go to header--output, select this output condition in the dropdown list, then set sent to Local printer. save and quit. the billing document will be printed out.
    I had tried Txn VF31 and SE38.
    1. If use repeat processing method, only pull out the billing documents with ZD01 output.
    2. If use initial processing method, only pull out the billing document with output condition-ZD00 which hasn't been sent to the archive software yet.
    So I still can't reprint the billing document with Output condition-ZD00 which has been already sent to archive software.
    Sorry for the complex situation, but it's very important that we need to reprint these billing document. hope u can help me to solve this problem....

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

  • I have a paid subscription, but am no longer able to merger multiple pdf documents into one pdf. What's up?

    I have a paid subscription, but am no longer able to merger multiple pdf documents into one pdf. What's up?

    Pat:
    Below is a copy of an 8/7/2013 email from adobe. I prepaid a one-year subscription, and, until I recently upgraded to Windows 8, I was able to make several dozens of merged pdf documents. I seem to be no longer able to use the merge feature that I had successfully and repeated used. When I search for the merge feature I end up with a request that I pay for an upgrade monthly subscription to use the merge feature.
    Tom
    =================================here follows my subscription email====================================================
    Welcome to Adobe ExportPDF
    2 messages
    [email protected] <[email protected]>
    Wed, Aug 7, 2013 at 1:01 PM
    Reply-To: [email protected]
    To: [email protected]
    Dear Thomas Corr,
    Thank you for purchasing a subscription for Adobe ExportPDF.
    Sign-in to export a PDF Now >>
    With your subscription you can:
    Enjoy unlimited online conversions from PDF to Word (DOCX).
    Make scanned text editable.
    Maintain page, paragraph, and font attributes.
    Preserve tables, images, and multi-column text.
    Export PDF comments to Word.
    Help and feedback
    Get help from Adobe on the Support Center.
    The Adobe ExportPDF Team

  • 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

  • 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 do I merge more than one PDF document into one singular pdf using adobe viewer touch on a microsoft surface?

    How do I merge more than one PDF document into one singular pdf using adobe viewer touch on a microsoft surface?

    Or using the Adobe PDF Pack https://www.acrobat.com/

  • How to update many documents in one go using portal permissions

    Hello,
    I have two users in the portal with different permissions on a folder:
    rct2774: Total control
    rct3343: Read
    So, connected to the portal, rct3343 can´t upload (or erase) any document.
    Now, I´ve followed these instructions to update many documents in one go (found in "how to upload a folder containg HTML files in a KM folder" topic 22 - jun - 2006)
    "You can use the WebDaV.
    1. Get the WebDav path of your KM folder by going to details->properties->Access Links
    2. Copy the url for the WebDav
    3. Go to your desktop. Right Click on My Network Places.
    click on open.
    4. Click on add a network place.
    5. Click on "Choose another network location"
    6. Paste your copied url and click on next.
    7. Enter your portal userid and password. Now drag and drop your files from desktop. "
    But, updating this way both users (rct2774 and rct3343) can update, download and erase any document that belongs to that location.
    Do you know a way to update many documents in one go respecting or keeping the portal permissions?
    Thanks in advance.
    Best Regards,
    Esteban

    Hi Marc,
    First of all, thaks for your prompt reply. I´m new in these themes and any help is wellcome.
    We are doing many tests now, so we´re using the server portal as repository in itself. It´s quite strange because the permissions work at the portal correctly but not by the other way.
    Should I download the portal drive to the client PC for mantain the portal permissions?
    Thank you!

  • How do I bind multiple PDF Documents into one single document?

    I am trying to bind multiple PDF documents into one single document can anyone please help me?

    You would need Adobe Acrobat to do that. Reader doesn't have the ability.

  • How to combine three PDF documents into one PDF document ?

    Hi Folks,
    I have a requirement to combine 3 PDF documents into One PDF document, let me explain clearly.
    I have developed two Adobe forms in T.code SFP and I have one PDF docuement which is stored in DMS (T.code CV02n), and now I want to combine these three PDF documents into one pdf.
    I have tried below link, but only 50% can able to do my requirement.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/404e4dc1-a79c-2d10-a7b5-9a266dfed9cb?QuickLink=index&overridelayout=true
    Is there any best solution to fix this.
    Best Regards,
    Naresh Kumar.

    Hi Lukas,
    Thanks for your response on this.
    Krisztian's solution will work/merge only for Adobe forms created in T.code SFP but can't merge with the pdf document which is sitting in CV02N (This doesn't have Adobe form name in T.code SFP), this is what I understood.
    And one more bad news is we are not able to install that unix file in our client system, it is not compatable.
    Best Regards,
    Naresh Kumar.

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

  • 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

  • How do u merge documents into one?

    how do u merge documents into one?

    The other option is to open one file and then use Tools>Pages>Insert from File to add other documents.

  • Combining two sales documents  into one billing document

    Hi Friends,
    I need to combine two sales document into one billing document. Header data is same in both sales document.
    I have set factory calendar in the payer master.
    Tried for data transfer rotine at copy control of item level. But was not sure which routine to be set.
    Please let me know, what all settings are required to create one combine billing document.
    Regards
    Suman

    Hi,
    Is it delivery based billing or order based billing?
    2 orders / 2 deliveries and 1 invoice.
    For the above situation you need to write a routine which eliminates document number difference for Reference and Allocation.
    If you do not have different customer purchase orders for these two sales orders and in your copy control from delivery to billing your assignment and reference numbers are blank then system will club these deliveries and create one sales order.
    Else you need to eliminate these by writing a copy control routine and assign it at the header level.
    Hope this helps.  Pl. revert in case of further clarifications.
    Thanks
    Krishna.

Maybe you are looking for

  • Lack of customer care from bt

    BT go on about their excellent caring service-what a joke. ON 5TH SEPTEMBER we reported a fault with our phone only to be told there was no fault on the line it must be our equipment.We purchased a new phone still no signal or internet.Phoned bt agai

  • Problem with data template in XML publisher

    When I create data template in xml publisher and save it, I get next message: dbase: Failed to save data. Error occurred when creating xml data. undefined NaN NaN dbase is a database server JDBC connection name:asu_fox JDBC connection URL: jdbc:oracl

  • Dynamic Report Generator ( Urgent )

    I am new to oracle reports. can we make report generators with oracle reports ? this means that like (jasper report and jfree report) I need to generate an XML file dynamically through jsp ,.... is this possible ? does oracle report have API for expo

  • Trigger returning different date formats.

    Posted from Windows forum: We just reticently received a update to an .net application from a vendor. When our client machines (Windows XP) run the app we receive 2 different date formats returned from an post insert table trigger. The correct format

  • [CS4] Control Panel swatch pop-up

    Although the problem of the non-sticking list view in the Swatches Panel, introduced in CS3, has been fixed, it persists in the Control Panel's pop-ups. Set them to list view and the next time Illustrator is launched they're back as thumbnails. Micha