Grouping of PDF from Archive

hi,
i have a requirement to group a number of PDF from the Archive into a single PDF and send it as an attachment. I want to know the possiblity of grouping multiple PDFs into a single PDF.
Thanks in advance,
Anoop R.S

It's possible to concatenate PDFs.
You must concatenate them when you have the OTF data.
The code in bold letters is the key to join the smartforms
*&      Form  llamar_smartforms
FORM llamar_smartforms.
Nombre del formulario (en la transacción SMARTFORM)
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname = 'ZCARTA_CONDICIONES_EXPATRIADOS'
    IMPORTING
      fm_name  = name_funcion.
Comprobamos que no haya ocurrido ningun error
  CHECK sy-subrc = 0.
Indica que no genere pantalla de previsualizacion
  control-no_dialog = 'X'.
Indica que genere el OTF
  control-getotf = 'X'.
  output_options-tddest = 'LOCL'.
  output_options-tdnewid = 'X '.
  output_options-tdimmed = 'X '.
Call function para ejecutar el smartform.
el job_info contiene la informacion del OTF
  CALL FUNCTION name_funcion
       EXPORTING
            control_parameters   = control
           parametros_ext       = cert_emp_est
            user_settings        = space
            output_options       = output_options
       IMPORTING
            document_output_info = document
            job_output_info      = job_info
            job_output_options   = job_options
       TABLES
            pernrdat               =  tab_condiciones.
           hrdata             =  cert_emp_est.
           filename                = nombre_fichero
  CHECK NOT job_info-otfdata IS INITIAL.
  DATA: lineas_otf(9) TYPE n.
  DESCRIBE TABLE  job_info_global-otfdata LINES lineas_otf.
  lineas_otf = lineas_otf + 1.
  INSERT lines of job_info-otfdata INTO job_info_global-otfdata
    INDEX lineas_otf.
*Concatenamos pdfs
data my_tabix like sy-tabix.
  DATA : lv_formname TYPE tdsfname.
  DATA : lv_funcname TYPE tdsfname.
         DATA : t_empleado LIKE zohr_gxc_employee OCCURS 0 WITH HEADER LINE,
       t_labels TYPE TABLE OF zohr_t_lan.
lv_formname = 'ZOHR_GXC_ERROR'.
     CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = lv_formname
          variant            = ' '
          direct_call        = ' '
        IMPORTING
          fm_name            = lv_funcname
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      CHECK sy-subrc EQ 0.
      CALL FUNCTION lv_funcname
        EXPORTING
          control_parameters   = control
          output_options       = output_options
          user_settings        = space
          year                 = '2007'
        IMPORTING
          document_output_info = document
          job_output_info      = job_info
          job_output_options   = job_options
        TABLES
          labels               = t_labels
          empleado             = t_empleado
        EXCEPTIONS
          formatting_error     = 1
          internal_error       = 2
          send_error           = 3
          user_canceled        = 4
          OTHERS               = 5.
***********removing the initial and final markers from the OTF data**********
DELETE job_info-otfdata WHERE TDPRINTCOM = '//'.
*****************searching for the end-of-page in OTF table************
READ TABLE job_info_global-otfdata WITH KEY TDPRINTCOM = 'EP' transporting no fields. MY_TABIX = SY-TABIX + 1.
*********appending the modified OTF table to the final OTF table********
INSERT LINES OF job_info-otfdata INTO job_info_global-otfdata INDEX MY_TABIX.
Convierte de OTF a PDF los datos
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format       = 'PDF'
    IMPORTING
      bin_filesize = expdfsize
    TABLES
      otf          = job_info_global-otfdata
      lines        = expdfdata
    EXCEPTIONS
      OTHERS       = 4.
  nombre_fichero = 'C:     emporal.pdf'.
  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                = nombre_fichero
      filetype                = 'BIN'
     write_field_separator   = 'X'
    TABLES
      data_tab                = expdfdata
     fieldnames              = tab_def_reg
    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.

