How to send a local PDF file(on presentation Serv) as attachment in a mail.

Hi,
This is urgent requirement..
Please help.. Some scanned document is saved as PDF  file locally (on Presentation Server) that i want to send as attachment in mail.
I tried with SO_NEW_DOCUMENT_ATT_SEND_API1 Function Module but
It is just sending the file as attachement, but when i open that file into mail..it is not opening. Is there anythign so that i can just give filepath and that file can go to mail.
I am selecting the filepath in selection screen but in FM SO_NEW_DOCUMENT_ATT_SEND_API1  there is no option of giving the file path. So it is not taking right file.
Is there any other function module ?

http://www.sap-img.com/abap/sending-email-with-attachment.htm

Similar Messages

  • How can open a html, pdf files from the server (c:\foldername\filename)

    Hi all,
    I am developing an application. in this app i have to implement RMI.
    My problem is this, How can a client open a files from the server.
    all the html, pdf files are stored in the server's directory like C:\audit\filename.
    There is a folder on the server's C directory which contains all the html , pdf files.
    please tell me how can a client open a file from the server using RMI.
    Please send me the solution as soon as possible.
    Thanks & Regards
    Bhavishya

    That's doing it the hard way. Why not use HTTP or FTP?

  • Urgent: loading a pdf file  to presentation server at the end of the day

    hi
    I got a requirement like smartform will be converted into pdf file and it will loaded into application server, at the End of the day all the pdf files which are generated on that day will be loaded to in file at presentation server ,
    so please help me out regarding
    Thanks in advance
    regards
    krishna

    Hi Chris,
    this problems are in fact new to me, but I'm just starting on a new workplace where they have these issues since forever.
    I'm hoping that new point of view may find a solution to it ;-)
    I'll try to watch the traffic - it could be related to the particular network we have. Will ask and post some more info tomorrow.
    Thank you!
    /best
    /j

  • How do you add a pdf file in iBooks as an attachment or file to an email?

    I have some PDF files in my iBooks app and I'm trying to add them to an email or a chat as a file. Is there a way to do that? I have the iPad Air. Thx

    Launch iBooks. Open the PDF that you want to email. Tap the action icon in the upper left corner. Tap Email. The Mail app will launch with the PDF as an attachment,

  • Error while downloading the PDF file on presentation server

    Hi all,
    i have converted OTF file into PDF one and then downloading it to the presentation server . But it gives the error as follows
    'Access to file denied'    . Can anyone tell me what may be the issue ? Below is my code
    DATA: i_lines TYPE tline OCCURS 0 WITH HEADER LINE.
    DATA: ws_bin_size TYPE i.
    DATA: t_otf  TYPE TABLE OF itcoo,
                ws_filename TYPE string.
      t_otf[] = wa_job_info-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format        = 'PDF'
          max_linewidth = 132
        IMPORTING
          bin_filesize  = ws_bin_size
        TABLES
          otf           = t_otf
          lines         = i_lines.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          bin_filesize = ws_bin_size
          filename     = 'C:\ABC.PDF'
          filetype     = 'BIN'
        TABLES
          data_tab     = i_lines.

    Hi Sayeed,
          You may not having the permissions to create files in 'C' folder. Change the path and try again.

  • Convertion pdf file from App. server to Pre.server

    Hi,
      I have file pdf file in application server. i want to convert this PDF file into presention server.
    plese send simple progrme.
    Thank&
    Regards,
    Madhu

    Also try
    FYI
    REPORT ztrans01 .
    *Parameters(files)
    PARAMETERS: ux_dir TYPE epsf-epsdirnam OBLIGATORY
                DEFAULT '/usr/sap/trans',
                filename TYPE epsf-epsfilnam OBLIGATORY DEFAULT 'test1',
                pc_dir TYPE rlgrap-filename OBLIGATORY
                DEFAULT 'c:\tmp'.
    *DATA(Strings)
    DATA itab TYPE TABLE OF string.
    DATA wa TYPE string.
    DATA file TYPE string.
    DATA size TYPE epsf-epsfilsiz.
    DATA ux_file TYPE epsf-epspath.
    DATA mode TYPE epsf-epstxtmod.
    *start-of-selection
    START-OF-SELECTION.
    *1) transfer
      CONCATENATE ux_dir '/' filename INTO ux_file.
      OPEN DATASET ux_file FOR INPUT IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE i502(me) WITH ux_file.
      ENDIF.
      DO.
        READ DATASET ux_file INTO wa.
        IF sy-subrc <> 0. EXIT . ENDIF.
        APPEND wa TO itab.
      ENDDO.
      CLOSE DATASET ux_file.
    *2)download
      CONCATENATE  pc_dir  '\' filename  INTO file.
      CALL FUNCTION 'GUI_DOWNLOAD'
           EXPORTING
                filename = file
           TABLES
                data_tab = itab.
    OR
    *&      Form  f1104_download_to_lofile
          Download to data from internal table to Logical File/application server
    FORM f1104_download_to_lofile.
    Open the file in application server
      OPEN DATASET v_filepht FOR OUTPUT IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE s185 WITH v_filepht.          
        LEAVE LIST-PROCESSING.
      ENDIF.
      LOOP AT i_logfile INTO w_logfile.
        TRANSFER w_logfile TO v_filepht.
        CLEAR w_logfile.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE:/ text-055, v_filepht, text-056.
      ELSE.
        WRITE:/ text-057, v_filepht.     
      ENDIF.
    Closing the file
      CLOSE DATASET v_filepht.
    and also check link
    http://sap.ittoolbox.com/code/archives.asp?d=2285&a=s
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • How to mail a local PDF file

    Hi,
    I have local PDF file saved on desktop.
    How to send this file as attacehment in mail.

    Hi,
    see the folowing programm :
    DATA : gf_agb_file TYPE string.
    TYPES: BEGIN OF data_type,
            line(255) TYPE x,
          END OF data_type.
    DATA :  gt_upload TYPE TABLE OF data_type,
            gf_file_upload_lengh TYPE i,      
            agb_content TYPE solix_tab.
    DATA gs_agb_content TYPE solix.
    DATA gs_upload TYPE data_type.
    FIELD-SYMBOLS: <data_x> TYPE x,
                                 <text> TYPE x.
    Load   PDF
    gf_agb_file = '  here access path for PDF'. 
    CLEAR gt_upload[].
    CALL METHOD cl_gui_frontend_services=>gui_upload
       EXPORTING
         filename                = gf_agb_file
         filetype                = 'BIN'
       has_field_separator     = SPACE
       header_length           = 0
       read_by_line            = 'X'
       dat_mode                = SPACE
       depage                = SPACE
       ignore_cerr             = ABAP_TRUE
       replacement             = '#'
       virus_scan_profile      = virus_scan_profile
       IMPORTING
        filelength              = gf_file_upload_lengh
       CHANGING
         data_tab                = gt_upload[]
       EXCEPTIONS
         file_open_error         = 1
         file_read_error         = 2
         no_batch                = 3
         gui_refuse_filetransfer = 4
         invalid_type            = 5
         no_authority            = 6
         unknown_error           = 7
         bad_data_format         = 8
         header_not_allowed      = 9
         separator_not_allowed   = 10
         header_too_long         = 11
         unknown_dp_error        = 12
         access_denied           = 13
         dp_out_of_memory        = 14
         disk_full               = 15
         dp_timeout              = 16
           NOT_SUPPORTED_BY_GUI    = 17
           ERROR_NO_GUI            = 18
         OTHERS                  = 19.
    IF sy-subrc <> 0.
      MESSAGE e057(zsd_eur) WITH 'Fehler bei Load AGB-PDF'.
      EXIT.
    ENDIF.
    LOOP AT gt_upload INTO gs_upload.                 =====>  convert from typ x to typ raw
      ASSIGN gs_upload-line TO <data_x> .
      ASSIGN gs_agb_content TO <text> casting .
      <text> = <data_x>.
      APPEND gs_agb_content TO agb_content.
    ENDLOOP.
    TRY.
      ---------- create persistent send request ----------------------
        send_request = cl_bcs=>create_persistent( ).
        write gf_file_upload_lengh to l_pdf_len.
        document = cl_document_bcs=>create_document(
              i_type    = 'PDF'
              i_hex     = agb_content
              i_length  = l_pdf_len
              i_subject = 'test created by BCS_EXAMPLE_6' ).    "#EC NOTEXT
      add document to send request
        send_request->set_document( document ).
      ---------- add recipient (e-mail address) ----------------------
        recipient = cl_cam_address_bcs=>create_internet_address(
            i_address_string = ' here internet mail adress ' ).
      add recipient to send request
        send_request->add_recipient( i_recipient = recipient ).
      ---------- send document ---------------------------------------
        sent_to_all = send_request->send(
            i_with_error_screen = 'X' ).
        IF sent_to_all = 'X'.
          MESSAGE i022(so).
        ENDIF.
      ---------- explicit 'commit work' is mandatory! ----------------
        COMMIT WORK.

  • How do I combine several pdf files into one so I can send them as one file.

    how do I combine several pdf files into one so I can send them as one file

    Reader doesn't have that ability. You would need Acrobat.

  • How can I send a large pdf file (42MB) attachments by icloud ??

    How can I send a large pdf file (42MB) attachment by email in Icloud ???

    That's a bit excessive.  The website http://convert.neevia.com/pdfcompress/ can compress files up to 5 MB in size. You may want to print to PDF single smaller pages, or print the document and scan it one page at a time to PDF, and then use the PDF compress tools to shrink it further.

  • How can i reduce the pdf file size? I need to send via email, at the moment its at 10mb

    How can i reduce the pdf file size? I need to send via email, at the moment its at 10mb

    Reducing PDF file size or Optimizing PDF is the feature that is supported only by Acrobat Pro (desktop app that is not free).
    Optimizing PDFs (Acrobat Pro)
    Free Adobe Reader products (Reader XI desktop, Reader for iOS, Reader for Android, Reader Touch for Windows 8, etc) do not offer the capability.

  • I tried sending the Adobe pdf file of a poster via email and it said the file was too large to send.  How do I remedy this?

    I tried sending an Adobe pdf file of a poster via email and it wouldn't go through because it said the file was too large.  How do I remedy this?

    Lots of free file hosters out there. Mediafire.com as an example. Upload a file there, copy and paste the download link you are given into your email to the client, then delete it as soon as the client successfully downloads it. Mediafire has 10 gb storage for free accounts.
    Email is limited to 10 MB on attachments. So that's where file hosting comes in.

  • How do you encrypt a pdf file before sending?

    How do you encrypt a pdf file before sending

    Hi paleo1453,
    I'm not sure I follow your question. Are you asking how you can apply security to a PDF, or how the Acrobat.com online services encrypt files when you send them?
    Best,
    Sara

  • How can I convert a pdf file that's larger than 100MB to word

    How can I convert a pdf file that's larger than 100MB to word?
    I have just paid $20 to Adobe to get this facility but It won't work ,
    as the pdf is larger than 100MB,
    I actually believe that I have paid twice for adobe but I'll take this up with them,
    in the meantilme,
    do you have any suggestions, I really need this material in word urgently,
    many thanks
    Shanna

    If your files are this large, ExportPDF is the wrong tool for you. You need Adobe Acrobat, which runs locally and does not need to send your files to Adobe.

  • How to download a pdf file from the server from an strut application?

    Hi,
    I wan to download a pdf file from the server side to local system. Please help me how i use the down load option.

    Read up on the Struts download action [1].
    And next time, please post in the relevant forum, one of the web-tier ones [2].
    [1] http://wiki.apache.org/struts/StrutsFileDownload
    [2] http://forum.java.sun.com/category.jspa?categoryID=20
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • How can I save a PDF file sent to me in an attachment to my iPhone 5s

    How can I save a PDF file or word file sent to me as an attachment directly to my iPhone 5s so if I want to read it I don't have to dig into my ail every time?

    You will need to select the attachment and open in another app.  If you do not have any apps that support PDF, Adobe reader for iOS is free.
    For MS word files, you will need an app that supports those, like Documents to Go. 
    There is not generic file storage area in iOS, so you need to "open in" an app that supports that file type so that app can then add the file to its sandboxed local storage area.
    If you need to markup the PDF, some good apps are GoodReader, iAnnotate, PDF Expert, GoodNotes - there are numerous others as well in the App Store.

Maybe you are looking for

  • ORA-00439 error when deploying a simple dimension

    Hello, I am using Oracle Warehouse Builder 11g SE to try to implement a simple data warehouse. I have created the dimensions and cube using ROLAP, defined simple mappings and added process flow and was now trying to deploy the objects. When i try to

  • Unable to clear change records

    Hi , We are facing an issue where the there are few 261 records in COGI from previous period and a different storage location , but unable to clear inspite of changing the storage location with sufficient quantity of stocks . It is still displaying t

  • How can I disable the location service of my camera and photos in my iphone 5s?

    How can I disable the location service of my camera and photos of my iphone 5s?

  • Consignment sales

    Hello guys... Can anybody tell me the prerequisites of the consingnment sales in point by point manner. Thanks in advance regards vamshi

  • Can't Burn a .img file

    iDVD file plays fine on Mac. File is a video transferred from VHS to iMovie, then made into iDVD file, with added scrolling block comments and one picture. The burn process completes the "Processing" step, but gives a message and hangs up without bur