Attaching documents in mail on iPhone

Hi All,
I am sorry if i am starting a thread for an already answered thread but is there any OOTB functionality to attach files (zip, doc, xls and all other formats) in an email using the iPhone.
The other day i tried on my 3G but could not find any way to do so.
While my frnd using his Samsusng Galaxy S (running Android 2.2) can easily do so.
I am planning to upgrade my mobile and is an Apple fan boy but if any such feature is not present i might have to change camps.
Thanks for your replies in advance.
Regards
Piyush
MBP 13 2010
iPhone 3G

Lots of file types can be transferred to your iPhone from your desktop via iTunes or saved to your iPhone when emailed to you (or to yourself) using applications like iBooks (for pdf files) or USB Disk / File App (for pdf, Office, music, photo etc etc).
You can then email those files from USB Disk or File App - both of which are free applications from the App Store (with paid for versions available as well).
It's not always so simple to email multiple attachments in one email this way but it works without any problems..

Similar Messages

  • Problems with attached documents in Mail and Docs To Go

    Hello everybody.
    I've found a problem with attached documents in Mail. In fact, if I click on attached documents with .doc (microsoft office word 97-2004) and files in .docx Office Open .xml, the iPad doesn't open them, also if I click in "Open with Docs To Go (which should support these files' format)".
    How can I do? There's an application or another way to open these files?
    Other Informations:
    Docs To Go version: 5.2.2

    Update the patch to the Sapgui.
    Regards,
    Ignacio.

  • Attached documents cause Mail to quit

    A week ago Mail stated to quit unexpectedly every time I tried to open an email with attached documents, or to send one with attachments. I tried setting up another user and the same email account works fine for the new user. I am not certain if this is significant, but I notice that when in the new user when I go to Mail > Preferences I see the account listed and highlighted, but in my usual user doing the same thing I see no account listed- although when i hit the Edit button in that window it brings up my account details. Any ideas?

    When an application crashes (i.e. quits unexpectedly), the system writes information about the state of the application at the moment of the crash to a log file. That information is called a crash report and makes troubleshooting easier. In order to find and post the relevant part of the crash report here, proceed as follows:
    1. Open ~/Library/Logs/CrashReporter/Mail.crash.log. The whole crash log appears in a Console window (you can also open that file with any text editor). It may contain many crash reports. We only want the latest, which is located at the bottom of the file.
    2. Look for a line that begins with “Date/Time:” as close to the bottom as possible, and another that says “Thread N Crashed:”, where N is a number. Select everything from the “Date/Time:” line to the lines immediately following “Thread N Crashed:”. Copy that text and paste it in your post. Do not post the whole crash log, and do not include anything beyond the lines immediately following “Thread N Crashed:” either, just the relevant part.
    Take a look at the following thread for examples of what a crash report looks like:
    http://discussions.apple.com/thread.jspa?threadID=466701
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Any FM to attach documents to mail in CRMD_ORDER

    Hi Experts,
    When ever i create an order in CRMD_ORDER it triggers an mail through smartform(set in Action profiles).Now if i attch any document in document tab of CRMD_ORDER and create , the mail should trigger with attached document.Could anybody know how it can be achieved .
    Regards,
    Pavan.

    In Class CL_DOC_PROCESSING_CRM_ORDER there is Method CRM_ORDER_EXEC_SMART_FORM, which creates the Smartform in CRMD_ORDER.
    You may have your own Z-Version of CL_DOC_PROCESSING_CRM_ORDER with a modified Method CRM_ORDER_EXEC_SMART_FORM for your own installation requirements.

  • Attach document in mail

    Hi, it appears I can't attach a document in outlook mail. Is there a solution?

    In iOS, you can only attach photos in the mail app. You have to email the attachment from the app in which the document resides. There is an action icon of some kind in all apps with this feature....the rectangle with the arrow pointing up, or an arrow icon. Tap on the action icon and the option to email the document should appear on the popup.

  • Attach documents in Mail no longer works

    I am using Mountain Lion (OS X10.8.2).  It seems several days ago, I lost the ability to attach a document in the Mail app.  Please help

    Hmmm, what makes you thinking this?
    Anyway, if it works for me, it should work for you, too!
    Drag and drop, e.g. from Finder onto mail body?
    Clicking the attachment icon in the toolbar of the message?
    As far as configuring goes: Of course, I'm communicating with mostly Windozers, so in Mail -> Edit menu -> Attachments, I have activated both "Always Send Windows-Friendly Attachments" and "Always Insert Attachments at End of Message".
    Again, it works for me, all the time.

  • Cannot attach documents in Mail?

    I am unable to attach any documents/files to emails in Mail.  Have tried both clicking the paper clip icon and through the Attach Files function in the File menu but nothing happens other than my computer hanging for a minute.
    Sending emails without attachments no problem.
    Can you help?

    Please follow these directions to delete the Mail "sandbox" folder.
    Back up all data.
    Triple-click the line below to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Quit and relaunch Mail, and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Post your results.
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • Error while attaching document in mail

    Hi,
    I am trying to attach a file in mail, I wrote the below code:
    // Set a file as an attachment. Uses JAF FileDataSource.
    // Create and fill first part
    MimeBodyPart p1 = new MimeBodyPart();
    p1.setText("abcd");
    // Create second part
    MimeBodyPart p2 = new MimeBodyPart();
    // Put a file in the second part
    String fileName = "try.txt";
    DataSource fds = new FileDataSource(fileName);
    p2.setDataHandler(new DataHandler(fds));
    p2.setFileName(fileName);
    // Create the Multipart. Add BodyParts to it.
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(p1);
    mp.addBodyPart(p2);
    // Set Multipart as the message's content
    msg.setContent(mp);
    Transport.send(msg);
    But getting error:
    Error executing script: Sourced file: inline evaluation of: ``import com.sap.odp.api.util.; import java.util.; import javax.mail.*; import j . . . '' : Method Invocation Transport.send.
    Please suggest if I am missing something.
    Thanks,
    Saloni

    Resolved.
    Filename path was not correct.

  • I can't attach documents to mail unless I use iPhoto

    I can attach JPEGs using iPhoto, but I can't attach files to a message by using the "choose file" button when using the attach browser. When I drag items to the email it shows the green plus sign, but does not attach anything.
    This use to work just fine, the only thing that has changed since then is that I installed Microsoft Office 2004 for Mac. Any ideas? Thanks
    -Dan

    Repairing permissions did not work for me.
    Here's my Console output:
    1/20/08 7:25:05 PM Mail[186] * Exception received from DOM API: 8
    Stack Trace: (
    2511897195,
    2517352603,
    2511895953,
    2508318317,
    2508169249,
    1794136,
    1813219,
    1777237,
    2480923914,
    2478861196,
    2480212793,
    2480212469,
    2478591892,
    2478591700,
    2478591322,
    2479484099,
    2479301033,
    2479300632,
    2479300324,
    2479300324,
    2479300324,
    2479299662,
    2480892264,
    2480746725,
    2483208600,
    2479153699,
    2479153699,
    2479153699,
    2479153699,
    2479153699,
    2479153699,
    2479153699,
    2480245027,
    2481648895,
    2479153699,
    2479153699,
    2479153699,
    2479153699,
    2479153699,
    2479153699,
    2480245027,
    2482706657,
    2482892017,
    2478581986,
    2478369324,
    190105,
    2477704965,
    2477496762,
    1023678
    ))

  • How to attach documents in Iphone mail services

    Hi,
    Is there anyway to attach documents(even multiple docs at once) and send them from my iphone mail??

    hi ,
    GO to SU3 own parameters then add SD_SWU_ACTIVE and X.
    Then in VA02,VL02 (edit mode) You can attach the document to respective orders.
    If the intermediate Coupling required then 2nd method for this is
    CV01N Create the document and attach document to Document no and line NO.
    Regards,
    Sam

  • Can't send document attachments from Mail to iPhone

    ...well I can but not very well.... When using Gmail IMAP to sync everything, document attachments sent from Mac Mail to iPhone mail arrive as a bit of mess.. i.e. not as attachments but as text within the email itself, plus lots of garbled numbers and letters. Strange because if I send the same message from the iPhone back to itself or from webmail-Gmail it works fine. Its also just fine with photos and Pdf's. Help!

    No, sorry. false alarm.
    I just received a message, sent by Apple Mail 2.1.2 from OS 10.4.11, through POP, to an email-forwarding address, to my imap-gmail, and received from there (by IMAP) with Mail 2.1.2, too.
    Details of what got garbled below, just to say that sending the email not to the forwarding address but directly to [email protected] did not help either.
    the email was constructed like so:
    - some text, readable.
    - an attached PDF, space characters in name. this entire pdf was just printed in the email, meaning the postscript code and what have you.
    - some more text, that was still readable
    - an attached image that was probably pasted into the email, the name was "pastedGraphic.png". The image survived.
    - text, readable.
    - another PDF, raw contents printed into email body.
    - a zip file, spaces in name, made with the built-in archive maker of Tiger. Also here, the entire 'source code' of the zip is printed in the body copy.
    - some final bits of text. readable.
    On another computer, this email was not routed through a gmail account and was received by POP. not a single problem there. In fact, not ever.
    This is not very cool

  • Why it is not possible to attache documents or photos to mail ??

    Why it is not possible to attache documents/photos/mp3s to mails?it is very much inconvenient!!!

    Why would you send an mp3 via email in the first place?
    The iPhone allows you to attach a single picture to an email. In addition to pictures that you take with your phone's camera, you can also send images that you have synced with iTunes or saved from your iPhone's Safari browser. When you attach a picture, the Mail application allows you to optimize your picture's file size before sending it.
    Step 1
    Tap "Photos" on the Home screen and tap "Camera Roll" under "Albums."
    Step 2
    Tap the photo that you want to attach to an email and tap the "Options" icon on the bottom left corner of the screen. Select "Email Photo" and enter the recipient's email address next to "To." Type any additional information in your email's body, if necessary.
    Step 3
    Tap "Send" and choose the file quality that you want to use for the picture.
    Researching something before purchasing is always a smart step to consumerism. If you dont see the feature, than compromise and use a 3rd party app. with millions of apps available I'm sure you can google it to find something to attach documents.

  • How to add an attachment(excel,word or pdf) while replying to a mail in iphone?

    Hi,
    I have 3 of my mail accounts synced in my iphone. While i have an option of sending an image, excel, pdf or word document by attaching them in mail using docstogo, i would want to attach word documents, excels & pdfs while replying to my official or personal mails.
    Is there a way it can be done using the native mail application or should i download some other application for it.
    Regards,
    Sathyan

    Something doesnt quite sound right here, firstly an iPhone isnt a media storage device so you cant simply move files to it, you need to use an App such as Documentd to Go or cloud storage such as Drop Box or Sky drive to store the documents then you will be able to View them from your phone.
    Emailing them is another option and this works fine for all the people i know, for pdf, excel, word and txt documents and most common files but again this is view only.
    Apple have their our apps, Pages, Numbers etc which also uses the cloud to store the documents which can then be accessed from any ios device or mac etc.
    Finally as mentioned above, music and video's are managed through iTunes, using Apple products means you need to use the tools offerred by Apple to get best use of the device, thats just the way it is with Apple.

  • Sending DMS Document as Attachment thru e-mail

    Hi,
    I am attaching the DMS document in purchase order & I am sending the PO thru email to vendor.But while doing so the attached document shuld be sent as attachment But in my present config setting it is not doing so.
    Pl suggest
    Rgds

    Hi,
    With my solution you will be able to send the PO and all link document in a mail at the same time you print it.
    First Step
    Create a new message with transaction NACE , this message will use support 8 ( external program) . The print program should be a copy the same as for printing your PO but add a new form entry inside.
    Second step .
    In the print program , create the new form entry and add the code . bellow a sample code i wrote . Some object are specific so you have to create it . If you need i can give you te detail of thoses objects.
      DATA : bin_file       TYPE xstring ,
             bin_filesize   TYPE i ,
             w_objky        TYPE objky,
             my_sender      TYPE zcl_send_mail=>ty_sender,
             mail_line      TYPE LINE OF soli_tab,
             w_attsub       TYPE so_obj_des.
      DATA: l_druvo TYPE t166k-druvo,
            l_nast  TYPE nast,
            l_from_memory,
            l_doc   TYPE meein_purchase_doc_print.
      DATA : v_parvw2   TYPE nast-parvw,
             v_parnr2   TYPE nast-parnr,
             v_lifnr    TYPE konv-lifnr,
             v_adrnr    TYPE lfa1-adrnr,
             st_address TYPE addr1_sel,
             st_sadr    TYPE sadr.
    * definition des tables internes
      DATA : it_otf   TYPE STANDARD TABLE OF itcoo ,
             it_line  TYPE STANDARD TABLE OF tline ,
             it_fill  TYPE STANDARD TABLE OF drad,
             it_new   TYPE STANDARD TABLE OF drad ,
             itb_xtkomv TYPE STANDARD TABLE OF komv WITH HEADER LINE,
             itb_xekpo  TYPE STANDARD TABLE OF ekpo WITH HEADER LINE,
             it_ekpo  TYPE HASHED TABLE OF ekpo WITH UNIQUE KEY ebeln ebelp ,
             it_draw  TYPE HASHED TABLE OF draw WITH UNIQUE KEY dokar
                                                                doknr
                                                                dokvr
                                                                doktl ,
             it_drat  TYPE HASHED TABLE OF drat WITH UNIQUE KEY dokar
                                                                doknr
                                                                dokvr
                                                                doktl
                                                                langu,
             my_attachement_list TYPE zcl_send_mail=>attachement_list,
             my_recipient_list   TYPE zcl_send_mail=>recipient_list  ,
             it_hexa TYPE solix_tab ,
             it_body TYPE soli_tab.
      CONSTANTS : c_object TYPE dokob VALUE 'EKPO' .
      FIELD-SYMBOLS : <ekpo>   TYPE ekpo,
                      <drad>   TYPE drad ,
                      <draw>   TYPE draw,
                      <drat>   TYPE drat .
      DATA : my_mail TYPE REF TO zcl_send_mail . => Specific object
    ** Here write your own code like you print the PO form in order to be able to retrieve it from memory
    ** don't send it to the printer only in spool .
    * Get OTF from Memory.
      CALL FUNCTION 'READ_OTF_FROM_MEMORY'
        EXPORTING
          memory_key   = nast-objky
        TABLES
          otf          = it_otf
        EXCEPTIONS
          memory_empty = 1.
      CHECK sy-subrc EQ 0.
    * Transform OTF into PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = bin_filesize
          bin_file              = bin_file
        TABLES
          otf                   = it_otf
          lines                 = it_line
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4.
    * Transform PDF as Binary Table
      it_hexa = cl_document_bcs=>xstring_to_solix( ip_xstring = bin_file ).
    * Add PO as PDF file to the mail
      zcl_send_mail=>add_attachement_to_list(
        EXPORTING
          type                       = 'PDF'
          subject                    = 'PO'
          content_hexa               = it_hexa
        CHANGING
          attachement_list           = my_attachement_list
        EXCEPTIONS
          no_content_for_attachement = 1
          no_application_type        = 2 ).
    * Get PO Item because DIR are link to item only.
      SELECT * FROM ekpo
        APPENDING CORRESPONDING FIELDS OF TABLE it_ekpo
        WHERE ebeln = nast-objky.
    * Search for DIR .
      FREE : it_draw , it_drat .
      LOOP AT it_ekpo ASSIGNING <ekpo>.
        FREE : it_fill , it_new.
        CONCATENATE <ekpo>-ebeln <ekpo>-ebelp INTO w_objky.
        CALL FUNCTION 'CV140_SELECT_DRAD_DOCUMENTS'
          EXPORTING
            pf_key       = w_objky
            pf_object    = c_object
          TABLES
            pt_fill_drad = it_fill
            pt_new_drad  = it_new
          EXCEPTIONS
            no_document  = 1.
    * For each DIR , retrieve physical content
        LOOP AT it_fill ASSIGNING <drad>.
          IF <draw> IS ASSIGNED.
            UNASSIGN <draw>.
          ENDIF.
          READ TABLE it_draw ASSIGNING <draw>
             WITH TABLE KEY dokar = <drad>-dokar
                            doknr = <drad>-doknr
                            dokvr = <drad>-dokvr
                            doktl = <drad>-doktl.
          IF NOT <draw> IS ASSIGNED.
            SELECT * FROM draw
               APPENDING CORRESPONDING FIELDS OF TABLE it_draw
               WHERE dokar = <drad>-dokar
                 AND doknr = <drad>-doknr
                 AND dokvr = <drad>-dokvr
                 AND doktl = <drad>-doktl.
            SELECT * FROM drat
               APPENDING CORRESPONDING FIELDS OF TABLE it_drat
               WHERE dokar = <drad>-dokar
                 AND doknr = <drad>-doknr
                 AND dokvr = <drad>-dokvr
                 AND doktl = <drad>-doktl
                 AND langu = sy-langu.
            READ TABLE it_draw ASSIGNING <draw>
               WITH TABLE KEY dokar = <drad>-dokar
                              doknr = <drad>-doknr
                              dokvr = <drad>-dokvr
                              doktl = <drad>-doktl.
          ENDIF.
          CHECK <draw> IS ASSIGNED.
          READ TABLE it_drat ASSIGNING <drat>
                   WITH TABLE KEY dokar = <drad>-dokar
                                  doknr = <drad>-doknr
                                  dokvr = <drad>-dokvr
                                  doktl = <drad>-doktl
                                  langu = sy-langu.
          IF <drat> IS ASSIGNED.
            w_attsub = <drat>-dktxt.
          ELSE.
            CONCATENATE <drad>-dokar <drad>-doknr <drad>-dokvr <drad>-doktl
               INTO w_attsub SEPARATED BY '/'.
          ENDIF.
          PERFORM add_fid_to_attachement USING <draw>
                                               w_attsub
                                      CHANGING my_attachement_list.
          CHECK <drat> IS ASSIGNED.
          UNASSIGN <drat>.
        ENDLOOP.
        LOOP AT it_new ASSIGNING <drad>.
          IF <draw> IS ASSIGNED.
            UNASSIGN <draw>.
          ENDIF.
          READ TABLE it_draw ASSIGNING <draw>
             WITH TABLE KEY dokar = <drad>-dokar
                            doknr = <drad>-doknr
                            dokvr = <drad>-dokvr
                            doktl = <drad>-doktl.
          IF NOT <draw> IS ASSIGNED.
            SELECT * FROM draw
               APPENDING CORRESPONDING FIELDS OF TABLE it_draw
               WHERE dokar = <drad>-dokar
                 AND doknr = <drad>-doknr
                 AND dokvr = <drad>-dokvr
                 AND doktl = <drad>-doktl.
            SELECT * FROM drat
               APPENDING CORRESPONDING FIELDS OF TABLE it_drat
               WHERE dokar = <drad>-dokar
                 AND doknr = <drad>-doknr
                 AND dokvr = <drad>-dokvr
                 AND doktl = <drad>-doktl
                 AND langu = sy-langu.
            READ TABLE it_draw ASSIGNING <draw>
               WITH TABLE KEY dokar = <drad>-dokar
                              doknr = <drad>-doknr
                              dokvr = <drad>-dokvr
                              doktl = <drad>-doktl.
          ENDIF.
          CHECK <draw> IS ASSIGNED.
          READ TABLE it_drat ASSIGNING <drat>
                   WITH TABLE KEY dokar = <drad>-dokar
                                  doknr = <drad>-doknr
                                  dokvr = <drad>-dokvr
                                  doktl = <drad>-doktl
                                  langu = sy-langu.
          IF <drat> IS ASSIGNED.
            w_attsub = <drat>-dktxt.
          ELSE.
            CONCATENATE <drad>-dokar <drad>-doknr <drad>-dokvr <drad>-doktl
               INTO w_attsub SEPARATED BY '/'.
          ENDIF.
          PERFORM add_fid_to_attachement USING <draw>
                                               w_attsub
                                      CHANGING my_attachement_list.
          CHECK <drat> IS ASSIGNED.
          UNASSIGN <drat>.
        ENDLOOP.
      ENDLOOP.
    * Send mail to PO creator
    * Sender
    my_sender-mail = '****' . => Set the sender mail adress
    * Add Recipient
      zcl_send_mail=>add_recipient_to_list(
        EXPORTING
          uname               = sy-uname
        CHANGING
          recipient_list      = my_recipient_list
        EXCEPTIONS
          no_recipient_to_add = 1 ).
    * Mail body
      mail_line = 'PO by mail with Attachment'.
      APPEND mail_line TO it_body.
    * Create send request
      CREATE OBJECT my_mail.
    * Send Mail
      my_mail->send_mail(
          sender                      = my_sender
          mail_subject                = 'E-mail PO'
          mail_body                   = it_body
          recipient_list              = my_recipient_list
          attachement_list            = my_attachement_list ).
    Bellow the code for the routine ADD_FID_TO_ATTACHEMENT
      DATA : w_cout         TYPE dms_checkout_def,
             w_dttrg        TYPE dttrg, "Name of data carrier
             w_docfile      TYPE dms_doc_file,
             w_dappl        TYPE dappl, "Application
             w_tabix        TYPE i ,
             w_tdwa         TYPE tdwa ,
             w_phio         TYPE dms_phio,
             w_frontend TYPE dms_frontend_data.
      DATA : it_drao  TYPE STANDARD TABLE OF drao WITH HEADER LINE,
             it_kpro  TYPE dms_tbl_file .
      CONSTANTS : "c_print_option TYPE apptp VALUE '3', "Print option
                  c_hostname TYPE ntadr VALUE 'DEFAULT', "Hostname
                  c_type TYPE typdt VALUE 'PC', "Type
                  c_system TYPE char4 VALUE 'WN32'. "System
      FIELD-SYMBOLS : <kpro>   TYPE LINE OF dms_tbl_file,
                      <phio>   TYPE LINE OF dms_tbl_phio .
      CLEAR : w_tdwa .
    * Check if for DIR type KPRO is used
      CALL FUNCTION 'CV200_DB_TDWA_SELECT'
        EXPORTING
          pf_dokar  = in_draw-dokar
        IMPORTING
          psx_tdwa  = w_tdwa
        EXCEPTIONS
          not_found = 1.
      w_frontend-frontend_type = c_type. "'PC'.
      w_frontend-hostname      = c_hostname. "'DEFAULT'.
      w_frontend-winsys        = c_system.                      "'WN32'.
      w_frontend-platform      = 0.
      w_cout-comp_get          = abap_true.
      w_cout-kpro_use          = w_tdwa-kpro_use.
      w_cout-batchmode         = abap_true.
      w_cout-content_provide   = 'TBL'.
      CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET'
        EXPORTING
          pf_dokar  = in_draw-dokar
          pf_doknr  = in_draw-doknr
          pf_dokvr  = in_draw-dokvr
          pf_doktl  = in_draw-doktl
        TABLES
          ptx_data  = it_kpro
        EXCEPTIONS
          not_found = 1
          error     = 2.
      CASE w_tdwa-kpro_use.
        WHEN abap_true.
          CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET'
            EXPORTING
              pf_dokar  = in_draw-dokar
              pf_doknr  = in_draw-doknr
              pf_dokvr  = in_draw-dokvr
              pf_doktl  = in_draw-doktl
            TABLES
              ptx_data  = it_kpro
            EXCEPTIONS
              not_found = 1
              error     = 2.
          w_frontend-frontend_type = 'KP'.
          LOOP AT it_kpro ASSIGNING <kpro>.
            FREE it_drao.
            LOOP AT <kpro>-tbl_phios ASSIGNING <phio>.
              MOVE-CORRESPONDING <phio> TO w_phio.
              CALL FUNCTION 'CV120_DOC_CHECKOUT_VIEW'
                EXPORTING
                  ps_cout_def = w_cout
                  ps_doc_file = w_docfile
                  ps_draw     = in_draw
                  ps_phio     = w_phio
                  ps_frontend = w_frontend
                TABLES
                  ptx_content = it_drao
                EXCEPTIONS
                  error       = 1.
              PERFORM transform_fid_to_binary TABLES it_drao
                                           USING <kpro>-dappl
                                                 in_attsub
                                          CHANGING attachement_list .
            ENDLOOP.
          ENDLOOP.
        WHEN abap_false.
          DO 2 TIMES.
            CLEAR : w_docfile .
            FREE : it_drao.
            w_tabix = sy-index.
            w_docfile-fileno = w_tabix.
            CASE w_tabix.
              WHEN 1.
                w_dappl = in_draw-dappl.
                w_dttrg = in_draw-dttrg.
              WHEN 2.
                w_dappl = in_draw-dappl1.
                w_dttrg = in_draw-dttrg1.
            ENDCASE.
            w_docfile-dappl = w_dappl.
            w_docfile-dttrg = w_dttrg.
            CALL FUNCTION 'CV120_DOC_CHECKOUT'
              EXPORTING
                ps_cout_def      = w_cout
                ps_draw          = in_draw
                ps_doc_file      = w_docfile
              TABLES
                ptx_drao         = it_drao
              EXCEPTIONS
                error            = 1
                OTHERS           = 2.
            PERFORM transform_fid_to_binary TABLES it_drao
                                       USING w_dappl
                                             in_attsub
                                      CHANGING attachement_list .
          ENDDO.
      ENDCASE.
    Bellow the code for routine TRANSFORM_FID_TO_BINARY
      FIELD-SYMBOLS : <drao>   TYPE drao ,
                      <source> TYPE x ,
                      <dest>   TYPE x,
                      <hexa>   TYPE solix .
      DATA :   w_filelong     TYPE i ,
               w_long         TYPE i,
               w_longdes      TYPE i  .
      DATA :   it_hexa  TYPE solix_tab .
      CHECK it_drao[] IS NOT INITIAL.
    * Transform Physical document into Binary
      LOOP AT it_drao ASSIGNING <drao>.
        IF w_filelong IS INITIAL.
          w_filelong = <drao>-orln.
        ENDIF.
        ASSIGN <drao>-orblk TO <source>.
        DESCRIBE FIELD <source> LENGTH w_long IN BYTE MODE.
        CLEAR w_longdes.
        WHILE w_long GT 0.
          ASSIGN <source>+w_longdes(w_long) TO <source>.
          APPEND INITIAL LINE TO it_hexa ASSIGNING <hexa>.
          ASSIGN <hexa>-line TO <dest>.
          DESCRIBE FIELD <dest> LENGTH w_longdes IN BYTE MODE.
          MOVE <source> TO <dest>.
          w_filelong = w_filelong - w_longdes.
          w_long = w_long - w_longdes.
          CHECK w_filelong LE w_longdes.
          IF w_long NE 0.
            w_long = w_filelong.
          ENDIF.
          CHECK w_long LE 0.
          w_long = 0.
        ENDWHILE.
      ENDLOOP.
    * Add file to list of attachment
      CHECK NOT it_hexa[] IS INITIAL.
      zcl_send_mail=>add_attachement_to_list(
        EXPORTING
          type                       = w_dappl
          subject                    = in_attsub
          content_hexa               = it_hexa
        CHANGING
          attachement_list           = attachement_list
        EXCEPTIONS
          no_content_for_attachement = 1
          no_application_type        = 2 ).
    In my complete solution, an additionnal screen have been define in the header of PO to allow user managing recipient list . If you need so i can give you the code also .
    Let me know.
    Best regards

  • How to attach Documents in a Reply E-mail?

    As everyone know that We can upload or attach everything in the camera roll, We can attach other documents like .pdf , .doc etc.. with the help of some external application, but it support only attachment in the form of a new E-mail,
    But i want to attach documents for reply mail,, is there any way for it ?
    also how to attach multiple documents for a reply mail?

    After running the query, right click -> GoTo -> Documents for Navigation Status.  There you can create, edit and view documents.
    Regards,
    Kerry

Maybe you are looking for

  • Plans for new database back end?

    Are there any plans to allow the Calendar Server to use a different database other than the Berkeley DB? Jason Whitener

  • Documents downloaded cannot be opened by Microsoft Office 2013

    Hi,  I've downloaded Microsoft Office Home and Student 2013 recently. However, I cannot open downloaded files (be it excel, word, ppt etc) from the internet and a notification appears telling me to look for an app in the appstore. I am currently usin

  • Kernel Panic After Security Update Reboot

    My nearly new 24" iMac had a kernel attack after a Apple software multi-update, including a security item, ...rebooting into Darwin. I've run Disc Utility from the install disc and verified and repaired permissions, rebooted in safe mode, back to Dar

  • Need help in Applying QOS to an ISP on ASR 1002

    Hi i want to ask  if someone gave me CIR with 900Mbps internet upload & download the question is being asked is. when the congestion occurs ( when my bw is full) where does the congestion occur ?? on my router ? or ISP router ? or the internet ? or o

  • KEYBOARD LIGHTS LIQUID

    i have a mmacbook and i spilled liquid on the keyboard and only a few lights works,does applecare cover it?