Similar Messages

  • Download PDF File from Archiv to SAP Application Server

    Hi,
    I need to download the PDF file from an NAST-Dataset (how is stored from the message via SAP ArchivLink) to the SAP Application Server.
    1) At first i read the Archiv-Link data via function module WFMC_GET_ARCHIVE_OBJECT_TYPE
    2) Then i get the Connection-Infos via function module ARCHIV_GET_CONNECTIONS_INT
    3) Now i read the file from archiv as table via function module ARCHIVOBJECT_GET_BYTES
    4) Save to the SAP Appl.Server via:
       - OPEN DATASET ld_dpfad FOR OUTPUT IN BINARY MODE
       - LOOP and TRANSFER lf_archivobject TO ld_dpfad.
       - CLOSE DATASET ld_dpfad.
    In the dialog of NAST-Dataset (Messages) i can open the PDF-File without any errors (display originals). But after the filetransfer to the SAP Appl.Server i get the following errors during the file opening dialog from Adobe Acrobat Reader:
    - the embedded font u201CArialu201D cant to be extract
    - not enough data for the picture
    The reader can display the PDF-File but only without the picture (Logo) and with alternative font.
    The same transfer from archiv and sending as an attachement to the BOR-Object via function module SO_DOCUMENT_INSERT_API1 works very fine and without any errors.
    Can any one please help me to solve this Issue?
    Thanks in Advance,
    Thomas

    Hello Keith,
    Many thanks for your answer.
    In the past i didnu2019t need the BINARCHIVOBJECT-Parameter and so i overlook this option.
    Now, the File looks a little bit different, but only in the STREAM-section.
    During the Fileopen-Dialog i get only one message now - "not enough data for image" and the image will not displayed. The rest seems to be correct.
    The relevant coding is now:
      ld_doc_typ = pf_connections-reserve.
      CALL FUNCTION 'ARCHIVOBJECT_GET_BYTES'
        EXPORTING
          archiv_id                = pf_connections-archiv_id
          archiv_doc_id            = pf_connections-arc_doc_id
          document_type            = ld_doc_typ
          length                   = ld_length1
          offset                   = ld_offset
        IMPORTING
          binlength                = ld_length                        
          offset                   = ld_offset
        TABLES
          binarchivobject          = lt_binarchivobj                  
        EXCEPTIONS
          error_archiv             = 1
          error_communicationtable = 2
          error_kernel             = 3
          OTHERS                   = 4.
    Zieldatei zum Schreiben öffnen
        OPEN DATASET ld_dpfad FOR OUTPUT IN BINARY MODE.
    Inhalte in Zieldatei schreiben
      LOOP AT lt_binarchivobj INTO lf_binarchivobj.
        TRANSFER lf_binarchivobj TO ld_dpfad NO END OF LINE.          
      ENDLOOP.
    Zieldatei schließen
      CLOSE DATASET ld_dpfad.
    Where is the error for the image data?
    Ciao Thomas
    Push up by: Thomas Engler on May 3, 2010 4:54 PM

  • How do I restore addresses from archive file or time machine without iCloud overriding?

    I recently had an issue with my address book contacts.  About 90% of the contacts disappeared, then synched through iCloud to my iphone and ipad.....so nearly all my contacts were lost on all devices.  I have both time machine and an address book archive file.
    When I tried restoring from time machine, the iCloud synching saw it as an older version of the file and went to the deleted contacts version....i.e. I was right back where I started.
    When I tried importing from the address book archive, the same thing happened.....iCloud saw the imported version as an older copy of the contacts file and deleted out everything I had just imported.
    The only way I was able to get the contacts back was to go to time machine (with address book application open), select all the contacts, copy them, cancel out of time machine, and then paste the contacts into the current version of address book.....I guess the system sees that as a "new" version of the contact and doesn't overrite it.  Problem is that it doesn't carry over all the different groups that way, and I have to move addresses into the groups all over again....kinda time consuming.
    Any ideas on how to import from archive or restore from time machine (the normal way) without iCloud synching overriding the "older" and desired version of the file?  Address book doesn't have any option to "override current contacts with imported ones".....
    Thanks.

    Try this:
    Turn off your internet connection completely: check it's really off.
    Import your backup into Address Book.
    Select all your contacts.
    From the File menu choose Export>vCard and save the file somewhere convenient.
    Now turn the internet connection back on. Your contacts will disappear from Address Book again.
    From the File menu choose 'Import' and select the file you exported to.
    Hopefully this contacts list will stay in place: wait until it's synced to iCloud and check that it's on the website and syncs to your Phone.

  • How to include non web pages to the "Create PDF from Web Page" feature?

    In Acrobat Pro (v. 10), when I use the "Create PDF from Web Page" feature, it works great for html pages, but it skips non-html links (doc, pdf, ppt, xls, etc). I need Acrobat Pro to convert those files and put them in the order as well. I don't see an option for this in settings. Is there ANY way I can do this? This is for an archiving purpose and I have 10,000 plus files to convert. Please help.

    This is a question i'm trying to answer too. My issue is that I have a PDF file which itself contains links to both DOC and PDF files. The end result is that I need one consolidated PDF containing all the linked files (in order).
    I can run the "create from web page" on this PDF file, and it'll download them, but not convert them. It just adds them as "jumbled" text to the end of the document. I need it to download, convert, and then append them.
    So, as isunshine3 asked above, any way to have Adobe convert the files that it finds linked when running the "create from web page"?
    THanks
    Matt

  • Trouble with permission to open current PDF from one user to another user. what is the cure. i am running nthe current Server and updated Os 10.9.2

    Trouble with permission to open current PDF from one user to another  What is the cure ? I'm running the latest Server and OS 10.9.2.

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

  • Acrobat 8.1 Crashing when creating PDF from webpage

    www.sec.gov/Archives/edgar/data/910569/000091056909000016/form6-k15june09.htm
    I have been trying to create a PDF from the above URL using Acrobat 8.1 using the "Create PDF from Web Page" function.  The Download Status form opens and shows the progress as files are downloaded and converted.  However Acrobat 8.1 always crashes before completing the task.  Acrobat 5.0 successfully completes the task although the formatting leaves a lot to be desired but that's another issue.
    I've tried various values for settings such as processing 1 level or getting entire site but the crash is consistent.
    I have also tried a couple of other machines in the office with the same crashed result.
    Can anybody suggest why Acrobat 8.1 would fail to render this URL into a PDF and what would cause it to crash so consistently?  Is there an alternate method of creating a PDF from this URL aside from loading it into Word and printing to a PDF?
    Any clues appreciated!

    The problem is likely that the web page does not conform to standard HTML. AA8 crashed on me also. You can print the file from your browser. The only thing that would be missing would be the 3 links near the bottom and they are easy to add.

  • Acrobat Standard 9.1.1 crashes on Create PDF from scanner

    All options under the Create PDF from scanner sends Acrobat Standard 9.1.1 crashing.
    Faulting application Acrobat.exe, version 9.1.0.163, time stamp 0x49a88b32, faulting module dlbatwds.ds, version 3.107.0.0, time stamp 0x45df4d3d, exception code 0xc0000005, fault offset 0x00004da2, process id 0xce4, application start time 0x01c9dca1b4c4360b.
    Tried with both scanners CanoScan LiDE 600F and Dell 920A
    I am using Vista Ultimate x64.Have tried turning off UAC and also tried running as Administrator.
    No luck yet. Anyone have the same issue?

    This might be a scanner issue. Have you tried scanning using other applications?
    If not, can you try the following steps once?
    1. Download TWACKER (Twack_32.msi) from http://www.twain.org/downloads.shtm
    2. Install it.
    3. Go to <Program files>\TWAIN Working Group\Twacker 32 and invoke Twack_32.exe.
    4. Go to File menu > Select Source.
    5. Select the TWAIN driver (not the WIA driver) for HP M1212nf and Click OK.
    6. Now, invoke File > Acquire menu.
    Please update with the result.
     

  • Cannot Display PDF from Documentum in SAP

    Hello Everyone,
    We have linked SAP with Documentum to be able to retrieve documents stored in the content server. We made all the setting required in OAC0, OAC2, OAC3. But when we are posting a document against a Purchase Order from documentum and trying to view that PDF from "ME23" it is giving us an error message as shown below:-
    "The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    An invalid character was found in text content. Error processing resource 'file:///C:/Documents and Settings/gopal.yarlagad...
    But if we go into the "OAOR" I can see the document against the Purchase order. We are not able to figure out the issue regarding this. I would greatly appreciate your help if you can help me in resolving this issue.
    Regards,
    Gopal.

    We also had the same issue. It was working prior, and suddenly we can't view .msg file (in CMOD archived storage) in portal as it no longer recognize mime type for this. This must be a new patch from outlook last week. We ended up implementing config change suggested in note 1840170, and add this mime entry in local registry. As per IBM note http://www-01.ibm.com/support/docview.wss?uid=swg21610741, it looks like there's no other choice but to do it.
    We plan to push this entry to all users' computers soon. 
    Regards.

  • Having problems creating PDF from website with query-string URLs

    I have a website that I would like to create a PDF from. I am using the Create -> PDF from Web Page..., selecting the site's home page, and capturing 2 levels, with "stay on same path" and "stay on same server" checked in order to limit the scope of the crawl.
    Where the pages are at example.com/foo/ and example.com/foo/bar/, this works fine. However, where the pages are at example.com/foo/ and example.com/foo/?p=1, the page represented by the query string URL is not converted to the PDF.
    This is a problem, given that the site I want to archive as a PDF uses query strings for most of its pages.
    I have been able to individually convert a single query-string-based page into a PDF using this method, but doing this for every page on the site would be almost impossible given the sheer number of pages on the site.
    Is this a known issue? Is there a workaround other than separately capturing each page (which would be prohibitive effort)?
    I have tried this in both Acrobat Pro X and Acrobat Pro 9 for Mac, with the same results.

    Remember, Acrobat is a 32-bit application and as such cannot access all that 'extra' stuff.
    Be well...

  • PDF email archives: How to selectively re-export to new archive/.pst?

    A while back, I made PDF email archives of a variety of Outlook folders, and eventually deleted the Outlook messages in question.
    Now, unfortunately, I am wishing I had not.  So, a few "save the day" type of questions:
    1) Can I convert an entire PDF email archive, or portions of an archive, back into Outlook format?  How?  (If you know the answer to this, ignore the rest!)
    2) Can I selectively search a PDF email archive, and then group-export the messages displayed in the search results into a separate PDF email archive? How?  I can manage to use the filters to select a group of messages, but I can't manage to re-export them to a new archive or a PDF portfolio.
    thanks,
    Erik

    It cannot be done in InDesign, but, as you surmised in Acrobat.
    You'll need to ask in the Acrobat forums. I don't know of any changes like that in Acrobat DC but because I don't program in JavaScript, I might have overlooked it. Try one of these forums:
                                 Creating, Editing & Exporting PDFs                        
                                 Rich Media & 3D                        

  • Create PDF from web page w/password

    Would like to created a PDF using the 'Create PDF from WEB Page' function. The initial page of the site requires a login which we have but we seem to be unable to use Acrobat to archive the site because it requires a login. Is there a way to login and create a pdf of the site?

    I tested this in Acrobat X and the exact same issue occurs
    http://www.quantumdynamix.net/clients/image-map-test/ImageMapTest-AcrobatX.pdf
    This has to be considered a legatimate bug, especially since IMAGE MAPS is listes as one of the supported HTML features via the help files

  • Launch PDF from HTML and execute search

    Is it possible using JavaScript in an HTML doc to launch a PDF and execute a search.query with a passed-in search parameter? TIA

    Hello, George, thanks for following up.  I went into Advanced->Document Processing->Document JavaScripts and put the code at the top of the file outside of the dummy function declaration I had to insert to activate the edit button.  It looks like this:
    // Split the file path into an array
    var aPath = this.path.split("/");
    // Remove the last element, which is the file name
    aPath.pop();
    // Join the path elements back together and add the index file
    var cIdxPath = aPath.join("/") + "/Support Documents/SupDocs.pdx";
    search.query ("Enhanced Tactical Automated Security System (eTASS)", "Index", cIdxPath);
    function Search()
    It runs fine when I launch the PDF directly into the reader by double-clicking in file explorer in the folder above "Support Documents".  When I load the PDF from an HTML file in the same folder, however, the script does not run.  I set the reader preferences to force loading in the reader even when launched from a browser, and the script still will not execute.  I tried adding a button to the PDF and attaching the search script to it.  Again, it runs when launching directly but not from the HTML document.  Otherwise, the PDF is empty, and I'm using a relative URL and JS to load it from the HTML doc, such as:
    document.location = "mySearch.PDF"
    or
    window.open("mySearch.PDF", "searchwin");
    Neither one works.  This product has to run from a CD-ROM, so I haven't bothered to test it via http service.  Any suggestions?  Thanks again!
    Jon Camp
    Senior Computer Scientist
    Applied Research Associates, Inc.
    North Florida Division
    Training Solutions Group
    430 W 5th Street Suite 700
    Panama City, FL  32401
    comm: 850-914-3188 x203
    fax: 850-914-3189
    email: [email protected]

  • Display Document from Archive (TOAHR)

    hi all,
    is there a FM for displaying Document from Archive? i 've used a FM, but its only displaying FOTO and PDF, and it doesnt work with EXCEL or WORD, is there any idee ?
    Best Regards

    Not sure just searched in se37 and got this ARCHIVOBJECT_DISPLAY_WEBGUI.
    You can search for more in se37for ARCHIV*.

  • Retrieve jpg images from archive

    Hi Gurus,
    I am working in a Biller Direct project.I have a requirement in which scanned images stored in archive needs to be displayed whenever user clicks on a hyper link.SAP documentation says that we can use BADI EBPP_INVOICEDETAIL for this.I am successfully able to retrieve PDF docs from archive.But not sure how to achieve Jpg files.
    Any help....
    Regards,
    Raghu.

    hi
    just have a look at this documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/9561fbf3b111d1955b0000e82deb58/frameset.htm
    it will answer all your queries
    regards
    Aakash Banga

  • How do I keep downloaded pdfs from automatically opening in Acrobat on a MAC?

    I am downloading pdfs from FETCH on a MAC and they are automatically opening in Acrobat. How do I download and not have them open? There are literally hundreds of them.
    Thanks,

    Hi Brian,
    The Safari web browser contains a feature, enabled by default, which causes all files considered "safe" to be automatically opened once they have finished downloading. Safari considers the following file types to be safe:
    - Pictures
    - Movies
    - Sounds
    - PDF files
    -Text documents
    - Disc images (.dmg files)
    - Other archive types
    Although it can be convenient while enabled, this can be a very dangerous feature when it comes to your security. It can be disabled in a few easy steps.
    > Open your Safari web browser by clicking on the Safari icon in the dock.
    > Click on Safari in your Safari menu, located at the top of your screen. When the drop-down menu appears, choose Preferences.
    > Select the General tab from the Preferences window, which is now overlaying your browser window.
    You will now see a check box labeled "Open 'safe' files after downloading", located near the middle of the Preferences window. If this box is checked, click on the check mark and verify that it is no longer active.
    Click on the red circle/x located in the top left hand corner of the Preferences window to complete the process. You will now be returned to your main browser window.
    Hope this helps.
    Regards,
    Rave

Maybe you are looking for