ZIP PDF documents Runtime

Hi Experts,
                      I have a requirement that needs to ZIP pdf documents and need to send mail ZIP file as attachment.
I did: finally i'm getting pdf converted XSTRING formatted data.. I struck here.. whats next..?
any standard Classes or FMs available for making ZIP files.

Hi,
CL_ABAP_ZIP sounds quite like what you're looking for I remember that there is no possibility to create password on this zip file, but I also remember that someone on code exchange was doing a project regarding this problem, so if you need it you can check there.
Best regards
Marcin Cholewczuk

Similar Messages

  • Whenever I try to print a pdf document I get a message saying there  a runtime error, I have adobe r

    Whenever I try to print a PDF document, I get a message indicating there is a runtime error, and for me to contact you. My system is Adobe reader 9.3

    A runtime error is a computer error that appears in the form  of a message box consisting of a particular code along with its  corresponding definitions. Usually, a user will notice that the computer  becomes noticeably slow before a runtime error appears.
    After the runtime error message has been displayed and closed, the software that shows this error would  normally close or freeze. In some cases, the operating system will  reboot.
    A wide variety of errors cause these problems. These include:
    conflicts between the TSR (Terminate and Stay Resident Program)
    currently running applications
    software issues
    memory problems
    and harmful applications such as computer viruses
    With this, the procedures necessary to correct this type of error  differs from one case to another. If the runtime error you are  experiencing were caused by a TSR then you can simply use the "end task"  function of the Task Manager.
    If you consequently encounter a runtime error  that is persistent, the software that displays the error message has  certain issues and problems. You can resolve this problem by visiting  the website of the software's developer and downloading and installing  all the updates and patches needed for the smooth running of the  software. However, if you have already installed all updates and patches  and the runtime error message still appears, you can opt to uninstall  and reinstall the program.
    Another type of runtime error is usually caused by memory issues. In  this case, it is a good idea to first contact the developer of the  application that caused the error message. More often than not, they can  provide you with a possible set of solutions. But if their given  solutions cannot resolve the issues, you need to contact the  manufacturer of your computer or motherboard and ask for a technician or  someone from the company who can assess your hardware.
    A different type of runtime error is caused by harmful programs such  as viruses and other malicious processes. These harmful programs are  capable of altering the computer's settings. With this, they are very  much capable of generating runtime errors. In order to prevent runtime  errors that are caused by such malicious programs, you need to  frequently update your antivirus software. If your PC does  not have a good software security program, you need to install one and scan your computer for possible threats  to the stability of your system and the security of your private data.
    What all that means is: There is something in the Adobe Reader that is not functioning properly once it is opened.
    The best way to resolve this is to:
    1. Uninstall Reader (using the Control Panel).
    2. Download and install the Windows Installer Cleanup Utility (msicuu2.exe)
    3. Run the Windows Installer Cleanup Utility to remove the installer for Reader 9 (and previous versions if they are still installed).
    4. Download and install a new copy of Reader, and update it (if required) to 9.3.1.

  • Error message 'not a valid PDF document'

    Hi folks,
    my Z10 has trouble opening some PDF documents sent as email attachment. When I try to open them the error message appears:
    Important message
    The document cannot be opened because it is not a valid PDF document
    There is no BES10 Service involved in my environment. Mails are synced with with active sync.
    OS Version: 10.2.0.429
    Any suggestion appreciated.
    Best regards,
    RAUMPATROUILLE

    Stuffit is the only app I know of which can decompress its own format. Your Windows clients must use the free Expander to open them. Otherwise, use OS X's built in zip compression and they'll be able to open the files without the need of third party software. Right click on any item, or group of items and choose, "Compress xxx Items" (how it will read if more than one item is chosen).

  • How to link PDF document in Report Layout??

    I need to display the contents of PDF document after the form letter report. I tried OLE object but at the runtime it does not display the content. Does any one knows how to attach PDF document in reports layout?
    Thanks
    Ravindra

    you will have to concatinate your report output with the static PDF document. in reprots 10g you can create a cusotm destination that could implement this functionality.
    out of the box, reports does not provide the ability to add static content in PDF to reports' generated PDF output.
    thanks,
    philipp

  • MS Excel document as attachment to a PDF document does not open with a hot spot/link in the PDF

    Hi, I have attached an excel file to a pdf document. I need to open this document in a new window by clicking an icon/hotspot in the pdf document to which it it attached.
    I am using the Link Tool to create a hot spot around the icon in the pdf. In the next window I am using the Go to Page view option, opening the attachment to its first page and clicking the "set link" button.
    For some reason, clicking the hotspot does not open the excel document as it does another pdf document.
    Need help resolving this issue with attached documents.

    Select a particular download file. Press COMMAND-I to open the Get Info window.  In the Open With section choose the desired default application from the dropdown menu then click on the Change All button.
    For .dmg files use DiskImageMounter (System/Library/CoreServices/ folder.)
    For .zip files use Archiver - same folder as above - or download TheArchiver - MacUpdate or CNET Downloads.

  • IWeb • How Do I Make Links in an Embedded PDF Document Open in New Page?

    On this page http://ostyn-newman.com/Gov_Downloads.html I have a PDF document that is embedded.  I tried an IFrame, but everything seemed to work better for me with the "Embed" code.  I am open to changing this if it would be better.  Here's my problem.  I can get the PDF document to display fine, but when I click on the links in the PDF document, the destination page opens in the embedded window.  I want the links to open the destination in a new window.
    I created the part of the document with most of the links (Pages 8.5 - 56) in Numbers and cut and pasted the table into a Pages document to create the completed document on our site.  I exported the docuemnt from Pages as a PDF file which is what you see.  There is also a link to download the file on the same page which works just fine.
    I have tried to insert the target="_blank" code but have not been able to get it to open the destination pages in a new window.  I am inserting the code by using the Insert/Widget/HTML Snippet Feature in IWeb.  Here is the code I am using.
    <embed src=
    "http://ostyn-newman.com/Media/GS27F0026XTextfile.pdf"
    style="width:850px; height:1000px;
    border-width:0px;
    border-color:#FFCC66;
    border-style:solid;"
    scrolling="auto" >
    </embed>
    I am not a coder and have just used Google to find the code to cut and paste and have played around with it to get to the place I am.  If anybody can tweak the code I have or offer some totally new code for me to insert that will get this to work would be greatly appreciated.
    Please keep in mind that most of the people who visit and use this page are government employees and are almost exclusivey using Explorer. 

    Thank you Jeff,
    I tried your original suggestion and now my inserted html widget reads
    <embed src=
    "http://ostyn-newman.com/Media/GS27F0026XTextfile.pdf"
    style="width:850px; height:1000px;
    border-width:0px;
    border-color:#FFCC66;
    border-style:solid;"
    scrolling="auto" target="_blank">
    </embed>
    It is live on my site.  You can see that the embedded document still opens the destination links in the embedded window.
    As for your other two suggestions, thank you as well.  I am aware of those techniques and did not use them because that is not how I want the other PDF links on the page to behave.  The catalog and autocad blocks downloads in the box at the top should simply download (or behave however the client's browser is configured to handle downloaded PDF documents or zip files.)  I don't intend to force those to open a new window.  I could also have our client click on a link to the PDF document and open it in a new page (like in your second suggestion) but I was hoping to embed the PDF and have it automatically viewable on our Download • Terms • Prices Page with all of the PDF search functions intact as well as the links be active.  My only complaint at this point is that the links in the embedded PDF document open the destination page in the embed window instead of a new window.  I only want to force a new window because the destination window doesn't behave properly when it opens in my embed window and it is difficult to figure out how to go back to the my PDF document when a destination window gets opened in the embed window.  The code you sent didn't do the trick.  Or maybe I didn't get it exactly right.  That is why I included it above.  Thanks for trying though.  I appreciate the effort.
    I would be willing to bypass the imbed/iFrame route altogether if I could just somehow drop the Pages document into the IWeb page and retain the search and link features, but I've not been able to figure out how to do that.  When I was exploring how to directly drop a Pages document into an IWeb page is when I stumbled on the method of embedding a PDF document into an IWeb page to retain the important search and link features.

  • My PDF download stopped operating and I can not open Any PDF documents using Firefox anymore. I have Adobe reader 9.3.1 installed on PC and on Firefox I have PDF download 3.0.0.2 and Adobe acrobat 9.3.0.148. What could cause this sudden malfunction?

    Ibm w500 with XP & sp3.
    No error messages appear, PDF documents are just not created.

    There have been several similar topics over the last year or so; see this search result http://forums.adobe.com/search.jspa?q=runtime&resultTypes=MESSAGE&resultTypes=COMMUNITY&pe opleEnabled=true&dateRange=all&communityID=3414&username=&numResults=15&rankBy=10001
    B_spies wrote:
    I would post some attachments of our Process Monitor screenshots but attachments are apparently disabled on the forums right now.
    You can still post images using the camera icon on the forum editor.

  • How do i open a PDF document in forms?

    How do i open a PDF document in forms runtime?
    acrobat reader would already be installed on the pc's.
    any help would appreciated.
    Thanks
    Hussein Saiger

    Hello,
    I'm not a specialist, but I think that you could configure these information in the /Apache/Apache/conf/httpd.conf file
    # Aliases: Add here as many aliases as you need (with no limit). The format is
    # Alias fakename realname
    <IfModule mod_alias.c>
        # Note that if you include a trailing / on fakename then the server will
        # require it to be present in the URL.  So "/icons" isn't aliased in this
        # example, only "/icons/"..
        Alias /icons/ "/appli/9IAS/Apache/Apache/icons/"
        Alias /jservdocs/ "/appli/9IAS/Apache/Jserv/docs/"
        Alias /javacachedocs/ "/appli/9IAS/javacache/javadoc/"
    ...Francois

  • Sending a PDF document as a file attachment

    Hi,
    I have encountered the following problem:
    When attaching a pdf document to an email and sending it via Javamail, the resulting PDF document on the other end (i.e. when opened via an email client, such as Outlook) is corrupted and cannot be opened in Acrobar Reader. When doing a side by side comparison with the original file, the emailed document is 1 byte larger than the original (which can possibly cause the "corrupted file error").
    Now, this is happening in my company's application and is happening to only one of our customers. This does not happen to 99.9% of them nor can we duplicate it. In addition, it does not happen to all PDF documents, only a few of them.
    I have also ensured that our client has the latest version of Javamail and the activation framework jar files.
    One thing I have noticed is that the documents are "encoded" as 7bit. This makes sense since the Javadocs explain that if a file is "US-ASCII only" it will be encoded as 7bit, otherwise it will be encoded as base64. Many of our PDF documents are text only.
    My side question is, is there a way to force it to encode it as base64 for all pdf documents and would this help?
    My main question is: Does anyone know what is happening and what I can do about it?
    Anyway, here is the code fragment that does the attachment:
                          for (int i = 0; i < attachments.length; i++)
                             messageBodyPart = new MimeBodyPart();
                             FileDataSource fileDataSource = new FileDataSource(attachments);
                             messageBodyPart.setDataHandler(new DataHandler(fileDataSource));
                             String fileName = attachments[i].getName();
                             messageBodyPart.setFileName(fileName);
                             multipart.addBodyPart(messageBodyPart);
    Where attachments is a File array.

    Only one of your customers. And they can only handle base-64 encoding and not 7-bit encoding of mail messages.
    We had the same thing. We send thousands of files every week using JavaMail, most of them PDFs and other files that are all text. Just one of our customers had some cruddy mail handler they had written themselves, or something like that, and it only liked base-64 encoded messages. This was fine for them because MS Outlook automatically does that for attachments regardless, and everybody was using Outlook to send them files. Except us. So we had to set up a hokey scheme where we would send their messages to a local MS Exchange address and have them auto-forwarded to the customer's address. (I couldn't find any way to control base-64 versus 7-bit encoding.)
    But that customer wasn't using Outlook to read the messages, so maybe that isn't the problem. We also had a supplier (fortunately an ex-supplier now) who we used to send zip files to (from Outlook even) and their mail server would insert extra line breaks into the attachment, thus making the zip file corrupted. Maybe something like that is happening.
    We had another customer who used Lotus Notes as their mail server, and it couldn't deal with our plain ordinary PDFs either. But I think Notes must have had some bug fixes because I haven't heard about that problem lately.
    Good luck.

  • TIFF images in PDF documents

    Just looking for a short answer, no technical details needed: Is it possible to store TIFF images in PDF documents without losing information?
    Thank you in advance,
    k.

    >On my own computer it seems I only have options to save it as jpg or zip internally.
    That's correct. The PDF specification supports many more forms of
    compression. Than this.
    > Can't find any options to save it as TIFF internally.
    That's correct. A PDF image is stored as a collection of pixels NOT as
    an embedded graphic format.
    The collection of pixels may be compressed according to one of many
    compression schemes. There is JPEG (internally called DCTDecode) and
    ZIP (internally called FlateDecode). FlateDecode is completely
    lossless, so if what you are concerned about is loss of picture
    quality, this is the one to use.
    A ZIP compressed PDF is typically going to be about the same size as
    the corresponding ZIP compressed TIFF.
    Aandi Inston

  • Sending a PDF document to printer directly

    Hi,
    can any one help me in printing a PDF file stored in the system to be sent to printer from abap code.
    thanks in advance.

    hi here is the program to print the pdf document directly..
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver,
                         p_sender LIKE somlreci1-receiver,
                         p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Write statement to represent report output. Spool request is created
    if write statement is executed in background. This could also be an
    ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    Alternative way could be to submit another program and store spool
    id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
           to sap-spool
           spool parameters   %_print
           archive parameters %_print
           without spool dynpro
           and return.
    Get spool id from program called above
    IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
          FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
          FORM get_job_details                                          *
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
          FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      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.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
          FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    perform send_email using p_email2.
    ENDFORM.
          FORM send_email                                               *
    -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
          FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    regards,
    venkat

  • Problem Trying to retrieve a PDF document from XMLP_SCHED_DATA BLOB field.

    Hello everyone,
    I'm using BI Publisher 11g to generate PDF documents. I had implemented a servlet that uses HTTP POST/GET to simulate the behaviour of BIP console since ScheduleReport Service is not implemented in this version. The problem is about the output of the final documents when i'm not using the bursting option. From my experience, the documents are not saved in any temporary folder in the filesystem. Looking at DEV_BIPLATFORM schema and analysing XMLP_* tables, i'm assuming that the generated document data is the BLOB DATA field in the XMLP_SCHED_DATA table...this is right?
    Next, in java, i'm using the BLOB field to output his binary content to a PDF file but, when i try to open the file, it gives an error: "document may be damaged"...
    Any suggestions here would be appreciated...
    Thanks in Advance
    Regards,
    NP

    831692 wrote:
    Hello everyone,
    I'm using BI Publisher 11g to generate PDF documents. I had implemented a servlet that uses HTTP POST/GET to simulate the behaviour of BIP console since ScheduleReport Service is not implemented in this version. The problem is about the output of the final documents when i'm not using the bursting option. From my experience, the documents are not saved in any temporary folder in the filesystem. Looking at DEV_BIPLATFORM schema and analysing XMLP_* tables, i'm assuming that the generated document data is the BLOB DATA field in the XMLP_SCHED_DATA table...this is right?
    Next, in java, i'm using the BLOB field to output his binary content to a PDF file but, when i try to open the file, it gives an error: "document may be damaged"...
    Any suggestions here would be appreciated...
    Thanks in Advance
    Regards,
    NP1. Yes, it contains the output document.
    2. If the output type is PDF then the BLOB contains a zip file which contains the PDF document.
    So first unzip it before rendering
    Cheers
    Jorge
    p.s. If your question is answered then please grant the points and close the thread

  • PDF Document is not working

    Hi,
    We are migrated from xMII 12.0 to MII 14.0 SP04 . We generate PDF document. A html page calls a exacute query which calls a transaction.
    In the transaction, a PDF Document object, PDF Bar Code object, Delete File object and Image Saver. Delete File Object will delete existing file in WEB://ABC/PDF folder and image saver will save the new PDF file in WEB://ABC/PDF folder. HTML page popup a window which will display the save PDF file. Another transaction which find the name the file in the WEB://ABC/PDF and pass this information to Delete File object.
    In 12.0 it is working fine and in 14.0 implemeted new PDFActions.zip file as per note 1325997. Now for a user, I assigned SAP_MII_Developer PDFis generating. But other user with the same role as the previous user, the PDF page is not generating. Log error shows, java.io.FileNotFoundException.
    The roles of the user are assigned to both the transaction.
    Please help to resolve the issue.
    Thanks,
    Raman N

    Hi Raman,
    Just give a try to below mentioned thing:
    I was trying file drop functionality in MII 14.0 and I could not make it work until I cleared Default File Path property under System Properties screen.
    It comes with ‘MII’ by default on it representing MII web folder. Once I left it blank my file drop on MII box and on the network started working.
    Just something that has changed on MII 14.0
    Ritim

  • PDF document not openeing on some PC's

    Hello,
    In my BSP application a PDF document opens on a button click. However, the PDF seems to work on some machines and not on others. This is mainly in production.
    Can you please provide any suggestion for why it is behaving as such?

    Hi,
    My initial thought would be that the pdf extension (I hope that you provide the pdf extension, MIE needs it) isn't linked to AR.
    Check http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_fcab_reg_filetype.mspx for this.
    If you have eg Mozilla, check this http://www.mozilla.org/docs/end-user/helper-applications.html
    If that's not the case, I would add this in your BSP page that generates the PDF:
            runtime->server->response->set_header_field( name = 'Content-Length'
                                                 value = contentsize ).
            runtime->server->response->delete_header_field( name = 'Cache-Control' ).
            runtime->server->response->delete_header_field( name = 'Expires' ).
            runtime->server->response->delete_header_field( name = 'Pragma' ).
            runtime->server->response->set_header_field( name = 'Content-Type'
                                                     value = 'application/pdf' ).
    Eddy

  • Open PDF document through JavaFX

    Hello All,
    I want to open pdf document when user clicks on "Help" link in JavaFX. PDF document is usually locally stored on user's machine.
    How I can achieve this ?
    thnx in advance,
    Venky

    Will it work for Linux ?No, of course.
    I think you must do something like:
    var params = [ 'cmd', '/c', pdfFilePath ]; on Windows
    var params = [ 'open', pdfFilePath ] on Mac
    var params = [ 'gnome-open', pdfFilePath ] on Linux with Gnome
    var params = [ 'kde-open', pdfFilePath ] on Linux with KDE
    then your Runtime.getRuntime().exec(params);
    You can catch exceptions if you are not sure of the platform (particularly Gnome vs. KDE): if raised, try something else...
    That's how Processing does its open() function. (Untested in JavaFX...)

