Need upload a PDF document and send it as attachment

hi all,
   i need help. i need to upload a standard pdf file and send it as attachment .. every time i use the func. module Gui_upload it corrupts the pdf file.
is there any func. module that can serve my purpose.
please help ..
usefull suggestion will surely be rewarded.
thanx in advance.
Srinivas

HI PRASHANT,
thanks for ur suggestion.. i tried the format bin but it does n't work . it seems it is not able to decode  properly.
my senario seems to be very simple..
i have a standard pdf file which will be sent to a set of user as attachment .. the user will then download the attchment .. now  when i download it ... i `get the message that the file is corrupt..
is there any function module... please let me know.
thanks once again.
srinivas

Similar Messages

  • Need to Generate PDF file and send it to customer through email-ALV report

    HI All,
       I am having data in Internal table.
    can we create PDF file with out having spool-request number.
    My requirement is whenever user clicks on execute button the output is generated in PDF format automatically and then send it to customer through email.
    I found few programs in SDN for generation PDF. But problem is everyone passing the spool request to the function module.
    spool request will be generated whenever we click on print button.
    Am I correct?.
    Is there any other way to create spool request automatically. If so we can pass the this spool number to the function module.
    Regards,
    vinod.

    hi
    For sending a mail, this code will help you.
    Pls reward if help.
    FORM send_mail_2 USING msgid msgno msgv1.
    mailuser oder Gruppe like sy-uname default 'Ruckerk'.
    DATA: express_hold_time LIKE sovaltime.
    DATA: text LIKE sotxtinfo.
    DATA: receiver LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
    MESSAGE ZF100 (FTP an UDB fehlgeschlagen)
    text-msgid = msgid.
    text-msgno = msgno.
    text-msgv1 = msgv1.
    text-msgv2 = ' '.
    text-msgv3 = ' '.
    text-msgv4 = ' '.
    express_hold_time
    express_hold_time-days = 01.
    express_hold_time-h_min_sec = 240000.
    receiver
    receiver-receiver = mreceivr.
    Gruppe von Empfängern
    receiver-rec_type = 'C'.
    und Expressmeldung ausgeben
    receiver-express = 'X'.
    APPEND receiver.
    CALL FUNCTION 'MESSAGE_SEND_AS_MAIL'
    EXPORTING
    msgid = text-msgid
    msgno = text-msgno
    msgv1 = text-msgv1
    msgv2 = text-msgv2
    msgv3 = text-msgv3
    TABLES
    receivers = receiver.
    IF sy-subrc <> 0.
    WRITE:/ 'hat nicht geklappt', 'SY-SUBRC =', sy-subrc.
    ENDIF.
    PERFORM print_error_report.
    Fehlermeldung zum Abbrechen des Report's ausgeben.
    MESSAGE e398 WITH 'Jobabbruch' msgv1.
    ENDFORM. " SEND_MAIL_2
    Another Program:
    *& Report ZSENDEMAIL *
    *& Example of sending external email via SAPCONNECT *
    REPORT zsendemail .
    PARAMETERS: psubject(40) type c default 'Hello',
    p_email(40) type c default '[email protected]' .
    data: it_packing_list like sopcklsti1 occurs 0 with header line,
    it_contents like solisti1 occurs 0 with header line,
    it_receivers like somlreci1 occurs 0 with header line,
    it_attachment like solisti1 occurs 0 with header line,
    gd_cnt type i,
    gd_sent_all(1) type c,
    gd_doc_data like sodocchgi1,
    gd_error type sy-subrc.
    data: it_message type standard table of SOLISTI1 initial size 0
    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *& Form POPULATE_MESSAGE_TABLE
    Adds text to email text table
    form populate_message_table.
    Append 'Email line 1' to it_message.
    Append 'Email line 2' to it_message.
    Append 'Email line 3' to it_message.
    Append 'Email line 4' to it_message.
    endform. " POPULATE_MESSAGE_TABLE
    *& Form SEND_EMAIL_MESSAGE
    Send email message
    form send_email_message.
    Fill the document data.
    gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
    gd_doc_data-obj_langu = sy-langu.
    gd_doc_data-obj_name = 'SAPRPT'.
    gd_doc_data-obj_descr = psubject.
    gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
    clear it_packing_list.
    refresh it_packing_list.
    it_packing_list-transf_bin = space.
    it_packing_list-head_start = 1.
    it_packing_list-head_num = 0.
    it_packing_list-body_start = 1.
    describe table it_message lines it_packing_list-body_num.
    it_packing_list-doc_type = 'RAW'.
    append it_packing_list.
    Add the recipients email address
    clear it_receivers.
    refresh it_receivers.
    it_receivers-receiver = p_email.
    it_receivers-rec_type = 'U'.
    it_receivers-com_type = 'INT'.
    it_receivers-notif_del = 'X'.
    it_receivers-notif_ndel = 'X'.
    append it_receivers.
    Call the FM to post the message to SAPMAIL
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    exporting
    document_data = gd_doc_data
    put_in_outbox = 'X'
    importing
    sent_to_all = gd_sent_all
    tables
    packing_list = it_packing_list
    contents_txt = it_message
    receivers = it_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.
    Store function module return code
    gd_error = sy-subrc.
    Get it_receivers return code
    loop at it_receivers.
    endloop.
    endform. " SEND_EMAIL_MESSAGE
    *& Form INITIATE_MAIL_EXECUTE_PROGRAM
    Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
    wait up to 2 seconds.
    if gd_error eq 0.
    submit rsconn01 with mode = 'INT'
    with output = 'X'
    and return.
    endif.
    endform. " INITIATE_MAIL_EXECUTE_PROGRAM

  • How to upload a PDF document from an e-mail attachment file and convert it to word document for edit

    I received an e-mail.The attachment is in PDF format. I would like to upload the file to convert it to word for editing.How to do that?

    Hi Quincy,
    You would need to save the file to your desktop and upload it from there for conversion using your ExportPDF subscription.
    Let me know if you need further assistance!
    Regards, Stacy

  • How to upload a PDF-file and send it by SAP Mail

    Hi,
    we need to attach a pdf-file to an email send by SAP. The file is stored in a SAP-directory. When I use Open dataset to get the file it works but when sent by email the file could not be opened. I guess that perhaps I have to use other parameters to get the PDF in a correct file but I don't know which ones. Here is part of the coding I use for testing:
    TYPES: BEGIN OF typ_pdf,
           line(255),
           END OF typ_pdf.
    DATA: it_pdf TYPE STANDARD TABLE OF typ_pdf,
          wa_pdf LIKE LINE OF it_pdf.
    v_file = '/pool//Test.pdf'.
    OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.
    WHILE ( sy-subrc EQ 0 ).
      READ DATASET v_file INTO wa_pdf.
      IF NOT wa_pdf IS INITIAL.
        APPEND wa_pdf TO it_pdf.
      ENDIF.
      CLEAR wa_pdf.
    ENDWHILE.
    CLOSE DATASET v_file.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data             = gd_doc_data
        put_in_outbox              = 'X'
        commit_work                = 'X'
      TABLES
        packing_list                  = it_packing_list
        contents_bin               = it_pdf
        receivers                  = it_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.
    Regards
    Nicola

    Hi Nicola,
    read the pdf from dataset as binary into an XSTRING.
    use function to convert xstring to table.
    Do not use SO_DOC.. function but CL_BCS (see blog 'unknown thus unloved'
    Regards,.
    Clemens

  • Upload a .xls file and send it as attachment on email

    Hi guys,
    I have a program that creates a .xls file using the function module call method cl_gui_frontend_services=>gui_download. I've been trying to upload the file as an attachment to send it via email but still haven't found a way to do this task.
    Appreciate your help,
    Thanks 

    Hi Orlando,
    convert content to Hex format then,
    lw_document = cl_document_bcs=>create_document(
               i_type    = 'RAW / HTM'
               i_text    = lw_main_text
               i_subject = lw_subject ).
          w_document->add_attachment(
             i_attachment_type    = 'XLS'
             i_attachment_subject = lw_att_sub
             i_att_content_text   = p_int_soli[]
             i_att_content_hex    = p_int_solix[] ).
    w_int_address = lw_smtp-low.
                 w_camuser = cl_cam_address_bcs=>create_internet_address( w_int_address ).
                 w_recipient = w_camuser.
    thanks,
    Anil

  • How to Create a PDF Document and apply Digital Signature in C# using the Adobe SDK?

    Hi Everybody!
    I have to do two distinct tasks here:
    1) How can I create a PDF document using the Adobe SDK in my .NET Applications(C# - 2.0)?
    I just need a basic sample to create a document with a simple text, for example. I did not find any useful information in the adobe documentation. I have the Acrobat Professional 8.0 in my computer, but it's very dificult to work whith de Acrobat.dll and .NET with a poor documentaion.
    2)How can I apply digital signature in a existent pdf document?
    I need to sign documents using the SDK, just a basic sample in c# would be helpful to start!
    Anybody could help?
    Thank in advance!

    Leonard Rosenthol or anybody that can help, sorry to insist.
    I will explain better my problem:
    I have an ASP.NET WebPAge (C# - 2.0). In this page, the user make a request. The request should generate a PDF document with the informations of the request and with a field to add a digital signature. The document created will be send to a approver that will confirm the approval applying his digital signature (I need to do too, a webpage where the approver open the page, choose the pdf document, and sign, just selecting his own certificate and clicking in the button SIGN... but this is another problem).
    That's the reason that I have to create a PDF document. If I create a WORD or HTML document, and then convert to PDF, how can I add a field to digital signature in this pdf document?
    Is there any solution using Acrobat SDK?
    Thank you very much!

  • How to upload a PDF document to a website

    Using my iPad and Safari Browser I'm trying to upload a PDF document to a website.
    When I click on the website's button to "Choose File" I only get the options to select "Camera Roll" or "Photo Stream" or a video.
    I have the PDF document saved in iBook, Dropbox, Goodreader,  and Pages.  But those apps are not selectable as "Open In..." options - only Camera Roll and Photo Stream.
    Any way to make these app selectable, or get the PDF into the Camera Roll so that I can upload it to this particular website?
    Thanks,
    Q.

    Dear red555,
    This problem is existing for any website, which needs to upload file!,,
    This is about 2 days continuously looking for troubleshooting of this problem by searching the net and IPforums,and I found too many people suffering from this,,,,
    Does it need any special application to install?

  • Does anyone know of an e-reader app for the iphone that has text to speech capability? I have a Kindle 3G that can read whole pdf documents and books but I cannot figure out how to do it on my iphone 4.

    Does anyone know of an e-reader app for the iphone that has text to speech capability? I have a Kindle 3G that can read whole pdf documents and books but I cannot figure out how to do it on my iphone 4.
    All of the apps I have found on the App store either do not have the text to speech capability or if they have it they will only read a page at a time or simply read the text you paste into their window. I really do not understand what is so difficult about having this feature as Kindle provides it--though Amazon does not make the feature available on its iPhone 4 app.
    Please help.

    thanks. yes i am aware of the VoiceOver feature but it is NOT the solution to my problem. as you said, it is a solution to a different set of issues. i want the text to speech ability because i there are books i need to read but do not have the time to sit down and read them and have become used to listening to them read to me either by a professional human reader or with the text to speech software on the Kindle.
    I think Apple makes the best audio devices but i am really disappointed in this inexplainable shortcoming. if apple can give us siri they ought to be able to design a nice little button that i can push to turn on text to speech while i am in a document, book, magazine or webpage. clearly it is possible as apple has added the "reader" button in safari to have web pages dropped into the reader format.
    thanks for your suggestion though, it is what everyone suggests but it does not address the issue.

  • Convert XSTRING to PDF Format and Send it as an attachment with work-item

    I have an Adobe Form data available in the ECC system in XSTRING format. In one of my ABAP methods (used by a custom workflow task), i want to convert the XSTRING data in PDF format and send it as an attachment with a work-item. How best can this be done?
    Appreciate any ideas,
    Saurabh

    Hi Saurabh,
    if u want to download pdf which is in xstring format to u r local system
    u can try the following code.
    data: data_tab type table of x255.
    call function 'SCMS_XSTRING_TO_BINARY'
    exporting
    buffer = XString data
    tables
    binary_tab = data_tab.
    cl_gui_frontend_services=>gui_download(
    exporting
    filename = filename
    filetype = 'BIN'
    changing
    data_tab = data_tab ).
    cl_gui_frontend_services=>execute(
    exporting
    document = filename ).
    Regards,
    Chandru

  • Online php form (inserts) in pdf form and send via email

    So first hello all.
    There are 4 PDF Forms amd 4 php forms on a website.
    The user should be able to fill out the php form, click on send and the inserts from the user should be stored in the pdf form and send to an email adress.
    I know that there are 3rd party tools, the convert it to a image, draw the inserts and convert it back.
    But i want to know, how to do it with acrobat itself.
    Is there any way to put varaibles in the pdf where php can set (fill)
    If this is impossible:
    I have heard, that there is a server version from acrobat who can manage this.
    The information about this is rarly like i dont understand how much the costs are.
    First : price x (for the server software itself)   
    Second: price y (for every processed document)
    Many thanks in advance
    IT Technik Schiedt

    You cannot use Acrobat on a server in that manner. Acrobat is licensed for one user one system at a time.
    You can create and FDF file with the form field data and use that data to fill-in a PDF. You needd to create a unique PDF that could be added to an email and then deleted. You could also accumulate the data in a database.

  • TS3899 why, when the problems are linked to an ipad, do I need to download a document and fill it in? My ipad doesn't do that! What if my ipad is my computer?

    why, when the problems are linked to an ipad, do I need to download a document and fill it in? My ipad doesn't do that! What if my ipad is my computer?
    My mailing system won't work, and I see many here have had the same problem. so I tried the suggestions I could find. Last thing I tried was deleting my mailing account, so that I could restore it again. Internet is working, everything else is working, plenty of space BUT now my email won't even be restored. Not any of my other mailing accounts either for that matter.
    Background information:
    I use yahoo (the one I prefer by far), sometimes gmail, hotmail if I absolutely have to
    My ipad is ipad 2, 1 year old
    problem with the mailing system started less than a month ago
    iåproblem was that it wouldnt refresh and find new mails, also took a long time sending mails

    Create a iTune and App Store account without credit card
    1. Go to App Store and select a free app
    2. Tap INSTALL APP
    3. Create New Apple ID
    4. Confirm Your Country
    5. Agree with Terms and Conditions
    6. Fill in your Apple ID and Password (must be a valid email address)
    7. Create and answer your secret question e.g. What is the name of my dog?
    8. Select NONE for Payment Method
    9. Fill in Billing Address i.e. your address
    10. Submit application for new Apple ID
    11. Wait for verification email
    12. When email arrive, verify your account
    13. Start downloading your free apps

  • How do I sign a document and send it

    How do I sign a document and send it?@

    Hi mstee,
    I took a look at your account and see that you don't have any subscriptions. You would need either Acrobat or Adobe Fill & Sign (part of Acrobat.com). Here's some getting started information for Fill & Sign: Tutorial: Introduction to Adobe Fill & Sign
    Best,
    Sara

  • Ive need to open a document and it states that i need the latest version. Im running the 11.0.09 on windows 7 help!

    ive need to open a document and it states that i need the latest version. Im running the 11.0.09 on windows 7 help!
    ive followed the link several times and updated to the latest version, what am i doing wrong?

    Hi stuartosachuk,
    Please type chrome://plugins in the Chrome address bar. Then, disable 'Chrome PDF Viewer' and enable 'Adobe Reader' plug-in as shown in the screenshot below:
    Now, close the Plug-ins tab and restart Chrome.
    Regards,
    Anubha

  • To convert Smart Form output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Smart Forms output to PDF format and send it via email to customer. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Refer the links -
    how to convert smartform into pdf and send through mail
    Smartform as PDF attachment to a mail.
    smartform pdf and mail
    smartform to pdf to mail
    Regrads,
    Amit
    Reward all helpful replies.

  • How can I remove a page from a PDF document and save it as a new PDF document?

    How can I remove a page from a PDF document and save it as a new PDF document?

    Tools - Pages - Extract and tick the option to delete the extracted page from the original file.

Maybe you are looking for

  • Windows 2008 R2 Sp1 Blue Screen Error and solution

    Hi Guys its been like the 5th time i keep on getting this error on my exchange server which is hosted under Windows 2008 R2 Sp 1 this is the error below please help Problem signature:   Problem Event Name:    BlueScreen   OS Version:    6.1.7601.2.1.

  • Error opening PDF on photoshop error code 0X20030055

    Hi you all, I desperaly need help. I've created a pdf file (with illustrator cs3). when I try to open it on photoshop CS3 I receive this message: "error opening the portable document file (PDF) document. error code = 0X20030055" I did not find anythi

  • Html to pdf generation

    Hi friends I want to convert html doc to pdf using itext can anyone help me Any help appreciated Thanks in advance

  • Network Drive Unavailable

    I created a project with some of the media on a network drive. The network drive is no longer available, as I moved my drobo from a buggy droboshare to an AEX. Anyway, when I open iMovie, it complains that the network drive is gone and gives me no op

  • How to distinguish backing bean method invoker like struts *.do

    I want to monitor request and response time of application via access log of httpd . But the urls are the same in one backing bean. how should i do about this?