Merge spool from two SAP Scripts

In a report using two separate forms for output. On report execution first output is displayed & then it display the second one. Thus two separate spools are generated.
Is there any way to merge these two spools in one spool list through program.
Kindly advise.
Thanks
anu

Hi,
Glad to let you know, it is <b>possible</b>.
Have a look at the function modeules <b>RSPO_RETURN_ABAP_SPOOLJOB</b>, <b>RSPO_SR_OPEN</b> and <b>RSPO_SR_WRITE</b>.
The first one extracts lines from a spool request. The second one creates a new spool request. The last one write lines into a spool request.
you can use these three to split up small parts or combine into single
Feel free to revert back.
--Ragu

Similar Messages

  • Photomerge panorama produces an empty merge file from two images; how can I fix this? Thanks

    Photomerge panorama produces an empty merge file from two images; how can I fix this? Thanks

    If you did not create this swf yourself then you won't be able to do what I am suggesting.  If you did, then open the fla in Flash and go into the Publish Settings and select the option to publish an html file as an output.  That will create an html page that embeds the Flash file.  Test that file in your browser and see if it plays properly.  IF so, then copy that code in place of whatever Dreamweaver did to embed the Flash.
    Dreamweaver is not a reliable tool for embedding Flash content... why it does not do it the same way Flash does it is anyone's guess.

  • Create spool number for sap script

    how to create a spool number for a SAP script. What is the program name which we should modify to write the code logic for spool creation for the tcode ME9F ?

    Hi,
    Spool Request in Transaction SP01 and there by generated a Spool Request Number.
    Spool request is a document for which a print function has been selected. However, it has not yet been output to a printer or another device. The output data for the print document is stored partly formatted in a data store until an output request is created, that is, until it is sent to a particular output device.
    The spool system uses a spool request to store the print data temporarily and to access it. The data is stored in a temporary format. You can also display the print document. The system automatically assigns a 10-digit ID number to a spool request.
    Output request: From the point of view of the SAP spool system, an output request outputs the print data of a spool request to a particular output device.
    Multiple output requests may exist for a single spool request. Each represents an instance of the output of the same spool request. Each of these output requests may have different attributes, such as the target printer or number of copies.
    By differentiating between spool request and output requests, the spool system provides a means of storing the data temporarily.
    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.
    Also if this spool is being generated internal to your program, then SY-SPONO should have the value.
    You need to create an Adobe Form Application, get the data from the backend based on Spool request number.
    You can create an application in Webdynpro, wherein when you click on a button and the Adobe Form is displayed with all the data from the backend and you should be able to print it.
    Does that answer your question ?
    Cheers,
    PANKAJ

  • Single billing from two SAP systems to common customer

    Our company was recently purchased by another. We have common customers. The business would like us to provide single billing to these customer out of the two SAP systems until we can complete the global merge into a single SAP system. Is there a way to accomplish this?
    Best regards.

    if we want to the combined billing for a customer. there are some restrictions: those are difference between the header data, billing date, payer, country is different we cann't bill in sigle invoice.
    regards
    rp s

  • Merge contacts from two iPhones

    Hi! I own two iPhones and I need to merge contcat from the two phones. iCloud contacts updates smoothly bewteen the two devices, but I also have ciontact stored in two different "exchange" servers (one in each iPhone) and I would like to merge them alltogether. any suggestions? Thank you

    francopatruno wrote:
    ... but I also have ciontact stored in two different "exchange" servers (one in each iPhone) and I would like to merge them alltogether. any suggestions?
    If you're using Outlook for these exchange accounts, you can try exporting the account's contacts as a vcard file which can then be uploaded to iCloud (or Yahoo, GMail, etc.)  There are also apps you can put on your iPhone to export your contacts as a vcard file, and I'm pretty sure these will export contacts from Exchange accounts even though the contacts don't actually reside on your phone.

  • SSAS Tabular - Merge data from two tables to one

    Hi,
    I have two ReportServer databases in two different instances of SQL Server. I want to extract the ExecutionLog3 data to a Tabular model. Now, I have two separate tables in Tabular with duplicated measures but I want to have the data from two ReportServer in
    the same table.
    Any idea?
    Regards.

    Hi Numero4,
    According to your description, there are two Reporting Services databases, and you want to merge the data in a tabular model, right? 
    As per my understanding, you can create a link server on one of the server, and then merge the data in database lever other than in tabular mode. In this case, import the merged data into the tabular model. Here are some useful links for you reference.
    http://msdn.microsoft.com/en-IN/library/ff772782.aspx
    http://support.flexquarters.com/esupport/index.php?/Default/Knowledgebase/Article/View/2458/52/how-to-create-link-server-with-ms-sql-200520082012-64-bit-using-qodbcqremote
    Regards,
    Charlie Liao
    TechNet Community Support

  • Merging iTunes from two macs

    Is there an easy way to merge the iTunes music etc from two computers into one. I want my new laptop to contain all the media that is on it already plus the media on my iMac

    you could use _*Home Sharing*_.
    or, you could use a 3rd party tool such as PowerTunes.

  • Spool - restrict multiple sap script  layouts into a single spool

    Hi Experts,
    I am writing a Sap SCRIPT print program for multiple number of customers with different layouts. But i am getting seperate spools for different customers. There fore i need to print out all customers in a single spool.
    Can some one help me how to do this?
    Thanks
    Dany

    OPEN_FORM and CLOSE_FORM function module are used to open and close spool. When you have single form to create document then we specify form_name in OPEN_FORM function module itself. However when we have multiple forms or same form needs to be called multiple times and all document needed in same spool then we use START_FORM and END_FORM to explicitly open and close form.
    Call function module in this sequence
    OPEN_FORM "without specifying any form name, this will open spool
    START_FORM " with form name
    END_FORM
    START_FORM "with (some other) form name
    END_FORM
    CLOSE_FORM "close spool request

  • How to generate spool request in sap script

    Hi Experts !!
    I had customized RFFCOUS_C -- > Include RFFORI01 for printing check and payment advise.
    Now if we run standard print program, spool will be generated first
    and then we can see the print prieview accordingly.
    But after my customization, after seeing print prieview when am clicking print button , then only spool is getting generated....
    i had checked everything...but not able to solve the issue.
    Please help.
    Regards
    Saurabh goel

    Hi,
    Just use below logic for script
    itcpo-tddest = p_print. " Printer name
    itcpo-tdnewid = 'X'.
    itcpo-tdimmed = 'X'.
    itcpo-tdcopies = '1'.
    call function 'OPEN_FORM'
    exporting
    device = 'PRINTER'
    dialog = ' '
    form = 'ZAUTO_REPLPRINT'
    language = sy-langu
    options = itcpo
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb100438#q-2
    Regards,
    Shiva(reward if helpful).

  • Merge documents from two MacBook Pros preserving Time/Date stamp?

    Hi all,
    I have two MacBook Pros with the same user account and would like to merge all of the documents to one of them while preserving the time/date stamp of the documents.  One is 10.6 the other 10.8 but I'm only concerned about the documents.  I would consider a third party utility if one were recommended.
    Thanks everyone,
    Phil

    Migration Assistant creates a new user account to which your user files are restored. The easiest way for you to recovery from this situation would be to boot into Recovery (command-R at startup), erase the boot volume and install OS X again, and then follow the prompts in Setup Assistant (not Migration Assistant) to transfer your data from a Time Machine backup. If you don't want to do that, there are other ways, but it's more complicated.
    Another thing you should realize is that your internal drive is suspect. It has seriously malfunctioned once. That may be all the warning you'll get of an impending failure.

  • Merging iPhotos from two different Macs

    This is probably not a new problem. We have two family computers and we download our photos on either one. I would like to create a master library and then store it somewhere for safekeeping. (Too many natural disasters in Texas!)
    First, how should I consolidate all my photos (must be 70-80K) into one library
    Second, where should I store it?
    Third, how can I avoid this in the future?
    okay, thanks!!

    to merge libraries you use Aperture or the paid version of iPhoto Library Manager
    where to store them - where ever you please as long as the hard drive is formatted Mac OS extended (journaled) - Personally I believe you need at least two copies in different locations for safety
    How can you avoid this in the future? do all of your photos work on one computer
    Next year with the new photos app and with iCloud library there probably will be a better solution - but until the software is released no one will know exactly what it will have or exactly how it will work
    LN

  • HT204053 Can I merge downloads from two seperate Apple ID's

    Can you merge two Apple ID's so the apps purchased on one can be transferred to just one ID?

    Nope, media industry would never allow that, unless you paid extra for that ability.

  • Spool generation in SAP script

    Hi All,
    Could any one please tel me ....In scripts when the spool no. is generated that while processing the driver program OR after  the print log processing?
    and also provide me the table and fields that contain the spool no.
    Regards
    Vishnu

    Check the below code for getting the data in the SPOOL request. Spool requets will be stored in the table <b>TSP01</b>.
    *& Report  YPRA_SAMPLE38                                               *
    REPORT  ypra_sample38.
    *Type Declarations
    TYPES: BEGIN OF ty_rdidata,
            line(1000) TYPE c,
           END OF ty_rdidata.
    DATA: ws_spool LIKE tsp01-rqident,
          i_rdidata TYPE STANDARD TABLE OF ty_rdidata,
          wa_rdidata TYPE ty_rdidata.
    ws_spool = '0000019125'.
    CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB_RAW'
      EXPORTING
        rqident                    = ws_spool
      FIRST_LINE                 = 1
      LAST_LINE                  =
      TABLES
        buffer                     = i_rdidata
    EXCEPTIONS
       no_such_job                = 1
       not_abap_list              = 2
       job_contains_no_data       = 3
       selection_empty            = 4
       no_permission              = 5
       can_not_access             = 6
       read_error                 = 7
       OTHERS                     = 8
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        =
                        'C:\Documents and Settings\P.Ramu\Desktop\RDI1.xls'
      TABLES
        data_tab                        = i_rdidata
    EXCEPTIONS
       file_write_error                = 1
       no_batch                        = 2
       gui_refuse_filetransfer         = 3
       invalid_type                    = 4
       no_authority                    = 5
       unknown_error                   = 6
       header_not_allowed              = 7
       separator_not_allowed           = 8
       filesize_not_allowed            = 9
       header_too_long                 = 10
       dp_error_create                 = 11
       dp_error_send                   = 12
       dp_error_write                  = 13
       unknown_dp_error                = 14
       access_denied                   = 15
       dp_out_of_memory                = 16
       disk_full                       = 17
       dp_timeout                      = 18
       file_not_found                  = 19
       dataprovider_exception          = 20
       control_flush_error             = 21
       OTHERS                          = 22
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

  • Send spool id output (sap script) via email in PDF format

    Dear friends,
    Looking for sample program to send spool id output of sapscript via email in PDF format.
    Regards,
    Praveen Lobo

    Hi,
    Try this code..
    * Parameters.
    PARAMETERS: p_email(50) LOWER CASE.
    PARAMETERS: p_spool LIKE tsp01-rqident.
    * Data declarations.
    DATA: plist LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: document_data LIKE sodocchgi1.
    DATA: so_ali LIKE soli OCCURS 100 WITH HEADER LINE.
    DATA: real_type LIKE soodk-objtp.
    DATA: sp_lang LIKE tst01-dlang.
    DATA: line_size TYPE i VALUE 255.
    DATA: v_name LIKE soextreci1-receiver.
    DATA rec_tab LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    * Get the spool data.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
    EXPORTING
    rqident = p_spool
    first_line = 1
    last_line = 0
    desired_type = ' '
    IMPORTING
    real_type = real_type
    sp_lang = sp_lang
    TABLES
    buffer = so_ali
    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.
    * Check the return code.
    IF sy-subrc <> 0.
    MESSAGE s208(00) WITH 'Error'.
    LEAVE LIST-PROCESSING.
    ENDIF.
    * Prepare the data.
    plist-transf_bin = 'X'.
    plist-head_start = 0.
    plist-head_num = 0.
    plist-body_start = 0.
    plist-body_num = 0.
    plist-doc_type = 'RAW'.
    plist-obj_descr = 'Spool data'.
    APPEND plist.
    plist-transf_bin = 'X'.
    plist-head_start = 0.
    plist-head_num = 0.
    plist-body_start = 1.
    DESCRIBE TABLE so_ali LINES plist-body_num.
    plist-doc_type = real_type.
    * Get the size.
    READ TABLE so_ali INDEX plist-body_num.
    plist-doc_size = ( plist-body_num - 1 ) * line_size
    + STRLEN( so_ali ).
    APPEND plist.
    * Move the receiver address.
    MOVE: p_email TO rec_tab-receiver,
    'U' TO rec_tab-rec_type.
    APPEND rec_tab.
    IF NOT sp_lang IS INITIAL.
    document_data-obj_langu = sp_lang.
    ELSE.
    document_data-obj_langu = sy-langu.
    ENDIF.
    v_name = sy-uname.
    * Subject.
    document_data-obj_descr = 'Spool attached'.
    * Send the email.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
    document_data = document_data
    sender_address = v_name
    sender_address_type = 'B'
    TABLES
    packing_list = plist
    contents_bin = so_ali
    receivers = rec_tab
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    IF sy-subrc <> 0.
    MESSAGE e208(00) WITH 'Error in sending email'.
    ENDIF.
    COMMIT WORK.
    * Send the email immediately.
    SUBMIT rsconn01
    WITH mode = 'INT'
    AND RETURN.
    * Success message.
    MESSAGE s208(00) WITH 'Email sent'.
    Thanks
    Naren

  • Is there a way to merge contacts from two files

    I am in panic!  In my contacts I am missing 100's of addresses.  I have other saved contact files.  Is there a way to import them and have duplicates or some way to view them with out importing them and replacing what I have?

    That is good for contacts that are already imported but my problem is in iMail I went to import another file that had an extension .abbu after it.  When I click to import it asks me if I'm sure I want to replace the original contacts.  I am asking is there a way to add them and then delete or merge the duplicates?