Maybe you are looking for

  • Every Other Frame is Blank &Green with MP4 Share

    When rendering an imported Motion JPEG OpenDML- AVI clip to MP4, every other frame comes out solid green when played with Quicktime Pro and iTunes, or an iPod. I have no issues with playing the source AVI clip in Quicktime. I have no issue with playi

  • How do I locate the errors I am given when I save?

    When I save my workbook it tells me "Some cells or styles in this workbook contain formatting that is not supported by the selected file format. These formats will be converted to the closest format available." And that it happens 11 times. Is there

  • Why I can't pass parameters into CR from VB6

    I want to Pass parameters into crystal report from VB6. But whatever I try, it don't work Fine, always Show the message "This field name is not known". Crystal Report:: Parameter: a.@cmpy;                    b.@p1 formula: a. If {?@cmpy} ="USA" or {?

  • SAP BWA 2 node high availability

    Hi All My Customer uses 2 node(48GB each) active SAP BWA for their production system. As this customer want High Availability for this BWA. He want to change it to 1 node active + 1 node stand by It uses OCFS2 for cluster file system. Is it possible

  • DiskWarrior: "not enough contiguous space"? -What does this mean??

    Having issues, cannot reboot, after software update. Grey screen + Apple comes up, but no wheel and no further booting. I'm able to boot from the DW CD. Hard drive capacity is 74.41GB/ available space 21.81GB. Graph of hard drive shows 5% out of orde