PDF Attachment preview problem

Hello,
Can some one advise me why would there be a problem in viewing pdf attachment properly.The problem is when I try to open a PO attachment that is sent via SAP or preview it in SAP itself, the content seems to vanish when scrolling up and down the document.The print program has been used before for a diiferent output type and it worked good and still is working very well.Thanks.
Regards,
Pinky

There are two reasons I can think of off hand that would cause a problem.
1) Email is a method of sending ascii information through the internet.
Since attached files are not necessarily ascii, different methods of
encoding the attachment and converting it to ascii have been developed.
Both the receiving and sending email programs, must understand the
method of encoding used. If not you are out of luck.
2) If the people are trying to read their mail at work, their employer
might have a policy of either not allowing attachments. They can either
reject all mail with attachments or they can strip the attachments from
the email.
...Mike

Similar Messages

  • PDF Thumnbnail preview PROBLEM (Windows 7 x32)

    I have problems now with my adobe reader thumbnail preview.
    This started when I had unistall my Adobe Photoshop cs5 white rabbit to replace with Adobe Photoshop CS5 Extended. When I uninstalled it with Revounistaller, the thumbnail preview for my pdf files was gone. I tried to do some troubleshootings like:
    1. downloading the Adobe thumbnail 64-bit windows 7 provided by programmers but it wont work since i am a 32-bits user.
    2. uninstalling and reinstalling adobe reader x
    3. reinstalling a previous version of adobe reader
    4. uninstalling and reinstalling adobe photoshop cs5 extended
    5. downloading and installing Foxit reader; it had resolved the problem but when I reboot the PC, the problem just came back
    6.  Downloaded a program that enable thumbnail preview for images like Nikon, PSD files and PDF files
    7. Cleaning the registry with tune up 2012 and manually
    and none of these had work and restored back my pdf thumbnail preview.
    I have also noticed on my registry
    AcroExch.Document cannot be solved by my tuneup. Manually, it cannot be deleted.
    Oh, I am so desperate in looking ways on how to solve this. I hope experts of Adobe can help me solve my problem/frustration.
    By the way, I am Adobe reader is one of my very useful programs.

    Quote from: Svet on 22-October-09, 21:40:11
    Does that happen since 1st OS run? Or after some driver{s} or software installation?
    What's W7 version you use? Latest one or?
    Yes, at the first run, and I use the latest final version of w7

  • Outlook 2010 attachment previewer problem

    Dear All,
    I recently upgraded to the office 2010 beta, and have been quite pleased with the new system, until i tried to view an image that was attached to an email. I keep getting on any type of image or pdf that the previewer is not available ad to double click to open the file. I then get photo viewer telling me it can't open the file. So i saved the file to my desktop and try to open the jpg in any program such a photshop, illustrator or fireworks and it tells me there is an unknown or invalid JPEG marker type is found."
    I can't open any files that are attached to emails, which is getting really annoying now. I have tried everything i can think of, running outlook as an admin, turning off image previewers, checking image previewers are enabled, i've tried the protection settings, and disabling it for Outlook.
    Nothing will work. I've searched google and found a few solutions where they say this is caused by google desktop search causing problems and that uninstalling it solves the issue, however I don't have google desktop search installed, just google toolbar.
    Its starting to drive me round the bend, i've even ran and repaired the pst file which didn't make any difference either.
    Have reported it as a frown but not holding my breath for a response.
    System:
    Windows 7 64 bit
    Office 2010 32 bit beta version
    The laptop is 2 weeks old from Dell and all updates are applied.
    Can anyone shed any light?
    Thanks
    Tom

    I am having a problem which is a variation on the same theme.  What is even more odd is that I have a laptop and desktop which I installed Outlook 2010 on and they behave very differently.  On my laptop, I can easily view all doc and docx
    attachments, while on my desktop, these very same attachments are not recognized or are considered as corrupt documents.  I have been fiddling around with trusted locations on my desktop (e.g., trusting my server folders etc.) but so far no success -
    even after reinstallation of 2010 on the desktop.  My laptop's Outlook works fine without having to trust any particular location.  I installed Outlook on my desktop after doing a fresh install of the XP OS while the Outlook installation was an upgrade
    of Office 2007 with a fairly weather beaten XP registry.  So currently, I see no rhyme or reason except that it appears that the 2010 installation is highly highly sensitive.  Hopefully there is a quick fix to this or I might also have to roll back
    to an earlier version of Outlook.
    Had the same issue.
    Here is the fix
    Hello,
    I finally found out what the issue is with this.  It actually isn't a "Protected view" issue, but a DCOM issue.
    Somehow the DCOM permission got changed, so it wouldn't allow certain applications access to simple things like Preview mode on Outlook 2010 / 2007, or opening up attachments without it saying file corrupt.  I also was having an issue with Pop ups in
    IE8, where javascript messages about security tokens were not authenticated.
    The solution is as follows, and then you can turn on your protected mode back on in word, excel, and your "Preview mode" in outlook will start working again.
    Go to start, then run.  Type dcomcnfg and push o.k. Component Services should come up.
    Expand Component Services, click on Computers, then "Right click" on My Computer and go to "properties".
    Click on Default Properties tab, and make sure the following is set:
    Default Authentication Level: Should say Connect, not "None"
    And Default Impersonation Level: SHould say Identify.
    When those are set properly, hit o.k and turn on your protected mode back on your Office applications.  Everything works as expected :)
    Cheers :)

  • Preview problem with C&EN pdf document

    Hi,
    I have problem with correct font view of some pdf (from web with password) in application Preview. When I have tried open file in Acrobat Reader or my iPhone it works fine. So, I have reinstalled Lion OSX again, I have checked Font Book in OSX Lion, but exclamation marks show me only duplicated fonts and only one problem with very rare font (Bauhaus 93). When I see pdf in Safari its also OK, but after saving it is "broken" (see supporting files).
    Thank you.
    Jan Bárta
    Czech Republic

    Hi Gangisetty,
    I guess there is no need to change any settings.
    You just need to change format from OTF to PDF using some FM.
    You can refer following links for conversion of OTF to PDF.
    Re: sending INVOICE as attachment in PDF for  external Mail address
    FM to send an email with a PDF attachment
    http://an-abaper.blogspot.com/2009/07/sending-smartform-as-pdf-through-mail.html
    Hope this will help you.
    Regards,
    Vivek

  • Facing problem with logo in the PDF attachment when sending mail...

    hi friends,
    i'm facing problem with logo in the PDF attachment to the mail.
    my requirement:
    1. enter spool number and mail id in the selection screen.
    process:
    1. now the program will fetch the spool data and converts it to PDF.
    2. but when i'm trying to send mail with this PDF as attachment.
    when i open the PDF file from the mail, logo is not coming properly (looks disturbed).
    can anyone help me how to resolve this issue...
    thanks in advance, murashali.

    hi dinakar, thanks for your mail...
    logo looks good in spool/script/smartform.
    even it look good when i download this spool to pdf and to the presentation server as pdf file.
    i'm using CONVERT_OTFSPOOLJOB_2_PDF.
    when i used CONVERT_ABAPSPOOLJOB_2_PDF, is gives a msg - 'spool number not found'.
    here i'm using folloing code to pass pdf to the function module: SO_NEW_DOCUMENT_ATT_SEND_API1.
    code:
    Transfer the 132-long strings to 255-long strings
      lt_mtab_pdf[] = pdf[].
      LOOP AT lt_mtab_pdf INTO lwa_mtab_pdf.
        TRANSLATE lwa_mtab_pdf USING ' ~'.
        CONCATENATE lv_gd_buffer lwa_mtab_pdf INTO lv_gd_buffer.
        CLEAR lwa_mtab_pdf.
      ENDLOOP.
      TRANSLATE lv_gd_buffer USING '~ '.
      DO.
        lwa_mess_att = lv_gd_buffer.
        APPEND lwa_mess_att TO lt_mess_att.
        CLEAR lwa_mess_att.
        SHIFT lv_gd_buffer LEFT BY 255 PLACES.
        IF lv_gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    NOTE: problem i believe is with ''.  i'm getting this tilt symbol () in my pdf internal table.  here in the above code the line   TRANSLATE lv_gd_buffer USING '~ ' is changing the existing tilt to space.  so my logo is getting disturbed.
    even i tried with REPLACE this tilt with other char, but it doent work.
    can you give any idea...

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • Problem while opening PDF attachment in Inbox

    Hi all,
    I am sending PDF attachment through email to inbox.
    When am trying to open PDF attachment i am getting error-
    'There was an eror opening this document.The fuile changed and couldnt be open'
    When i click on attachment some bytes are getting transfere essage is displayed in lower toolbar.
    Please guide to resolve this problem.

    No reply.

  • Problem with PDF attach

    Hi, my problem es this, I use de FM 'CONVERT_OTFSPOOLJOB_2_PDF' to convert a spool to PDF document, it work ok.
    Then I convert th PDF doc from 132 to 255 char, and the end I send the PDF with FM 'SO_OBJECT_SEND' 
    The mail is sending correctly but when a try to open the PDF attached occurs an error "Error (14)" or "Format Error"
    Anyone?
    Thanks in advance.

    Instead of using the function module 'SO_OBJECT_SEND' try to use 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    For more information: check  Abhishek Suppal's response in this [thread|PDF attachment in mail;.

  • Preview Problem: PDF file:Adobe livecycle designer ES 10.0

    Hallo.
    How do I fix  preview problem of a .pdf file that was created with Adobe livecycle designer es 10.0.  version 1.7 ( show on the properties of the file). The file opens normally. No preview in explorer preview pane and change to printing problem too. Need to preview the file before uploading it onto the internet. All updates done: Windows 7, Explorer 11, Java (Javascript enable) Adobe reader XI. and Adobe Reader XI Pro.(Trail version). When in Explorer and using open with:Default program: select software already in stalled on computer: Browse Adobe reader XI (Acrord32.exe: properties show version 11.0.06.70) This will show as Adobe reader 9.4 on the list of programs.

    If you purchased a prior license of Acrobat and have purchased an upgrade to Acrobat XI Pro then you are eligible for free LiveCycle Designer upgrade.
    See more information on: http://www.adobe.com/products/acrobatpro/faq.edu.html
    Visit the http://www.adobe.com/go/learn_acr_livecycle_upgrade_en to request an upgrade.

  • PDF Attachment problem in Adobe form and send mail is not working

    Dear Experts,
                         Recently i'm facing a problem regarding Adobe form PDF attachment and sending an e-mail along with the PDF attachment to customer mail id.But when i execute the RFC Function module, in customer side no mail is comming. And when i check the transaction SBWP then i found that the PDF attachment hold only 1KB of data which is not right.For that i'm sending my code which i was declared in my program.Can anybody please help me to overcome this problem?
    Warm Regards,
    sameek.
    CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
      data: t_att_content_hex type SOLIX_TAB.
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
            l_send type ADR6-SMTP_ADDR value 'Already provided an e-mail address here'.
      DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    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,' 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 = 'Customer Information Form').
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'Customer Information Form'
    I_ATTACHMENT_SIZE =*
    I_ATTACHMENT_LANGUAGE = SPACE*
    I_ATT_CONTENT_TEXT =*
    I_ATTACHMENT_HEADER =*
          i_att_content_hex = t_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*
      lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
    lo_sender = cl_sapuser_bcs=>create( sy-uname ).*
    Set sender*
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient*
      lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
    lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).*
    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*
      lo_send_request->send(
      EXPORTING
      i_with_error_screen = 'X'
      RECEIVING
      result = lv_sent_to_all ).
      COMMIT WORK.
      message 'The Customer Information form has been emailed to the Employee' type 'I'.

    I am also facing issue with email send .
    apex 4.1.1 oracle 11g
    create or replace procedure email ( p_email  in    varchar2)
    is
        l_workspace_id      number;
        l_subject           varchar2(2000);
        l_body              clob;
        l_body_html         clob;
         l_email varchar2(40);
    begin
        l_workspace_id := apex_util.find_security_group_id (p_workspace => 'xyz');
        apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
    l_email:= p_email;
        l_body := ' ';
        l_subject := 'You have new tasks';
        --if l_email=:P3_CONFIRM_EMAIL_ADDRESS is not null then
       -- email( l_email =>:P3_CONFIRM_EMAIL );
    -- end if;
            l_body_html := '<p />The following tasks have been added.';
         apex_mail.send (
                p_to        => l_email ,
                p_from      => '[email protected]',
                p_body      => l_body,
                p_body_html => l_body_html,
                p_subj      => l_subject );
      APEX_MAIL.PUSH_QUEUE;
    end; I also check the log and queue but both are empty,
    select * from
    apex_mail_queue
    select * from
    apex_mail_log Kindly suggest what to do ?
    I also created a process in apex , which call this procedure and pass the email address entered by user.

  • I received a pdf attachment and it prints as garbage fonts from adobe reader. It is ok when I use Apple's preview though. I need a fix.

    HP (my printer) sent me to apple and Apple tried and then sent me to adobe, but adobe doesn't help people unless they pay for it. Can anyone out there figure this out. It's just one pdf doc so far. All the other things I print are fine. example attached. I think.....

    As touching a PDF with Preview can / does do the ugly to PDF get a replacement PDF.
    Keep it away from Preview (always).
    Ensure you've visited the web site of the manufacturer of the printer and downloaded the most recent software/drivers for your OS.
    Have a fully updated Adobe Reader XI installed. Launch it then do "file-open" and open the PDF and go from there.
    Be well...

  • I cannot open a PDF attachment. Get message saying Preview does not recognize it. What is Preview?

    Cannot open a PDF attachment. I get a message saying Preview does not recognize it. What is Preview?

    CLICKY CLICK---> Preview - Apple Support
    Care to share which OS you are using?
    ===========
    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which Mac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    Click on your name Welcome "your name."
    Click on your name link
    Click on the BIO tab.  Scroll down to the bottom till you see "My Products."  This is the section where you can edit your profile.
    CLICKY CLICK-----> Help us to help you on these forums

  • Problem for Mail with PDF attachment

    Hello all,
    I have a problem regarding sending mail with a PDF attachment from SAP. The attachment contains Payslip of employee that is being generated from a Submit program of the respective HRFORM. I have used the Submit program within a JOB and the spool request generated. From the spool request i am extracting the pages using FM RSPO_GET_PAGES_SPOOLJOB.
    Now to convert the spool job to PDF am using FM CONVERT_OTFSPOOLJOB_2_PDF.  And after the job is being finished, am deleting both the JOB and SPOOL.
    To change the output of the FM CONVERT_OTFSPOOLJOB_2_PDF, into attachment with line width of 255 am using FM SX_TABLE_LINE_WIDTH_CHANGE. Then after filling all the required parameters for FM SO_DOCUMENT_SEND_API1, am sending the mail with the attachment. I have kept the format as PDF.
    But the problem here is, the attachment is going as .DAT file and not as .PDF file!!!
    Please help to resolve this issue.
    with regards,
    Koushik.

    Hello,
    Instead of using SO* APIs to send mail you should use the BCS classes. Anyway there is a sample program BCS_EXAMPLE_8 which is very similar to your requirement
    Cheers,
    Suhas
    PS: The sample program BCS_EXAMPLE_6 has got more to do with PDF forms as is your case

  • E-Mail problems - will not open pdf attachment found in my e-mail...

    Here what I’m using:
    OS X (10.3.9)
    safari 1.2 (v125)
    SBC Yahoo DSL (sbcglobal.net)
    SBC MAIL
    Running through Safari 1.2 (v125)
    Over the weekend I elected to empty my cache and reset Safari (don’t ask me why - I guess I through by doing so it would speed up Safari which as been running a bit show of late) - now I’m unable to open any of my current or new pdf attachments.
    I open a pdf attachment, it runs a antiVirus check, then when I try to open the attachments itself from the AntiVirus window it opens a black windows and stops - no pdf document!
    So what's up and what do I do?
    thanks in advance for the help I going to get!
    ric r

    You don't need to run any antivirus software at the present time with OS X. There are no viri that currently affect OS X which has been available for 5 years and counting and if the antivirus software used is causing problems which isn't protecting you from anything anyway, you should use the uninstall feature to remove it from the hard drive if included with the antivirus software installed.
    You don't need to install any software provided by an ISP which can sometimes cause more problems than it helps.
    You can download Firefox for free to test if the same occurs.
    http://www.mozilla.com/firefox/
    I would like to get myself over to mac's own
    service Mail but just how is the question?
    The required account information to set up your SBC email account with the Mail.app is provided on SBC's website or you can call SBC.
    SBC will tell you they don't support the Mail.app but all you need is the following:
    * Account Type - I'm sure POP is the account type.
    * Incoming Mail Server
    * Account User Name - usually the portion of your email address in front of the @ sign only but for some providers it is the entire email address.
    * Account Password - this you should know.
    * Outgoing or SMTP server and is the SMTP server authenticated? I don't believe SBC requires or supports SMTP authentication but if authenticated, ask what type of authentication. If SMTP authentication is required, it is usually password authentication which requires entering the same user name and password required to check the account's incoming mail server for new mail.
    This is all you need to create and access the account using the Mail.app.
    Regarding using Norton SystemWorks, don't. It is poison for OS X and can cause more problems than it resolves. Symantec announced almost 3 years ago they will no longer be supporting SystemWorks or Disk Doctor with OS X but they continue to sell their garbage and they don't sell a Tiger compatible version.
    If installed on your hard drive, use the uninstall feature included to remove it and discontinue its use altogether. I believe the uninstall utility included has some problems so visit Symantec's website for an updated removal utility and/or for proper removal instructions. Symantec products installs a large number of components all over the hard drive.

  • Problem in sending pdf attachment

    hi all
    i am facing a problem when i am sending a pdf attachment in mail... It is showing an errror that the file is not decode properly as it is an email attachment. The below code works fine for other file types. please help me

    FUNCTION ZMAIL_READ.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SUBJECT) TYPE  SO_OBJ_DES
    *"     VALUE(TEXT) TYPE  STRING
    *"     VALUE(SENDER) TYPE  ADR6-SMTP_ADDR
    *"     VALUE(RECEIVER) TYPE  ADR6-SMTP_ADDR
    *"     VALUE(ATTACHMENTS) TYPE  Z_T_XATTACH OPTIONAL
    *"  EXPORTING
    *"     VALUE(MESSAGE) TYPE  STRING
    DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
          lo_bcs_send_request TYPE REF TO cl_bcs,
          l_send type ADR6-SMTP_ADDR ,
          l_rec type  ADR6-SMTP_ADDR .
    data: it_text type table of soli,
          wa_text type soli.
    DATA: lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    DATA: lv_recipient_uid TYPE uname,
          lv_recipient_mail TYPE adr6-smtp_addr.
    data: lo_message type ref to cx_send_req_bcs value is initial,
          text_val type string.
    data: it_userlist type table of BAPIUSNAME,
          wa_userlist type BAPIUSNAME.
    data: it_selection_range type table of BAPIUSSRGE,
          wa_selection_range type BAPIUSSRGE.
    data: wa_attachment TYPE zxattach,
          attachment_sub type SO_OBJ_DES.
    DATA: xstr type xstring,
          str TYPE string,
          str1 type string,
          it_str2 type table of soli,
          wa_STR2 TYPE SOLI,
    DATA: LOC_CONV TYPE REF TO CL_ABAP_CONV_IN_CE,
          wa_soli type soli,
          it_soli type table of soli,
          it1_solix type solix_tab.
    data result TYPE boolean.
    data: i_ext(10) type c,
          i_type type soodk-objtp.
    wa_text-line = text.
    append wa_text to it_text.
    CLASS cl_bcs DEFINITION LOAD.
    try.
    lo_send_request = cl_bcs=>create_persistent( ).
    catch cx_send_req_bcs.
    endtry.
    * Message body and subject
    data: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    try.
    lo_document = cl_document_bcs=>create_document(
         i_type = 'RAW'
         i_text =  it_text
         i_subject = subject ).
    catch cx_send_req_bcs.
    catch cx_document_bcs.
    catch cx_address_bcs.
    endtry.
    loop at attachments into wa_attachment.
    attachment_sub = wa_attachment-file_name.
    it_str2 = wa_attachment-attach.
    loop at it_str2 into wa_str2.
    str1 = wa_str2-line.
    try.
    CALL FUNCTION 'SSFC_BASE64_DECODE'
      EXPORTING
        B64DATA                        = str1
    *   B64LENG                        =
    *   B_CHECK                        =
      IMPORTING
        BINDATA                        = xstr.
    catch cx_sy_dyn_call_illegal_type.
    endtry.
    try.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = xstr
       APPEND_TO_TABLE       = 'X'
    * IMPORTING
    *   OUTPUT_LENGTH         =
      TABLES
        BINARY_TAB            = it1_solix
    catch cx_sy_dyn_call_illegal_type.
    endtry.
    endloop.
    try.
    CALL FUNCTION 'SA_KW_RFC_FILENAME_EXT_GET'
      EXPORTING
       AREA            = 'IWBSOLAR'
        MIMETYPE        = wa_attachment-type
    IMPORTING
       EXTENSION       = i_ext
    catch cx_sy_dyn_call_illegal_type.
    endtry.
    i_type = i_ext.
    try.
      lo_document->add_attachment(
      EXPORTING
        i_attachment_type = i_type
        i_attachment_subject = attachment_sub
        i_att_content_hex = it1_solix ).
           CATCH cx_document_bcs.
    endtry.
    endloop.
    try.
    lo_send_request->set_document( lo_document ).
    CATCH cx_send_req_bcs.
    endtry.
    wa_selection_range-PARAMETER = 'address'.
    wa_selection_range-field = 'e_mail'.
    wa_selection_range-sign = 'I'.
    wa_selection_range-option = 'EQ'.
    wa_selection_range-low = receiver.
    append wa_selection_range to it_selection_range.
    try.
    CALL FUNCTION 'BAPI_USER_GETLIST'
    * EXPORTING
    *   MAX_ROWS              = 0
    *   WITH_USERNAME         = ' '
    * IMPORTING
    *   ROWS                  =
    TABLES
        SELECTION_RANGE       = it_selection_range
        USERLIST              = it_userlist.
    catch cx_sy_dyn_call_illegal_type.
    endtry.
    read table it_userlist into wa_userlist index 1.
    try.
      lo_sender = cl_cam_address_bcs=>create_internet_address( sender ).
      lo_send_request->set_sender(
         EXPORTING
         i_sender = lo_sender ).
    catch cx_send_req_bcs.
    catch cx_document_bcs.
    catch cx_address_bcs.
      return.
    endtry.
    try.
        lo_recipient = cl_sapuser_bcs=>create( wa_userlist-USERNAME ).
        lo_send_request->add_recipient(
           EXPORTING
             i_recipient = lo_recipient ).
    *         i_express = 'X' ).
      catch cx_send_req_bcs.
      catch cx_document_bcs.
      catch cx_address_bcs.
    endtry.
    try.
    ** Send email
         LO_SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
         lo_send_request->send( EXPORTING
         i_with_error_screen = ' '
         RECEIVING
         result = result ).
         COMMIT WORK.
    CATCH CX_DOCUMENT_BCS.
    CATCH CX_SEND_REQ_BCS INTO lo_message.
    CATCH CX_ADDRESS_BCS.
    text_val = lo_message->IF_MESSAGE~GET_TEXT( ).
    endtry.
    if result = 'X'.
      message = 'E-Mail sent'.
    else.
      message = 'E-Mail not sent'.
    endif.
    ENDFUNCTION.

Maybe you are looking for