How do I send entire pdf form via email from web browser

How do you send a pdf completed form on your web browser via email to email address?

Hello Wayne, see no offense in this message
There is a faster scheme.
Copy the range of cells to send (it may be an entire table)
Enter the application entitled Preview.
File > Create a new doc from the clipboard
File > Send the selected PDF document (I'm not sure of the exact wording).
It's the highlighted one.
Bingo, it will create a mail with the PDF embedded.
Yvan KOENIG (VALLAURIS, France) jeudi 3 novembre 2011 22:32:21
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community

Similar Messages

  • Sending a pdf form through email

    Hi,
    I want to send a pdf form through mail for this i have to write code(given below) but my problem is that
    it send a xml file to vendor. i want to send its pdf form. how it is possible.........................
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer                = fp_outputparams
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
      TABLES
        binary_tab            = lt_att_content_hex.
    CLASS cl_bcs DEFINITION LOAD.
    DATA:
    lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    *--Create persistent send request
    lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject*****************************************************************************************
    DATA:
    lt_message_body TYPE bcsy_text VALUE IS INITIAL,
    lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    APPEND 'Dear Vendor,' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Please fill the attached form and send it back to us.' TO lt_message_body.
    APPEND ' ' TO lt_message_body.
    APPEND 'Thank You,' TO lt_message_body.
    lo_document = cl_document_bcs=>create_document(
                                   i_type = 'RAW'
                                   i_text = lt_message_body
                                   i_subject = 'Vendor Payment Form' ).
    DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
    TRY.
        lo_document->add_attachment(
                     EXPORTING
                     i_attachment_type = 'PDF'
                     i_attachment_subject = 'A Test Adobe Form').
                   i_attachment_size =
                   i_attachment_language = space
                   i_att_content_text =
                   i_attachment_header =
                   i_att_content_hex =  lt_att_content_hex ).
      CATCH cx_document_bcs INTO lx_document_bcs.
    ENDTRY.
    Add attachment
    Pass the document to send request
    lo_send_request->set_document( lo_document ).
    Create sender
    DATA:
    lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
    l_send TYPE adr6-smtp_addr VALUE  '.............'.
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set sender
    lo_send_request->set_sender(
                            EXPORTING
                                i_sender = lo_sender ).
    Create recipient
    DATA:
    lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    Set recipient
    lo_send_request->add_recipient(
                              EXPORTING
                                  i_recipient = lo_recipient
                                                i_express = 'X' ).
    lo_send_request->add_recipient(
                              EXPORTING
                                  i_recipient = lo_recipient
                                                 i_express = 'X' ).
    Send email
    DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    lo_send_request->send(
                              EXPORTING
                                  i_with_error_screen = 'X'
                              RECEIVING
                                  result = lv_sent_to_all ).
    COMMIT WORK.
    MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.
    Thanks in advance
    Shri

    Try below logic.
      DATA : it_objpack   TYPE STANDARD TABLE OF sopcklsti1 ,
             it_objtxt    TYPE STANDARD TABLE OF solisti1 ,
             it_objbin    TYPE STANDARD TABLE OF solisti1 ,
             it_reclist   TYPE STANDARD TABLE OF somlreci1 ,
             wa_doc_chng  TYPE sodocchgi1,
             wa_objhead   TYPE soli_tab,
             l_attachment TYPE i,
             l_testo      TYPE i.
      DATA:   wa_objpack TYPE sopcklsti1,
              wa_objtxt TYPE solisti1 ,
              wa_objbin TYPE  solisti1 ,
              wa_reclist TYPE  somlreci1 .
      CLEAR:  wa_reclist,
              wa_objhead,
              wa_objtxt,  it_objtxt[],
              wa_objbin,  it_objbin[],
              wa_objpack, it_objpack[].
    Object with PDF.
      CLEAR wa_objbin.
      REFRESH it_objbin.
      it_objbin[] = gt_mess_att[].
      DESCRIBE TABLE it_objbin LINES l_attachment.
    Object with main text of the mail.
      LOOP AT it_message INTO wa_message.
        wa_objtxt = wa_message. APPEND wa_objtxt TO it_objtxt.
      ENDLOOP.
      DESCRIBE TABLE it_objtxt LINES l_testo.
    Document information.
      wa_doc_chng-obj_name = 'test'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      CONCATENATE 'Amex Settlement' ' '
                    INTO wa_doc_chng-obj_descr .
    doc_chng-sensitivty = 'F'.
      wa_doc_chng-sensitivty = 'P'.
      wa_doc_chng-obj_prio = '1'.
      wa_doc_chng-doc_size = l_testo * 255.
      CLEAR wa_objpack-transf_bin.
      wa_objpack-head_start = 1.
      wa_objpack-head_num   = 0.
      wa_objpack-body_start = 1.
      wa_objpack-body_num   = l_testo.
      wa_objpack-doc_type   = 'RAW'.
      APPEND wa_objpack TO it_objpack.
      CLEAR wa_reclist.
      wa_reclist-copy = 'X'.
      IF wa_email IS NOT INITIAL.
        wa_reclist-receiver = wa_email-value1.
        wa_reclist-express  = 'X'.
        wa_reclist-rec_type = 'U'.
        wa_reclist-notif_del = 'X'.
        wa_reclist-notif_ndel = 'X'.
        APPEND wa_reclist TO it_reclist.
       ENDLOOP.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            document_data              = wa_doc_chng
            put_in_outbox              = 'X'
            commit_work                = 'X'
          TABLES
            packing_list               = it_objpack
            object_header              = wa_objhead
            contents_bin               = it_objbin
            contents_txt               = it_objtxt
            receivers                  = it_reclist
          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.
        IF sy-subrc <> 0.
          WRITE 'Cannot send email'.
        ENDIF.
      ENDIF.

  • Elementary Problem With Submitting A PDF Form Via Email?

    Hello all!
    I'm brand new to creating forms with Adobe.  I have Acrobat X Pro.  I have created a form with multiple fields to fill in and placed a button at the top of the form.  Under button properties I selected the submit a form option under the actions tab and chose to email the entire pdf file.  Where it says enter a URL for this link I put mailto: and my email address.
    When I click on the submit button I choose the desktop application option as I use Outlook exchange. (that could be the problem?)  I click on the ok button and immediately get a pop up box that says "Either there is no default mail client or the current mail client cannot fulfill the messaging request.  Please run Microsoft Outlook and set it as the default client.
    I have no idea how to fix this issue or if I'm creating the submit form improperly.  My goal is to get an exact copy of the completed Adobe form emailed to the specified email address.  Any help would be much appreciated!
    Mike

    To answer some of your specific questions:
    2, 3. The submit form button needs to be on the PDF. You can either configure a Submit Form action or use the submitForm JavaScript method.
    4, 6: No to both questions. You can create the form in Acrobat. Such forms are knows as Acroforms, as opposed to XFA forms that are created with LiveCycle Designer. Acroforms have wider support.
    5: Yes, that's the method that's used when submitting to a web server. You have your choice of formats. The "HTML Form" option causes the form data to be submitted in the same format as an HTML form, so the same type of server-side code can be used to process the data. As Dave's tutorial shows, the server should return an FDF as the response, however, as opposed to HTML content.
    It's a mistake to try to embed the PDF in a web page. So much depends on the user's browser, PDF viewer, and how both are configured. PDF forms can be submitted directly from Adobe Reader/Acrobat, so it's not necessary for them to be viewed in a browser. Note that Adobe Reader for iOS/Android don't yet support submitting to a web server (apart from FormsCentral), but that's is supposedly being worked on.
    Since you mentioned digital signatures, be aware that for Reader users to be able to sign, the document has to be Reader-enabled, either with Acrobat Pro or LiveCycle Reader Extensions (which is not the same as LiveCycle Designer). Digital signatures in PDF forms are not yet supported on mobile devices. Also, you will want to submit the entire PDF, as opposed to just the form data, when submitting a digitally signed form.

  • How do I send a pdf file by email

    How do I send a PDF file as an attachment to an email?

    Just like any other file...
    On Sat, Mar 7, 2015 at 12:16 AM, larrys19338374 <[email protected]>

  • Submit the PDF over and over from web browser

    Hi,
    I have created a submit button on a form and submititng to local server. My requirement is user should able to hit the Submit button over and over untill they close thye browser. Every time they hit thye submit button, I get updated data PDF.
         I could able to do this only one time. It means, when I load the form first time from web broweser the "this.URL" variable in jvascript gives as http://localhost/xxx/yyy. After I Submit the button then this.URL gives as c://users/my user name/temp/xxx.pdf which can't submit to the URL. I am using a servlet to capture the pdf and sneding the entire pdf back to the server because user should able to see their PDF on browser. If I do not send the pdf back then it gives blank page.
    The question is
    1. Can I stay in the same PDF after I hit the Submit button.
    2. If issue #1 is not possible then how can I submit the PDF over and over without loosing it from broweser.
    Thanks,
    -Thiru

    I tried sending the server response with 204 response code. That did not work. After I click the button in the form, the screen goes blank. Here I attached before and after results of this.
    could you post sample FDF? Another questions is that my PDF form has signature signed with Topaz signpad. I believe, FDF handles these field values also.
    Before:
    After:

  • How can I send a PDF file via my yahoo or google email programs?

    I just downloaded some photos from a friend's camera, & I want to send copies via email. I created a PDF file, but can't figure out how to email the file out (it only offers to send via Windows Mail-which I don't have). Do I need to create a different kind of file for the pix, or do I just need to send one at a time?
    == This happened ==
    Not sure how often
    == I tried to attach the PDF file to an email to send via yahoo

    Use the free Adobe Reader for iPhone -> https://itunes.apple.com/us/app/adobe-reader/id469337564?mt=8.
    Clinton

  • How can I send a PDF form for someone to complete, then lock it for no one to see except us when they send it back?

    We would like to create a PDF form to collect sensitive information (phone numbers, payment information) from our customers. Ideally, we would like for them to be able to fill it out, then hit a button to encrypt it when completed, and send it back to us for us to view. Kind of like sending out an open, self-locking box for them to fill, and once they close it no one can see the contents without the key (which we would have).
    I’m using Adobe Acrobat Pro XI (11.0.07) on Mac OSX (10.9.4).
    Is this possible? If so, how do I do this? Thank you in advance!

    You can use certificate encryption. Each of your customers needs to have a digital certificate with a private key and send you the public key version of his/her certificate. You also need to have a digital certificate with private key and to send each customer the public version of your certificate.  Then after each customer fills in your form, she encrypts it with certificate encryption entering as recipients herself and you before sending this PDF to you. This way only this particular customer and you can open and see PDF filled with sensitive information.
    This workflow presumes that you and each of your customers can procure a digital certificate (Digital ID in Acrobat-speak).

  • How Can I Disallow Sending a PDF Document via Email?

    http://www.tek-tips.com/viewthread.cfm?qid=1528701&page=1
    nha khoa.com/showthread.php?t=145
    I'm using Adobe Acrobat 8 Standard.
    I've gotten the test document setup in such a way that at least the typical person could not print it, send it as an email attachment, nor save the file within Adobe Reader 8.
    However, if that same person were to open the file with Foxit PDF reader, they could email it as an attachment (though they can't do the others).
    What I want to know is if there is a way to specifically disallow a pdf file from being sent as an attachment from within the pdf application? For Adobe, I just had to check the box next to "hide menu bar" and "hide tool bars", but leave "hide window controls" unchecked.
    But of course, Foxit reader, and I'd imagine others, don't recognize the code for the display defaults. So for those, I'd need something else. I did not see an option under security for disabling email. Is there any way to do so?
    The PDF files will be shared via a SharePoint site. So if there is some other better way of locking them down via SharePoint, that'd be fine as well.
    I'll post more detail if need be. Thanks for any suggestions.
    "If to err is human, then I must be some kind of human!" -Me

    There's no way to prevent someone attaching a PDF to an email (or any other file-level operation on it) - to view a PDF it MUST be downloaded to the client's computer, and once there it's a regular file just like any other. There is no "streaming" concept within PDF.
    You can secure the PDF so only certain people can open it (for example using certificate policies or even DRM) but they can still move the file about - it's only at the stage of opening it where the security control starts.
    And you're correct - non-DRM 'permissions' security on a PDF is largely just smoke and mirrors for anyone who can open the file, as removing your print/edit/display preferences is a 10-second job. The only real case of a PDF being "uncrackable" is if the document has a very long OPEN password and the user doesn't know what it is. If they can get as far as seeing the pages on their screen, they can do pretty much anything with it.

  • Button to send filled out form as completed pdf form via email

    I have created a form that when filled out, should send the form by email to the recipient as a completed pdf form. It works with Adobe Acrobat but not Reader.
    Any Ideas?
    form can be found at:  http://www.lcyc.ca/images/stories/macman2012/macmanentry.pdf

    Check out:
    http://www.nk-inc.com/macmanentry.pdf
    Use your real name, and e-mail address in the PDF form fields, and recieve a customized email copy and response.
    The script will parse and merge the XDP submission, so there's no need to Reader Enable your forms.
    PDFEmail.net works in ASP.net web servers.
    Note: Do not submit sensitive information, this is just a demo. I may get a BCC of the form.
    For more info:
    http://www.pdfemail.net
    Feel free to contact me on my website:
    http://www.nk-inc.com/support/sales/

  • How can I get a PDF form to email to me when it is hosted online?

    Ok, I'm not a coding expert, but I understand CSS and html alright.
    I am trying to create a PDF form for my website: www.pantherapressdesign.com.
    I have already created the forms (they are under the purchase section of the site) and when they are saved to the harddrive they work just fine. HOWEVER, when you fill them out and they open in the browser they will not submit to me (aka. I don't get them by email, even though the submit button correctly re-directs you to the thanks page).
    In the fuctions of the submit button I have it set to mailto:[email protected]
    When the form is saved on the hard drive (I open it from the desktop) and click submit it brings up a dialog box and asks me how I want to send it. I then choose desktop mail service, it opens it in an email and sends it.
    I want customers to be able to click the form from the website - fill it out right there in the browser - and then be able to submit it to me that way.
    I am assuming I must route this through the php or something, but am not sure how to do that. I have the php working for the contact from on the website, but I don't know php so I used pre-written code to do that. Is there some simple code I can drop into my php that will handle these forms? Help, please! Thanks

    I looked at the Stationary form, and there are a number of things you need to change. It is currently set up to submit as "HTML", as opposed to FDF, XFDF, or the entire PDF. This is fine if you're submitting the form to a web server, which can read the field data, place it in an email, and send it off. This is actually much preferred to relying on the user's machine being set up properly to send an email. Many are not and not receiving order that someone thought was submitted will be bad for your business. Consider removing the existing forms today and you can update when they are working.
    Your web hosting service likely has a PHP script that is designed to work with HTML forms and send an email with the form data included. This can work with a PDF form if the form is correctly set up. To do that, you will need to know how the script works and what it is expecting in the way of form data when it processes a submission. The PHP script should also be modified to send an appropriate response back to the user, which can be a simple redirect. The way you have it now with a link to the redirect page is wrong. It goes there whether the form is complete or not and whether the email actually got sent. This can be avoided by having the web server take care of this.
    If you don't have the expertise to modify the form to suit the PHP script and PHP script to suit the workflow, you'll need to find someone who does.

  • How can I send a podcast video via email?

    Hello techies,
    How can I send a National Geographic podcast via email to a friend?
    I've tried importing and exporting without much success.

    Hello Chris Miller,
    Of course I did. I certainly would not have suggested doing something I haven't tried to do myself. Would You? I wouldn't unless we are experimenting with something, but this is not the case here.
    I also mentioned to lexlizandtay to watch the filesize.
    Many ISP's have a 10 MB limit on sending or receiving emails.
    I also said in my above post "Works for Me"......
    I have a 3.8 MB Podcast that was downloaded straight from Apple. I can send this without any problems the way I mentioned above.
    I also have other podcasts that I made myself using GarageBand or Quicktime that work just fine.
    Give it a try.

  • How can recipients submit a distributed form via email to any email address they want?

    First, a little background to describe our situation:
    I have a standard Acrobat form here that I need about 20 of my salespeople to use to send to their new prospective customers,  have the customers fill it out, and return the completed form to their respective salesperson.
    I don't want to allow my salespeople or their customers to be able to save local copies of the form because it will include personal information about the customer. If customers were to save their completed forms and email them to our salespeople, I worry that the salespeople will accidentally send out one of those completed forms to a new customer thinking that it is a clean/unfilled version of the form (and not realizing that it includes sensitive information about another customer!)
    Thus, I need a way for our customers to fill and return the forms without being able to save them locally as their own versions and then sending those new versions to our salespeople.
    I believe that means that I should use the "distributed forms" method and ask the customers to "submit" the forms directly rather than save/email them on their own.
    I'd like to have a single form up on our website, and our salespeople will just send out the link to that form so that customers can fill out their data and submit it. If our salespeople get into the habit of just sending out the link, and they get an email with the completed form after a customer completes it, then they'll never email around actual PDF copies of the form, so they'll avoid the risk of accidentally sending out a customer's completed form that has all their personal info on it.
    Here's the problem though:
    Using the "distributed form" method, whenever a form is submitted by a prospective customer, it seems that it can only be submitted/sent to the email address on the Adobe account that originally created the form (which is me), but I need the completed form to be sent directly to the salesperson who covers that customer (not me).
    So, is there some way to get around this issue?
    Can I create a form field that allows the customer to type in the salesperson's email address so that the completed PDF of the form is sent to that salesperson when they submit it (rather than all of them being sent to me)?This would be ideal because it would still be a distributed form that allows people to submit their forms directly to their salespersons without having to save local versions of the form w/ all their personal info and then emailing to the salesperson.
    If this can't work, is there some way to make sure that when a customer fills out a form that they are required to save it as a new version under a new file name (like "NormalFileName_CustomerLastName")?If the file name is always different than the original, clean copy of the form, then it would make it less likely that my salespeople would send out the wrong version.
    I know this issue must come up with people all the time! Any help would be greatly appreciated!

    You would have to first change the email address that Acrobat uses (Edit > Preferences > Identity > Email Address) and then redistribute the form in Acrobat and send it to your users.

  • Sending Offline Interactive Form Via Email

    Hi,
    I am running NW 2004s SPS09 and trying to configure GP to use offline adobe interactive forms.  As of now, I am able to create a callable object from an Adobe template, prefill fields from other background execution/web service callable objects, and launch a process when the form is submitted via email.  I am having trouble routing the form to the next processor through email.  I created an interactive form callable object, checked 'Enable Use In Guided Procedures' and selected 'Create Offline Interactive Form And Send By E-Mail'.  My first thought was that there was some delay in the sending of emails, but callable objects in other processes that send plain text notifications work fine.  The process does not enter an erroneous state and waits at that action.  Looking at the GP monitor under NW administration, the correct processor is set for the action, but the task does not appear in the user's UWL or GP runtime center (I figure this is because the task is meant to be completed offline).  Any suggestions would be much appreciated.  Thanks!
    ~Greg

    Turned out the 'switchToNewMailCommunication' property for the GP service was set to true when it should have been false.
    ~Greg

  • Submit PDF form via email = Operation is not permited!

    Hi there,
    I just downloaded a trial version of Acrobat 9.0 to see if we can make a bunch of our forms more user friendly and possibly interacive.
    I have created a form, and now I'd like to enable the user to submit the entire form by email to one of our email accounts by clicking a Submit button.
    I followed the required steps religously and defined the "Submit a form" action, triggered by "Mouse Up" and included  the required mailto:[email protected] link.
    However, when I open the form in either Acrobat Pro 9 or Reader 9, the text on the button is not there and when I click on the button it either pulls up an email that looks the way it's supposed to, but the "email was not sent". If I try the same thing on my MAC, clicking on the button generates "Operation not permitted" message.
    Where did I go wrong?
    Any pointers would be greatly appreciated as this feature or ability is pretty much crucial to our decision to purchase the application.
    Many thanks.

    There are a few things to be careful about, particularly if others are to read your form on a variety of systems.
    1. Don't use spaces in the file name. A lot of browsers will choke on spaces, though most are starting to accept this non-standard habit resulting from Windows habits.
    2. Don't put a space between mailto: and your email. It will send a space in from of your e-mail address that may cause a problem with an e-mail client.
    3. Your submit button was not labelled, with an icon as you had it set or simply text "Submit."
    I modified the form to come to me and filled it out. The data was sent to me and I asked to open it, it could not find the file but allowed me to select the form file and it opened up just fine. You can also open the form in Acrobat and use the import data option. It sounds like this last little bit was the hangup for you. In the past I have been able to select the FDF file and it would open right up. I am not sure what is necessary for it to find the form - standard placement or what I am not sure.

  • Sending attached pdf format via email

    Hi,
    i got one requirement. i have one program. When i execute the program it has to send the
    Employee1, Employee2,employee3 data to Manager1 email id via email. The employee1, employee2, employee3 data should be stored in one folder and send it via email. I can send it individually like employee1 data manager1,again employee2 data to manager1 and again employee3 data to manager1.
    But what i want is i have to store all these three pdf data  in one folder and send at one time.
    similarly i have manager2,manager3...under managers some employess are there?
    is it possible? if yes, could you please help me in this regard? Thanks in advance.

    HI,
    Please find below sample code..it may help you..but you need to do bit modification
    DATA : LS_DOCDATA LIKE SODOCCHGI1,
             LT_DOCDATA TYPE STANDARD TABLE OF SODOCCHGI1,        " Table for subject
             LS_CONTENTS_MSG LIKE SOLISTI1,
             LT_CONTENTS_MSG TYPE STANDARD TABLE OF SOLISTI1,     " table for attachement
             LS_PACKING_LIST LIKE SOPCKLSTI1,
             LT_PACKING_LIST TYPE STANDARD TABLE OF SOPCKLSTI1,   " Table for Document type and length
             LS_OBJECT_HEADER LIKE SOLISTI1,
             LT_OBJECT_HEADER TYPE STANDARD TABLE OF SOLISTI1,     " Table for Header
             LS_CONTENTS_TXT LIKE SOLISTI1,
             LT_CONTENTS_TXT TYPE STANDARD TABLE OF SOLISTI1,      " Table for mail contents
             LS_RECEIVERS LIKE SOMLRECI1,
             LT_RECEIVERS TYPE STANDARD TABLE OF SOMLRECI1,        " Table for receiver,
    Subject line
      LS_DOCDATA-OBJ_LANGU = sy-langu.
      LS_DOCDATA-OBJ_NAME = text-002.
      LS_DOCDATA-OBJ_DESCR = 'bunu'.
      LS_CONTENTS_MSG-LINE = 'BUNOO' .
      APPEND LS_CONTENTS_MSG TO LT_CONTENTS_MSG.
    LS_CONTENTS_TXT-LINE = text-009.
      APPEND LS_CONTENTS_TXT TO LT_CONTENTS_TXT.
      clear LS_CONTENTS_TXT.
    BREAK-POINT.
    Content structure
      LS_PACKING_LIST-TRANSF_BIN = space.
      LS_PACKING_LIST-HEAD_START = 1.
      LS_PACKING_LIST-HEAD_NUM = 0.
      LS_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE LT_CONTENTS_TXT LINES LS_PACKING_LIST-BODY_NUM .
      LS_PACKING_LIST-DOC_TYPE = 'RAW'.
      append LS_PACKING_LIST to Lt_PACKING_LIST.
    Create attachment notification
      LS_PACKING_LIST-TRANSF_BIN = 'X'.
      LS_PACKING_LIST-HEAD_START = 1.
      LS_PACKING_LIST-HEAD_NUM   = 1.
      LS_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE LT_CONTENTS_MSG LINES LS_PACKING_LIST-BODY_NUM.
      LS_PACKING_LIST-DOC_TYPE   =  'PDF'.
      LS_PACKING_LIST-OBJ_DESCR  =  'PDF ATTACHEMENT'.
      LS_PACKING_LIST-OBJ_NAME   =  'DEMO'.
      LS_PACKING_LIST-DOC_SIZE   =  LS_PACKING_LIST-BODY_NUM * 255.
      APPEND LS_PACKING_LIST TO Lt_PACKING_LIST.
      LS_RECEIVERS-RECEIVER = 'WRITE THE MAIL ID HERE'.
      LS_RECEIVERS-REC_TYPE = 'U'.
      APPEND LS_RECEIVERS TO LT_RECEIVERS.
      LS_RECEIVERS-RECEIVER = 'WRITE THE MAIL ID HERE' TO SEND IN CC FIELD'  .
      LS_RECEIVERS-REC_TYPE = 'U'.
      LS_RECEIVERS-COPY = 'X'.
      APPEND LS_RECEIVERS TO LT_RECEIVERS.
    Send mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA                    = LS_DOCDATA
         PUT_IN_OUTBOX                    = 'X'
         COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
        TABLES
          PACKING_LIST                     = Lt_PACKING_LIST
      OBJECT_HEADER                    =
       CONTENTS_BIN                     = LT_CONTENTS_MSG
         CONTENTS_TXT                     = LT_CONTENTS_TXT
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
          RECEIVERS                        = LT_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
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards
    Ansumesh

Maybe you are looking for