How to merge ABAP spools into a single PDF

Hi
I have some ABAP spools each with different no-of fields with different formats(Colors of ALV)
I need to combine all these sppols into one PDF without disturbing their formats.
Canu plz write ur suggestions.
Narendra

Hi
Maybe this document will help you:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
Cheers,

Similar Messages

  • How to combine ABAP spools into a single PDF

    Hi
    I have some ABAP spools each with different no-of fields with different formats(Colors of ALV)
    I need to combine all these sppols into one PDF without disturbing their formats.
    Canu plz write ur suggestions.
    Narendra

    Hi,
    Use this FM
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = gd_spool_nr
    no_dialog = c_no
    dst_device = c_device
    IMPORTING
    pdf_bytecount = gd_bytecount
    TABLES
    pdf = it_pdf_output
    EXCEPTIONS
    err_no_abap_spooljob = 1
    err_no_spooljob = 2
    err_no_permission = 3
    err_conv_not_possible = 4
    err_bad_destdevice = 5
    user_cancelled = 6
    err_spoolerror = 7
    err_temseerror = 8
    err_btcjob_open_failed = 9
    err_btcjob_submit_failed = 10
    err_btcjob_close_failed = 11
    OTHERS = 12.
    If you have 2 spools in a single PDF,
    DO 2 TIMES.
    Call the same  FM and create an internal table, in another internal table append the data.
    ENDDO.
    Regards,
    Pankaj

  • How to merge png files into a single PDF... by scripting

    Hi, all
    I have a range of PNG files at hand, now, I wanna get these files merged into a single PDF file.
    Is it possible to combine them to a single PDF document by using acrobat scripting?
    These PNG files are arranged as follows,
    docname_Page_001.png
    docname_Page_002.png
    docname_Page_003.png
    docname_Page_125.png
    Any assistance would be much appreciated.
    Regards,
    - gavin

    Is there any way?
    Thanks again.

  • Merge Different Spools containing a Single PDF page into a Single PDF file.

    Greetings,
    I am developing a custom object where in i need to read PDF file from many different Spools(Range given on Input Screen), where each spool has a single PDF page in it. I need to combine all these PDF Pages into a single PDF file & either create a new Spool or save it on an Application Server.
    At present i have developed the code where in i am able to read the PDF files from different spools & convert them into Binary but i am not able to generate it back to PDF file.
    Kindly find my code for your reference.
    CODE:-
    START-OF-SELECTION.
      PERFORM f_get_spool_1000 .
      PERFORM g_conv_pdf_to_bin_2000 .
    *&      Form  F_GET_SPOOL_1000
          text
    FORM f_get_spool_1000 .
      SELECT * FROM tsp01
               INTO TABLE gt_tsp01
               WHERE rqident IN s_spool
               ORDER BY rqcretime DESCENDING.
      IF sy-subrc = 0.
        SORT gt_tsp01 BY rqident .
      ENDIF.
    ENDFORM.
    *&      Form  G_CONV_PDF_TO_OTF_2000
          text
    DATA: lv_filename_out   TYPE string,
                lv_len            TYPE i,
                lt_tab            TYPE tsfixml .
      DATA: lwa_print_parms    LIKE pri_params,
                  lv_valid(1)       TYPE c .
      DATA: lv_linsz LIKE sy-linsz VALUE 132, " Line size
                  lv_paart LIKE sy-paart VALUE 'X_65_132'.  " Paper Format
      DATA : lt_tsp01 TYPE STANDARD TABLE OF tsp01 ,
                   lwa_tsp01 TYPE tsp01 .
      CLEAR : gv_pdf, gwa_tsp01, gv_renderpagecount .
      LOOP AT gt_tsp01 INTO gwa_tsp01.
        CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
          EXPORTING
            i_spoolid         = gwa_tsp01-rqident
            i_partnum         = 1
          IMPORTING
            e_pdf             = gv_pdf
            e_renderpagecount = gv_renderpagecount
            e_pdf_file        = gv_pdf_file
          EXCEPTIONS
            ads_error         = 1
            usage_error       = 2
            system_error      = 3
            internal_error    = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CLEAR lv_len .
        REFRESH gt_bin .
        CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
          EXPORTING
            buffer        = gv_pdf
          IMPORTING
            output_length = lv_len
          TABLES
            binary_tab    = gt_bin.
        CLEAR gwa_bin .
        LOOP AT gt_bin INTO gwa_bin.
          APPEND gwa_bin TO gt_listout.
          CLEAR gwa_bin .
        ENDLOOP.
      ENDLOOP.
    Get FP reference
      DATA: lo_fp     TYPE REF TO if_fp VALUE IS INITIAL,
            lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL,
            lo_exc    TYPE REF TO cx_root,
            lv_xslt_message TYPE string .
      lo_fp = cl_fp=>get_reference( ).
    For handling exceptions
      DATA: lo_fpex TYPE REF TO cx_fp_runtime VALUE IS INITIAL.
      TRY.
          lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
      Set document
          lo_pdfobj->set_document(
            EXPORTING
              pdfdata = gt_listout ).
      Tell PDF object to extract data
          lo_pdfobj->set_extractdata( ).
      Execute the call to ADS
          lo_pdfobj->execute( ).
        CATCH cx_root INTO lo_exc.
          lv_xslt_message = lo_exc->get_text( ).
      ENDTRY.
    Your quick reply would be of great help.
    Regards.

    Thank Your for your concern, there are many replies & posts but all of them points only to Try what they have said. As being said that trying to convert PDF to binary & appending many PDF similarly would not let you generate a single PDF again.
    Your Kind guidance would be really appreciable.
    Regards.

  • Merging other files into a single pdf.

    I cannot merge multiple documents (other than pdf) into a single pdf. I use Adobe Acrobat X Pro, for

    True Cowgirl; now it simply doesn't work. I had a simple pdf app that does everything I want including converting single document to pdf and vice versa. I bought Acrobat Pro solely to combine several documents with different format into a single pdf. If it doesn't work, it's a shame. Not to mention a rip-off. See my screen capture too.Doc/docx is not a supported format

  • How to merge multiple spools in one PDF

    hi all,
    i have a requirement to merge multiple spools into one PDF.
    I have the code to merge 2 spools into one PDF but acc to my requirement this number can be any( say 100). hence i need  help to merge N number of spools in one PDF.
    Regards
    geeta gupta

    Take the data of all spools into a internal table then create a new spool with this data then downlad this data into pdf format.
    By this method you can download any number of spools into a single pdf file. Please see the below code
    Fetch spool number
    Select rqident from tsp01 into table g_t_data
    where...............
    Read sool data and take this data into a internal table
    Loop at g_t_data.
               Call program to read spool as follows
          SUBMIT rspolst2 EXPORTING LIST TO MEMORY AND RETURN
          WITH rqident = g_t_data-rqident
          WITH first = '1'
          Read memory where spool data is stored
          CALL FUNCTION 'LIST_FROM_MEMORY'
               TABLES
                    listobject = mem_tab
          Convert spool data to Ascii
          IF NOT mem_tab[] IS INITIAL.
            CALL FUNCTION 'LIST_TO_ASCI'
                 EXPORTING
                      list_index         = -1
                 TABLES
                      listasci           = g_t_text1(table type c length 10000)
                      listobject         = mem_tab(LIKE TABLE OF abaplist)
            APPEND LINES OF g_t_text1 TO g_t_text.
          ENDIF.
    ENDLOOP.
    Create new spool with internal table data
      NEW-PAGE PRINT ON
      KEEP IN SPOOL  l_keep(variable type c default u2018Xu2019)
      LINE-SIZE      300  
      LIST NAME      l_list (variable(30) TYPE c default 'combined_pdf')
      NO DIALOG.
      LOOP AT g_t_text.
        WRITE: g_t_text-data.
      ENDLOOP.
      NEW-PAGE PRINT OFF.
      COMMIT WORK.
    Fetch this spool number from TSP01
    SELECT rqident rqcretime FROM tsp01 INTO TABLE l_t_pdf(internal table having two fields rqident LIKE tsp01-rqident and rqcretime LIKE tsp01-rqcretime)
      WHERE   rqowner = sy-uname AND
                     rq2name = 'COMBINED_PDF'.
    Download spool data into pdf format
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid   = l_t_pdf-rqident
           IMPORTING
                pdf_bytecount = l_size(variable type i)
           TABLES
                pdf           = g_pdf(table like table of tline)
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                bin_filesize = l_size  "size
                filename     = l_data
                filetype     = 'BIN'
           TABLES
                data_tab     = g_pdf.
    Hope this will help you.

  • Password required to merge files into a single PDF - why?

    I use a registered copy of Acrobat Professional version 8 on my desktop
    I routinely download official Adobe upgrades when prompted
    I have attempted twice this morning to merge multiple files (in one case two PDF's, in the second a PDF + a JPEG file) into a single PDF.
    I do this frequently to manage documents (I'm responsible for maintaining the company's technical file) more efficiently.
    Now Acrobat is asking me for a password if I want to merge the documents into a single PDF but none of the documents involved have passwords!
    Alternatively I am allowed to combine multiple files into what is called a "PDF Package" without using a password.
    I much prefer using the single PDF document option
    Why am I being prompted to provide a password when one does not exist - I created the original PDF's in the first place!
    Please advise how I can solve this very annoying problem

    If I use either of the create or combine file functions at the point in the process where the files have been added and a summary of the files is presented, above the summary, two options are offered.
    The first one I am used to - it says merge the files into a single PDF
    The second option is to merge the files into what is called a "PDF Package"
    I want to use the first option but a warning sign is also present at this stage, informing me that I need a password to use the first option.
    If I use the second option I don't need the password.
    This change has only appeared today - I am assuming as the result of downloading and installing an official Adobe update - nothing else has changed.
    Hope this info helps
    I am running on Windows XP
    Thanks for any advice you can offer
    Peter Davidson
    Manchester
    NW.England

  • Compile Form Responses into a Single pdf in Acrobat X

    I sent a single pdf using the Distribute function in Acrobat X to several different people.  I was under the impression that I would be able to merge all responses into a single pdf document.  Each form field has a unique name and each field will be filled in by only one person responding.  Is there a way to do this in Acrobat X?

    This is not how forms usually work. Ususally, each person fills in the entire form, and the distributor combines all the responses into a speadsheet.
    I'm not sure if the tracker is able of doing what you want. But what you can do is export the form data from each file, and then import all of these files into your PDF.

  • Merge jpgs into a single pdf, but page dimensions? how to set...?

    I have merged a number of jpgs into a single pdf but for some reason it ends up being a strange page dimension - 23.6 in x 30.6 in. The jpgs were saved at a resolution so that they might print an 8.5 x 11 at 200 dpi. Is there a place you can set  these dimensions? I know it is quite easy to still make it print on a letter sized sheet but the ppl who I am sending the dosument to might be thrown off by the dimensions.

    I had a difficult time finding the answer on the web.  Finally found a forum with my answer to share with others facing the same issue.  Last entry worked for me.
    http://community.spiceworks.com/topic/213722-acrobat-9-pro-doesn-t-see-ms-office-files-whe n-combining-files

  • How to combine 2 spool id into a single PDF file

    Hi,
    I need to combine 2 or more spool id into a single PDF file.
    i.e the downloaded PDF file should contain the data of all the specified spoll ids
    Thank U
    Narendra

    Hi,
    Use FM "RSPO_RETURN_ABAP_SPOOLJOB" to get the spool into internal table.
    Append the internal table with data of another spool & then pass the internal table to the FM mentioned in above reply.
    Best regards,
    Prashant

  • How do i combine multiple pdf file into a single pdf file?

    how do i combine multiple pdf files into a single pdf file?

    The thread was started in early March and it's Mid-April, I know this very well. The OP of this thread posted a very common and simple question or maybe he/she would have resolved this. For an Adobe Acrobat user it's not at all difficult to combine multiple PDF files into one. But to combine PDF files full version of Adobe Acrobat is mainly required, otherwise PDF files can't be combined. For example, I'm using Adobe Acrobat 9 Pro. These simple steps are mainly required to combine PDF files:
    Open Adobe Acrobat.
    Click on Combine and click on Merge files into a single PDF.
    A window will be appearing, click on Add Files and select the PDF files you want to combine.
    Arrange the selected files in any order with the help of Move Up and Move Down button.
    Now click on Combine File and the selected PDF files will be combined within a few seconds.
    A new PDF file will be created. Click on Save As and name this new PDF file. Then, click on Save.
    A new PDF file will be created and all the selected PDF files are combined in it. The steps shown above might be different in other versions of Adobe Acrobat. Other than this, some third-party PDF merge software are also available. Most of them are available with a demo version for free evaluation. I've heard much about SysInfoTools PDF Merge software on other forums and directories and it's demo version is freely available. One may check its demo version if Adobe Acrobat (full version) is not available.
    Regards

  • Open the "Merge Files into a Single PDF" utility via script or exe?

    Greetings:
    I'm trying to find a method to open the Merge Files into a Single PDF utilty without opening Acrobat first.  Does anyone have some example code on how to open this dialog window?  It doesn't matter what language it is in, I can do the legwork to translate it to something I can understand.
    Ideally, I'd like to open the combine/merge window through an EXE or VBScript and pass it a handful of filenames that would appear in the programs list to process.
    Any help would be *GREATLY* appreciated.
    Thanks,

    Hi,
    As far as I am aware it is not possible to pass a list of files to this dialog using any API in Acrobat.
    You could however create your own VB .net application that has a mutli file select dialog box and the use the JSObject to merge all those files and open the resultant file in Acrobat.
    There are samples in the Acrobat SDK that show how to use the JSObject and the JavaScript function you could use to perform the merge are in the SDK documentation, I would start with investigating "insertPages".
    Please note that using the Acrobat SDK requires the Acrobat program to be installed and it will also need to be running in order to convert the files.
    Hope this helps
    Malcolm

  • MS Word Track Changes and Acrobat Merge into a Single PDF

    I am using Word 2007 to create a group of about 50 files that are being collected with Acrobat 9 Standard Merge Files Into a Single PDF feature.  I need to control whether the track changes in the word files are carried over to the PDF.  Said another way, I want a singe PDF with the track changes showing and another PDF witht he track changes off. Currently, the track changes are being filtered out (accepted) in the merged document.  Strangely, when printing a single document with track changes, the track changes show in the PDF.
    I understand I could print each of my 50 files individually and then collect them with the merge feature, but I am hoping to take advantage of the automation.
    How do I control the track changes printing / not printing?
    Thanks for the help!

    Thank you for the comment!  If this is the best Acrobat can do, I will just have to lower my expectation.

  • __Is there a way to 'merge' multiple curves into a single curve?

    __Is there a way to 'merge' multiple curves into a single curve?
    By this I mean I have file with 2-12 curve layers - I wanted to 'merge' the curves so that I can end up with a single curve with the attributes of many. Maybe is there a script that would do this?

    I don't mean to be critical, but how do you get to a situation where you have 12 successive Curves layers?
    The advantage to a Curves layer is that you can adjust and re-adjust it to your heart's content.
    If you're habitually adding new Curves layers one over the other, maybe you should re-evaluate your process of working...  Perhaps the way you're thinking you should just work at a high bit depth and do repeated Curves operations on the pixels?  Or put some time into retraining yourself to not add a new Curves layer but to manipulate the one that's already there.  There are some nice new enhancements (e.g., the "finger" subtool that allows you to choose a spot in the image and manipulate that part of the curve).
    Again, I'm not trying to criticize you, just looking to see if maybe there's a way to avoid getting to the point where you need to combine Curves in the first place, since there's no direct "Merge Curves" capability, outside of just stamping a set of image and adjustment layers into pixels.  For completeness I suppose I should mention how to do that...  You can Stamp any combination of visible layers into a single layer of pixels (effectively combining all the Curves layers et. al.) by pressing Control - Shift - Alt - E.
    -Noel

  • Acrobat Pro 9: "Merge files into a single pdf" creates blank pages

    I have a similar problem as a previous post (which hasn't been answered).
    I am able to pdf individual Word documents fine, but when I try to Combine > Merge files into a single pdf, the resulting pdf pages are all blank. I don't receive any error messages or have problems saving the file.
    I am using Adobe Acrobat Pro 9 (9.5.1) on Windows 7.
    The merging of pdf's hasn't worked at all since I installed the program.
    Any help would be much appreciated.

    Hi Bill
    Thanks so very much - you have solved the problem.
    I tried Document > Insert Pages and that worked.
    I then ran the "Repair" feature on Adobe which installed a few updates and I am now also able to merge pdf's by using the "Combine" feature and all the pages show the text/info.
    Thanks again for your help, it is very much appreciated.
    Thank you also to Apoorv for your assistance.

Maybe you are looking for

  • How do I insert a picture into iMovie regardless of aspect ratio

    When I insert a picture, i either have the choice of cropping the picture or having black bars on the sides. How can I insert a picture into imovie and not be dictated based on the aspect ratio. thanks

  • How to get the initdefault run level in Solaris 10

    Hi All, In Solaris 9 and below I will get the init run-level by checking the /etc/inittab entry is:3:initdefault: But in Solaris 10 we are using the smf functionality. Here how I can get the init default run level. Please help me in this problem. Reg

  • How to add custom start options in VS package

    I need to add custom start options in VS package. Example: Instead of showing "start", need to provide options like "Start in Firefox", "Start in Chrome" and handle their events on our own. Any references would be helpful Thanks in advance

  • How to add calendar to report parameter(very urgent)

    hi, i have created a report with two parametres with start date and end date. my client wants like whenever he clicks a lov a calendar should open. It should be a pick from calendar. any one help. thanks Rajesh

  • NEW cUMER

    hi, this is my first posting in the forum i have just started reading the adobe flex2 i have some questions. a. How you will compile the program written in adobe flex2? b. do you need to place the file which contain adobe flex2 in some special folder