Maybe you are looking for

  • Can't install iTunes on Win Vista machine

    When I click on the "Download 7.2" button it takes me to a screen that says "Thanks for installing 7.2" blah, blah, blah. The problem is that no installation occurred. I don't get any error messages, nothing. Just no download. I had an old version of

  • View maintenence problem in UCCHECK?

    Hi everyone, Does anyone know anything about the unicode error 'VIEW'. I got this when I executed the tcode UCCHECK. The message I got is: 'Generated Code for View Maintenance Dialog is not Unicode-Compatible You can regenerate with the program RSVIM

  • Dates and Exception message in MD04

    Hi all ,               When i view in MD04 t-code for one purchase order the system shown the below exception message Exception  30 = Plan process according to schedule (08/01/10/07/25/10)            06 = Start date in the past I cant understand the

  • BPM 11g development environment

    I'm wondering what people are developing 11g BPM processes on. Running JDeveloper, Admin Server and a seperate soa suite server and a browser (database is remote) is killing my PC. The machine is decent spec: 4GB RAM, dual core cpu but things are slu

  • Amfphp gateway browser url - web-vpn messing it up

    hey mates, i got a problem with my flex software. i have build an online library. more and more customers having trouble connecting to it via web vpn because it changes the url in the browser and then can't find the gateway.php to get the data to loa