Archived PDF could not be opened after downloaded to PC

Hi
I am using FM ARCHIVOBJECT_GET_TABLE to get archived PDF into internal table and then using METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD to download this to PC.
Now when I try to open this PDF, it gives some error.  Error reads
Adobe reader could not open "file.pdf" because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)
This was working fine in non unicode 4.7 system, but is not working after upgrade to unicode ECC 6.0 system.
The code is as follows,
*   Get document from archive
    CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'
      EXPORTING
        ARCHIV_ID                      = l_archiv_id
        DOCUMENT_TYPE                  = l_document_type
        ARCHIV_DOC_ID                  = l_archiv_doc_id
      IMPORTING
        LENGTH                         = l_sapb_length
      TABLES
        ARCHIVOBJECT                   = lt_tab
      EXCEPTIONS
        ERROR_ARCHIV                   = 1
        ERROR_COMMUNICATIONTABLE       = 2
        ERROR_KERNEL                   = 3
        OTHERS                         = 4.
   CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
        BIN_FILESIZE              = l_length
        FILENAME                  = l_filename
        FILETYPE                  = l_filetype
      CHANGING
        DATA_TAB                  = lt_tab
      EXCEPTIONS
        FILE_WRITE_ERROR          = 1
        NO_BATCH                  = 2
        GUI_REFUSE_FILETRANSFER   = 3
Do we have to change any parameters or anything for unicode system?

Is the filetype declared as 'BIN' in download?

Similar Messages

Maybe you are looking for

  • Help on display

    Hi, Can you help me on what methods of FMs to use? I need to have a report that will be displayed on screen, can be e-mailed, and can be printed. It has a header and a footer. The header has a logo on the left side and has header texts that are posit

  • Questions on Netting

    Dear Gurus, I have questions on Netting: (1) As far as I understand, all receipts with respect to PO and all delivery with respect to SO are netted by the Netting document. For financial based netting, since Netting document is doing the netting, do

  • Question on The @EJB Annotaion

    Hello everyone, How does the @EJB annotation works? Does it already assign an instance of the EJB once a field is annotated by it? For example I have a code below; public class MyClass {     @EJB     StudentEJB studentEJB;     @EJB     EmployeeEJB em

  • Feature Request: Better format options Please!

    I've been using Adobe Story recently and think it's a great, competitive product that definitely rivals other products! However, I do think there need to be a few more output options to increase compatibility with writers and producers who may not ne

  • Load-balancing with OCI connections

    Gurus, Oracle Identity Federation (OIF) can leverage an Oracle database as its transient data store in which case it uses JDBC-OCI connections to connect. However, there is no provision in OIF of defining multiple databases for load-balancing purpose