Image should be dispaly in Body of receipient mail.

Hi,
i am working with apex_4.1. i am working on send mail option .
Here i have take a file browser Item here i have browse only Image from desktop in file browse item.
i want to show that browse image in Mail Body when i send Mail on recepient body end .
How can i do this?
Thanks & Regards
Vedant
Edited by: Vedant on Jan 26, 2012 10:50 PM
Edited by: Vedant on Jan 27, 2012 12:43 AM

Plain text and HTML email content._
Passing a value to p_body, but not p_body_html results in a plain text message. Passing a value to p_body and p_body_html yields a multi-part message that includes both plain text and HTML content. The settings and capabilities of the recipient's email client determine what displays. Although most modern email clients can read an HTML formatted email, remember that some users disable this functionality to address security issues.
This means you just have to put in your p_body a part with
<img src="refer the picture">

Similar Messages

  • How to send image as a part of body with java mail

    How to send image (.GIF) file in mail body & not as an attachement using java mail API

    You need to create a multipart/related message.
    You'll probably find examples in this forum.

  • Image should work as hyper link in smartform

    Hi,
    I am able to convert smartform with images in to HTML format and able to send as e-mail using the program similar to SF_XSF_DEMO_MAIL.
    As soon as the user receives e-mail, he should able to click on images and should redirect to other webpage. (Image should work like hyper link).
    Can you please suggest how to work on this issue ?
    Thank you very much.
    Regards
    Badari

    Using smart form we can not send image as hyper link. This functionality is not available using smartform.
    Instead of using smart form written the HTML Code and used the following function module  'SO_NEW_DOCUMENT_ATT_SEND_API1' and works fine for me.
    wa_objtxt-line ='</body>'.
      APPEND wa_objtxt TO t_objtxt.
      wa_objtxt-line = '</html>'.
      APPEND wa_objtxt TO t_objtxt.
      HTML close
      wa_objtxt-line = '</body> </html> '.
      APPEND wa_objtxt TO t_objtxt.
    Document data
      DESCRIBE TABLE t_objtxt      LINES w_tab_lines.
      READ     TABLE t_objtxt      INTO wa_objtxt INDEX w_tab_lines.
      wa_docdata-doc_size =
          ( w_tab_lines - 1 ) * 255 + STRLEN( wa_objtxt ).
    Packing data
      CLEAR wa_objpack-transf_bin.
      wa_objpack-head_start = 1.
      wa_objpack-head_num   = 0.
      wa_objpack-body_start = 1.
      wa_objpack-body_num   = w_tab_lines.
      we will pass the HTML, since we have created the message
      body in the HTML
      wa_objpack-doc_type   = 'HTML'.
      APPEND wa_objpack TO t_objpack.
    *ENDFORM.                    " CREATE_TITLE_DESC_BODY
    *&      Form  fill_receivers
          Filling up the Receivers
    *FORM fill_receivers .
      wa_reclist-receiver = I_email. "p_email.
      wa_reclist-rec_type = 'U'.
      APPEND wa_reclist TO t_reclist.
      CLEAR  wa_reclist.
    *ENDFORM.                    " fill_receivers
    *&      Form  send_message
          Sending Mail
    *FORM send_message .
    Send Message to external Internet ID
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'     "used from rel.6.10
        TABLES
          packing_list               = t_objpack
          object_header              = t_objhead
          contents_txt               = t_objtxt
          receivers                  = t_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 NE 0.
        E_STATUS = 'Sending Failed'.
      ELSE.
        E_STATUS = 'Sending Successful'.
      ENDIF.
    Edited by: Badari Narayana1 on Oct 6, 2009 10:09 PM
    Edited by: Badari Narayana1 on Oct 6, 2009 10:09 PM
    Edited by: Badari Narayana1 on Oct 6, 2009 10:10 PM

  • How can I attach an image without the image is in the email body? (using the new mail the Lion)

    How can I attach an image without the image is in the email body? (using the new mail the Lion)
    I want in attachment, not in the body mail.

    I think your only solution is to zip the image files first and then attach them.
    Read this from a site I found:
    Sending Graphical Attachments -- When you attach a graphical image to your message, the recipient of your message sees the image inline (that is, in the body of the message) if her email client supports inline display. ("Take Control of Email with Apple Mail" contains a table listing the capabilities of popular Mac and PC email clients.) If a client does not support inline display (or the recipient has turned off the inline display option), the file appears as an attachment that must be opened in a separate program.
    On the one hand, an inline image is easier for the recipient to see - all she has to do is look at it. On the other hand, inline images can be frustrating to scroll through. If you do not wish to send a graphical image inline, you must compress the file before attaching it - Mail, sadly, lacks a built-in compression option, though fortunately for Panther users, the Finder offers Zip compression without requiring a separate application.
    Note that when you compose a new message, Mail always shows attachments in the body of your message. You can manually drag them somewhere else, but many email clients display all attachments in a separate list, regardless of where you place them in the message body.
    If you paste an image into a message or drag & drop an image from another window (say, a Web browser), Mail converts the raw image data to an attachment in TIFF format. On the other hand, if you drag & drop the icon of an image file (or use the Attach button to locate the file using the file browser), Mail leaves the attached image in its original format. This difference is significant, because although most email clients can display JPEG images just fine, support for TIFF - especially in non-Mac email clients - is less common. If possible, I suggest attaching image files as opposed to pasting or dragging in raw image data.

  • Downloaded Appleworks 6.2.9 for Mac Updater-2.sim but when i try to open the file i receive the message "legacy image should be updated".  what does this mean and/or entail?

    downloaded Appleworks 6.2.9 for Mac Updater-2.sim but when i try to open the file i receive the message "legacy image should be updated".  what does this mean and/or entail?

    Mavericks is not recognizing the .smi extension - on my Mac it thinks it's a RealPlayer document. You are not going to be able to do anything with this - it requires AppleWorks to be present to be updated, and you can't run AppleWorks on Mavericks (other than by the rather roundabout process of installing Snow Leopard Server in Parallels and installing AppleWorks on that, as described here).

  • Want to send a email with images and text in the body of email in iOS

    In iOS, we have written a code to send an email,  with embedded images and text in the body of the email ( not attachment) using mail composer. It works well with iOS devices like iPhone and iPad, but does not work in window based OS. Can anybody help. The code is

    Thanks James !, do you have an idea how to  find the window resource which I belive will be included in our appllication pack.
    In above  I have missed to copy the code,below is the code. This might help you to help me.
    NSMutableString *imgContent = [[[NSMutableString alloc] initWithString:@"<html><body>"] retain];
    UIImage *imageData = [UIImage imageNamed:@"Midhun.png"];
    NSData *imageDataInBase64 = [NSData dataWithData:UIImagePNGRepresentation(imageData)];
    NSString *base64String = [imageDataInBase64 base64EncodedString];
    [imgContent appendString:[NSString stringWithFormat:@"<p><b><img src='data:image/png;base64,%@'></b></p>",base64String]];
    [imgContent appendString:@"</body></html>"];
    MFMailComposeViewController *emailWin = [[MFMailComposeViewController alloc] init];
    [emailWin setMessageBody:imgContent isHTML:YES];

  • How to change images based on action.Even clicking changed images should ?

    how to change images based on action.
    Even clicking changed images should do respective actions.
    and while displaying only one image at a time sholud get displayed.
    I am using three images for a single column of a table in Jsp.
    Any clues.
    Any link for any good javascript html jsp site where i can find some good solution.
    vijendra

    In broad way if i say i have multiple situations in mutiple tables where i need such a logic to operate in for all tables.
    lets say in first time load of page by default one image will be displayed (one with sorted order for first column rest all non sorted)Now after every click to any image respective sort should get called.along with all images should get changed.Here with every function one/two images will get effect at least.
    As in first if i say sort by desc then this image will change rest all will remain in unsort form.
    when i move to other column and click on new image the previos will convert to unsort and new one will convert to sort by ascending. rest all will be in unsort form as it is.
    Now it seems like same logic is required with two three conditions.
    even for everyaction different parametrs has to be passed at differnt situations.
    Any good idea if someone can suggest.
    I will be very greatful for him.
    thanks
    vijendra

  • HT201376 How do I go about unlocking a recovery HD? Also I need to know what disk image should I use when trying to restore a failed(erased) disk in DU?

    Also I need to know what disk image should I use when trying to restore a failed(erased) disk in DU?

    You need to plug it into your computer running iTunes and restore it. Have you tried that? If so, what happened?

  • HT1352 Open Firmware password can't be opened - "legacy image should be converted"

    Hi,
    I have downloaded Open Firmware Password.dmg at the link provided in the article. Anytime I try to open it, a message comes up: "The following disk images couldn't be opened: Open Firmware Password.dmg, Reason: legacy image should be converted." What does this mean and what am I supposed to do? Can anybody help me please? Thanks!
    Sorry, problem's been solved. Found this discussion https://discussions.apple.com/thread/3158789?start=0&tstart=0.
    Message was edited by: Tony McAre

    I selected Recovery Partition and then  Disk Utility after pressing option at startup. I went to that Mac OS X Boot thing on the list with the hard drives are (like the screen shot in this discussion https://discussions.apple.com/message/18168530#18168530), but I was not able to take any actions. All Buttons were shielded out. It would be very nice if you could describe what to do once more in detail, so that I might understand it better. Thank you!!

  • Yahoo! Messenger 3.0.1 - Legacy Image Should Be Converted

    Hello, I am running into issues when trying to install the Yahoo! Messenger client on my Early 2011 MacBook Pro running Lion 10.7.2.
    When I click on the .dmg file it tells me that "Legacy Image Should Be Converted". I tried this method: https://discussions.apple.com/thread/3158789?start=0&tstart=0 but that did not work for me.
    Anyone else have any suggestions?

    I selected Recovery Partition and then  Disk Utility after pressing option at startup. I went to that Mac OS X Boot thing on the list with the hard drives are (like the screen shot in this discussion https://discussions.apple.com/message/18168530#18168530), but I was not able to take any actions. All Buttons were shielded out. It would be very nice if you could describe what to do once more in detail, so that I might understand it better. Thank you!!

  • Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?

    Hi All,
    Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?
    CISCO2951/K9
    Cisco 2951 w/3 GE 4 EHWIC 3 DSP 2 SM 256MB CF 512MB DRAM IPB
    PWR-2921-51-AC
    Cisco 2921/2951 AC Power Supply
    CAB-ACSA
    AC Power Cord (South Africa) C13 BS 546 1.8m
    HWIC-BLANK
    Blank faceplate for HWIC slot on Cisco ISR
    ISR-CCP-EXP
    Cisco Config Pro Express on Router Flash
    MEM-2951-512MB-DEF
    512MB DRAM (1 512MB DIMM) for Cisco 2951 ISR (Default)
    MEM-CF-256MB
    256MB Compact Flash for Cisco 1900 2900 3900 ISR
    SM-S-BLANK
    Removable faceplate for SM slot on Cisco 290039004400 ISR
    SL-29-IPB-K9
    IP Base License  for Cisco 2901-2951
    S2951UK9-15501T
    Cisco 2951 IOS UNIVERSAL
    EHWIC-1GE-SFP-CU
    EHWIC 1 port dual mode SFP(100M/1G) or GE(10M/100M/1G)

    > Can someone suggest ?
    a forum is no realtime-communication ... ;-)
    For the ISR G1, it was supported from 12.4(24)T, so I would assume that your ISR G2 has this feature if you are running 15.x.
    EDIT: The Feature-navigator says that it's supported starting with 15.1(2)T.

  • Pdf as in the body of e-mail.

    Hello experts,
    we are sending a pdf as an attachment of an e-mail.what im trying to do is to send pdf in the body of e-mail.
    i have search and couldnt find any help in the documents or discussions.
    here is my code:
    FORM SEND_MAIL
    DATA: lv_formname TYPE  tdsfname,
             lv_fm_name  TYPE  rs38l_fnam,
             ls_control_parameters TYPE ssfctrlop,
             ls_output_options     TYPE ssfcompop,
             lv_user_settings      TYPE tdbool VALUE 'X',
             ls_job_output_info    TYPE ssfcrescl,
             ls_job_output_options TYPE ssfcresop.
       DATA: lt_otfdata TYPE TABLE OF itcoo,
             lt_pdfdata TYPE TABLE OF tline WITH HEADER LINE.
       DATA: ls_data TYPE zfi_s_satici_mutabakat.
       DATA: ls_document_data       LIKE  sodocchgi1,
             lv_put_in_outbox       LIKE  sonv-flag,
             lv_sender_address      LIKE  soextreci1-receiver,
             lv_sender_address_type LIKE  soextreci1-adr_typ,
             lv_commit_work         LIKE  sonv-flag VALUE space,
             lt_packing_list  TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
             lt_object_header TYPE TABLE OF solisti1   WITH HEADER LINE,
             lt_contents_bin  TYPE TABLE OF solisti1   WITH HEADER LINE,
             lt_contents_txt  TYPE TABLE OF solisti1   WITH HEADER LINE,
             lt_contents_hex  TYPE TABLE OF solix      WITH HEADER LINE,
             lt_object_para   TYPE TABLE OF soparai1   WITH HEADER LINE,
             lt_object_parb   TYPE TABLE OF soparbi1   WITH HEADER LINE,
             lt_receivers     TYPE TABLE OF somlreci1  WITH HEADER LINE.
       DATA: lv_len TYPE i,
             lv_pos TYPE i,
             lv_tab_lines TYPE i.
       DATA: lt_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
       CLEAR: lv_formname, lv_fm_name.
       lv_formname = 'ZLIMIT_REQUEST_FORM2'.
       PERFORM smartform_fm_name USING lv_formname
                                 CHANGING lv_fm_name .
    *get PDF Data
       ls_control_parameters-getotf    = 'X'.
       ls_control_parameters-no_dialog = 'X'.
       ls_output_options-tdnoprev      = 'X'.
       LOOP AT itab WHERE sel eq 'X'.
         concatenate sy-datum+6(2)'.'sy-datum+4(2)
             '.'sy-datum(4) into datum.
         CALL FUNCTION lv_fm_name
           EXPORTING
             control_parameters = ls_control_parameters
             output_options     = ls_output_options
             user_settings      = 'X'
             datum              = datum
             EPAYMENT_T1        = EPAYMENT_T1
             EPAYMENT_T2        = EPAYMENT_T2
             EPAYMENT_D1        = EPAYMENT_D1
             EPAYMENT_D2        = EPAYMENT_D2
             NAME1              = name1
    "        itab               = itab[]
           IMPORTING
             job_output_info    = ls_job_output_info
           TABLES
             ITAB               = itab
         FREE: lt_otfdata, lt_pdfdata.
         lt_otfdata[] = ls_job_output_info-otfdata[].
         PERFORM convert_otf TABLES lt_otfdata lt_pdfdata.
         FREE: lt_receivers, lt_packing_list,
               lt_contents_bin, lt_contents_txt.
    * Assigning the Description of the object sent in the mail
         CLEAR ls_document_data.
         ls_document_data-obj_name = 'Limit Talep Formu'.
         ls_document_data-obj_descr = 'Limit Talep Formu'.
         ls_document_data-expiry_dat  = sy-datum + 10.
         ls_document_data-sensitivty = 'F'.
         LOOP AT gt_mail.
           CLEAR : lt_receivers.
           lt_receivers-receiver = gt_mail-ZZSAHAMUDUREMAIL. " """reciever list
           lt_receivers-rec_type = 'U'.
           lt_receivers-com_type = 'INT'.
           APPEND lt_receivers.
           lt_receivers-COPY = mail_bm.
           lt_receivers-rec_type = 'U'.
           lt_receivers-com_type = 'INT'.
           APPEND lt_receivers.
         ENDLOOP.
         CLEAR: lt_contents_txt.
         lt_contents_txt-line = 'Sayın yetkili,'.
         APPEND lt_contents_txt.CLEAR lt_contents_txt.
         APPEND lt_contents_txt.
         CONCATENATE 'Ekte tarafınıza ait limit formu'
         ' bulunmaktadır.' INTO lt_contents_txt-line
         SEPARATED BY space.
         APPEND lt_contents_txt.CLEAR lt_contents_txt.
         APPEND lt_contents_txt.
         lt_contents_txt-line = 'Saygılarımızla,'.
         APPEND lt_contents_txt.CLEAR lt_contents_txt.
         CLEAR lt_packing_list.
         lt_packing_list-transf_bin  = space.
         lt_packing_list-head_start  = 1.
         lt_packing_list-head_num    = 0.
         lt_packing_list-body_start  = 1.
         lt_packing_list-body_num    = LINES( lt_contents_txt ).
         lt_packing_list-doc_type    = 'RAW'.
         APPEND lt_packing_list. CLEAR lt_packing_list.
         ls_document_data-doc_size = LINES( lt_contents_txt ) * 255.
         CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
           EXPORTING
             line_width_src              = 134
             line_width_dst              = 255
           TABLES
             content_in                  = lt_pdfdata
             content_out                 = lt_contents_bin
           EXCEPTIONS
             err_line_width_src_too_long = 1
             err_line_width_dst_too_long = 2
             err_conv_failed             = 3
             OTHERS                      = 4.
    *Filling the details in SAPoffice: Description of Imported Object
    *Components table
         DESCRIBE TABLE lt_contents_bin LINES lv_tab_lines.
         CLEAR lt_contents_bin.
         READ TABLE lt_contents_bin INDEX lv_tab_lines.
         IF sy-subrc = 0.
           CLEAR: lt_packing_list.
           lt_packing_list-transf_bin = 'X'.
           lt_packing_list-head_start = 1.
           lt_packing_list-head_num = 1.
           lt_packing_list-body_start = 1.
           lt_packing_list-body_num = lv_tab_lines.
           lt_packing_list-obj_langu = sy-langu.
           lt_packing_list-doc_type = 'PDF'.
           lt_packing_list-obj_name = 'ATTACHMENT'.
           lt_packing_list-obj_descr = 'RISK TALEP FORMU.PDF'.
           lt_packing_list-doc_size = lv_tab_lines * 255.
           APPEND lt_packing_list.CLEAR lt_packing_list.
         ENDIF.
         lv_put_in_outbox = lv_commit_work = 'X'.
         CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
             document_data              = ls_document_data
             put_in_outbox              = lv_put_in_outbox
             sender_address             = lv_sender_address
             sender_address_type        = lv_sender_address_type
             commit_work                = lv_commit_work
           TABLES
             packing_list               = lt_packing_list
             object_header              = lt_object_header
             contents_bin               = lt_contents_bin
             contents_txt               = lt_contents_txt
             contents_hex               = lt_contents_hex
             object_para                = lt_object_para
             object_parb                = lt_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 eq 0.
    *      gt_data-gonderx = 'X'.
    *      modify gt_data.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         ENDIF.
       ENDLOOP.
    ENDFORM.                    " SEND_MAIL

    Hi Matthew Billingham,
    i struggled quite a while if i should write a reply or not.
    The fact that one of my posts got rejected by suggesting FM SO_DOCUMENT_SEND_API1 finally made me do so. (maybe the rejection was ok for the context i wrote my post for but reading through the forum i feel like some people going to panic if they read the FM-name).
    I totally agree with u using CL_BC-Classes instead of old fashioned-FMs for new development.
    But that should not lead us in handling the name SO_DOCUMENT_SEND_API1 like they did with the name Lord Voldemort in Harry Potter.
    Wanting to display a PDF in email body instead of adding it as attchment, aint nescessary worth a complete redesign of the existing programm - as Cem Unal already posted his code and told us he just want to change it.
    As long as there are programms out that use this FM, there will be questions on how to handle this FM no matter if its obsolete or not. And where should they ask, when they wont be able to ask in the scn-forum?
    Reading the FMs documentation, there is nothing mentioning this FM is obsolete.
    So the strategie of suggesting to use newer technics because of personal preference should (in my opinion) not lead into deleting posts regarding the old technic on the other hand.
    regards
    Stefan Seeburger

  • How to get body of a mail

    hello friends,
    i want to know how to get Body of mail
    thank u
    bye
    somu

    hai
    i will describe in detail
    i want to separate the body and attachment of body and i should save with the body with the .body extension and i will not change attachment's extension.
    i use the message.getContent() to get body. it is working fine while for a mail with out attachment but for a mail with attachment diplayed as the object.
    and i also used message[i].getInputStream() method to get body even then
    i could not get and the outfile look's like this
    ----------MailBlocks_8C8578F65F2833A_23FC_9973_mblkn-m02.sysops.aol.com
    Content-Type: text/plain; charset="us-ascii"
    hello this test mail
    Try the New Netscape Mail Today!
    Virtually Spam-Free | More Storage | Import Your Contact List
    http://mail.netscape.com
    ----------MailBlocks_8C8578F65F2833A_23FC_9973_mblkn-m02.sysops.aol.com
    Content-Type: application/octet-stream; name="Test.java~"
    Content-Disposition: attachment; filename="Test.java~"
    Content-Transfer-Encoding: base64
    aW1wb3J0IGphdmEuaW8uKjsKaW1wb3J0IGphdmEudXRpbC4qOwpjbGFzcyBUZXN0CnsKCXB1
    YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZyBhcmdbXSkKCXsKCQl0cnl7CgkJQnVmZmVy
    ZWRSZWFkZXIgYnI9bmV3IEJ1ZmZlcmVkUmVhZGVyKG5ldyBJbnB1dFN0cmVhbVJlYWRlcihT
    eXN0ZW0uaW4pKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIkVOVEVSIGRhdGEgdG8gYmUgc2Vh
    cmNoZWQgICIpOwoJCVN0cmluZyBtYWlsPWJyLnJlYWRMaW5lKCk7CgkJCgkJRmlsZSBmPW5l
    dyBGaWxlKCJmMi50eHQiKTsKCQlGaWxlSW5wdXRTdHJlYW0gZmlzPW5ldyBGaWxlSW5wdXRT
    dHJlYW0oImYyLnR4dCIpOwoJCUlucHV0U3RyZWFtUmVhZGVyIGlzcj1uZXcgSW5wdXRTdHJl
    YW1SZWFkZXIoZmlzKTsKCQlCdWZmZXJlZFJlYWRlciBicjE9bmV3IEJ1ZmZlcmVkUmVhZGVy
    KGlzcik7CgkJU3RyaW5nQnVmZmVyIHNiPW5ldyBTdHJpbmdCdWZmZXIoKTsKCQlpbnQgbGVu
    PShpbnQpZi5sZW5ndGgoKTsKCQlmb3IoaW50IGk9MDtpPGxlbjtpKyspCiAgICAJCXsKCQkJ
    aWYoYnIxLnJlYWRMaW5lKCkhPW51bGwpCgkJCXsKICAgICAgICAJCQlTdHJpbmdUb2tlbml6
    ZXIgc3Q9bmV3IFN0cmluZ1Rva2VuaXplcihicjEucmVhZExpbmUoKSk7CgkJCQl3aGlsZSAo
    c3QuaGFzTW9yZVRva2VucygpKSAKCQkJCXsKCQkJCQlpZihtYWlsLmVxdWFscyhzdC5uZXh0
    VG9rZW4oKSkKCQkJCQl7CgkJICAgICAgCQkJCSAgIFN5c3RlbS5vdXQucHJpbnRsbihzdC5u
    ZXh0VG9rZW4oKSk7CgkJCQkJfQogICAgIAkJCQl9CgkJCX0KICAgIAkJfQkJCgkJfQoJCWNh
    dGNoKEV4Y2VwdGlvbiBlKQoJCXsKCQkJU3lzdGVtLm91dC5wcmludGxuKGUpOwoJCX0KCX0K
    fQo=
    ----------MailBlocks_8C8578F65F2833A_23FC_9973_mblkn-m02.sysops.aol.com--

  • Is there any way to schedule the webi report as body of the mail

    Hi All,
             I have a bit different requirement. I need to schedule the webi reports to BlackBerry Mobile .
    The report should be displayed not as an attachment or URL but should be the body of the mail.
    Is there any Trick or Tip to do that.
    Thanks in Advance

    You could schedule the reports to run as an Excel or PDF document and the destination as a folder on a server.  Then after the reports are sent to the destination, you could use the Program Job Server to run a script which parses the files line-by-line and creates an email.  It's not the most elegant solution but in theory it should work.

  • Send an smartform as body of a mail

    Hello,
    I would like know if there is another way of doing this: "Send an smartform as body of a mail". Now it is sending attached as pdf but the user prefers to view the smartform on the body of the message.
    This is a CS formulary and I think that (perhaps) at the options of  "output_options     TYPE ssfcompop," should be another of this.
    Thanks

    I have included our code to process/send our smartform via email. you should be able to see the solution in there.....
    form process_webform
    * activate XSF Output Mode
      ls_output_options-xsf        = c_charx.        " XSF Output active
      ls_output_options-xsfcmode   = c_charx.        " Get XSF params from program
      ls_output_options-xsfoutmode = c_application.  " Application
      ls_output_options-xsfformat  = c_charx.       " Formatting ON
      clear ls_output_options-xsfoutdev.
      ls_xsfparam_line-name  = 'GRAPHICS'.
      ls_xsfparam_line-value = 'EXTRACT'.
      append ls_xsfparam_line to ls_output_options-xsfpars.
      ls_xsfparam_line-name  = 'GRAPHICS-DIRECTORY'.            "#EC NOTEXT
      ls_xsfparam_line-value = c_gr_dir.
      append ls_xsfparam_line to ls_output_options-xsfpars.
      ls_xsfparam_line-name  = 'CONTENT-ID'.                    "#EC NOTEXT
      ls_xsfparam_line-value = 'ENABLE'.                        "#EC NOTEXT
      append ls_xsfparam_line to ls_output_options-xsfpars.
    * silent mode ON
      ls_output_options-tdimmed = space.
      ls_output_options-tdnewid = space.
      ls_control_parameters-no_dialog = c_charx.
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname           = pi_form
        importing
          fm_name            = l_fm_name
        exceptions
          no_form            = 1
          no_function_module = 2
          others             = 3.
      if sy-subrc <> 0.
    *   error handling
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        exit.
      endif.
      call function l_fm_name
        exporting
          control_parameters = ls_control_parameters
          output_options     = ls_output_options
          user_settings      = space
        importing
          job_output_info    = ls_output_data
        exceptions
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          others             = 5.
      if sy-subrc <> 0.
    *   error handling
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      po_html       = ls_output_data-xmloutput-trfresult.
      po_t_graphics = ls_output_data-xmloutput-xsfgr.
    endform.                    "process_webform
    form send_webform
      clear l_html_xstr.
      loop at pi_s_html-content into l_html_raw.
        concatenate l_html_xstr l_html_raw into l_html_xstr in byte mode.
      endloop.
      l_html_xstr = l_html_xstr(gs_html_data-length).
      call function 'SCP_TRANSLATE_CHARS'
        exporting
          inbuff       = l_html_xstr
          incode       = '4110'                                 " utf-8
          csubst       = c_charx
          substc_space = c_charx
        importing
          outbuff      = l_html_str
          outused      = l_html_len
        exceptions
          others       = 1.
      if sy-subrc ne 0.
        "do nothing
      endif.
    * change encoding utf-8 to latin1
      replace all occurrences of 'utf-8' in l_html_str with 'latin1' ignoring case.
      replace all occurrences of 'absolute' in l_html_str with 'relative' ignoring case.
      replace all occurrences of 'overflow : auto'
                  in l_html_str with 'overflow : hidden' ignoring case.
    * The following code will replace the standard text shown in an html link
    * such as (www.sap.com) with the text passed along with the link (contained in
    * brackets [ ] ).  An example would be: "www.sap.com[Click me]" will then be
    * displayed as a link on the email with "... Click me ..." as the text.  HTML links
    * without brackets will be displayed normally (ie. www.sap.com)+
      do.
    *   Get the length for the entire HTML code for the URL and Name
        find '<a href="' in section offset l_aref_end of l_html_str match offset l_aref_start.
        if sy-subrc ne 0.
          exit.
        endif.
        find '</a>' in section offset l_aref_start of l_html_str match offset l_aref_end.
        l_aref_length = ( l_aref_end + 4 ) - l_aref_start.
    *   Find the URL/name
        l_lnk_start = l_aref_start + 9.
        find '">' in section offset l_aref_start of l_html_str match offset l_lnk_end.
        l_lnk_length = l_lnk_end - l_lnk_start.
    *   Save the URL/name
        l_link_all = l_html_str+l_lnk_start(l_lnk_length).
    *   Find where the name starts and ends
        find '[' in l_link_all match offset l_name_start.
        if sy-subrc ne 0.
          continue.
        endif.
        find ']' in l_link_all match offset l_name_end.
        if sy-subrc ne 0.
          continue.
        endif.
    *   Seperate out the URL
        l_link_url = l_link_all+0(l_name_start).
    *   Seperate out the name
        l_name_start = l_name_start + 1.
        l_name_length = l_name_end - l_name_start.
        l_link_name = l_link_all+l_name_start(l_name_length).
    *   Replace the first URL/Name occurence with just the URL
        replace first occurrence of l_link_all
                in section offset l_aref_start length l_aref_length
                of l_html_str with l_link_url.
    *   Replace the second URL/Name occurence with just the Name - first
    *   substitute special characters.
        replace all occurrences of '&' in l_link_all with '&'.
        replace all occurrences of '>' in l_link_all with '>'.
        replace all occurrences of '<' in l_link_all with '<'.
        replace first occurrence of l_link_all
                in section offset l_aref_start length l_aref_length
                of l_html_str with l_link_name.
    *   Reset ending point
        l_aref_end = l_aref_end - ( l_lnk_length + 2 ).
      enddo.
      l_html_len = strlen( l_html_str ).
      l_offset = 0.
      l_length = 255.
      while l_offset < l_html_len.
        l_diff = l_html_len - l_offset.
        if l_diff > l_length.
          ls_soli-line = l_html_str+l_offset(l_length).
        else.
          ls_soli-line = l_html_str+l_offset(l_diff).
        endif.
        append ls_soli to lt_soli.
        add l_length to l_offset.
      endwhile.
      create object lo_mime_helper.
      call method lo_mime_helper->set_main_html
        exporting
          content = lt_soli.
      loop at pi_t_graphics into gs_graphic.
        clear l_gr_xstr.
        loop at gs_graphic-content into l_gr_raw.
          concatenate l_gr_xstr l_gr_raw-line into l_gr_xstr in byte mode.
        endloop.
        l_gr_xstr = l_gr_xstr(gs_graphic-length).
        l_offset = 0.
        l_length = 255.
        clear lt_solix[].
        while l_offset < gs_graphic-length.
          l_diff = gs_graphic-length - l_offset.
          if l_diff > l_length.
            ls_solix-line = l_gr_xstr+l_offset(l_length).
          else.
            ls_solix-line = l_gr_xstr+l_offset(l_diff).
          endif.
          append ls_solix to lt_solix.
          add l_length to l_offset.
        endwhile.
        concatenate c_gr_dir gs_graphic-graphics '.bmp' into l_filename.
        concatenate c_gr_dir gs_graphic-graphics '.bmp' into l_content_id.
        l_content_type = gs_graphic-httptype.
        l_obj_len      = gs_graphic-length.
        call method lo_mime_helper->add_binary_part
          exporting
            content      = lt_solix
            filename     = l_filename
            extension    = 'BMP'
            content_type = l_content_type
            length       = l_obj_len
            content_id   = l_content_id.
      endloop.
      try.
          l_standard_txt = pi_smartform.
          call function 'READ_TEXT'
            exporting
              id       = 'ST'
              language = sy-langu
              name     = l_standard_txt
              object   = 'TEXT'
            tables
              lines    = lt_lines.
          read table lt_lines into ls_lines index 1.
          replace '&1' in ls_lines-tdline with pi_belnr.
          replace '&2' in ls_lines-tdline with pi_bukrs.
            move ls_lines-tdline to l_subject.
         lo_doc_bcs = cl_document_bcs=>create_from_multirelated(
                                        i_subject          = l_subject
                                        i_multirel_service = lo_mime_helper ).
    * Add Attachment
    *      types: begin of email_docs,
    *                   type    type so_obj_tp,
    *                   subject type so_obj_des,
    *                   content_text type soli_tab,
    *                   content_hex  type solix_tab,
    *             end of email_docs.
    *      types: email_docs_t type standard table of email_docs.
    *      data: documents type        email_docs_t,
    *      documents_line like line of documents.
    *      data: soli_tab type soli_tab,
    *            soli type soli.
    *      soli = 'This is line one'.
    *      append soli to soli_tab.
    *      soli = 'And this is line two'.
    *      append soli to soli_tab.
    *      documents_line-type = 'RAW'.
    *      documents_line-subject = 'Subject'.
    *      documents_line-content_text = soli_tab.
    *      append documents_line to documents.
    *      call method lo_doc_bcs->add_attachment
    *        EXPORTING
    *          i_attachment_type    = documents_line-type
    *          i_attachment_subject = documents_line-subject
    *          i_att_content_text   = documents_line-content_text.
        catch cx_document_bcs.
    *   error handling
          exit.
        catch cx_bcom_mime.
    *   error handling
          exit.
        catch cx_gbt_mime.
    *   error handling
          exit.
      endtry.
    * create send_request
      try.
          lo_bcs = cl_bcs=>create_persistent( ).
        catch cx_send_req_bcs.
    *   error handling
          exit.
      endtry.
      try.
          lo_bcs->set_document( i_document = lo_doc_bcs ).
        catch cx_send_req_bcs.
    *   error handling
          exit.
      endtry.
    * create recipient
      if pi_recipient ns '@'.
        l_username = pi_recipient.
        translate l_username to upper case.                     "#EC *
        try.
            lo_recipient = cl_sapuser_bcs=>create( l_username ).
          catch cx_address_bcs.
    *     error handling
            exit.
        endtry.
      else.
        l_mail_address = pi_recipient.
        try.
            lo_recipient = cl_cam_address_bcs=>create_internet_address( i_address_string = l_mail_address ).
          catch cx_address_bcs.
    *     error handling
            exit.
        endtry.
      endif.
      try.
          lo_bcs->add_recipient( i_recipient = lo_recipient ).
        catch cx_send_req_bcs.
    *   error handling
          exit.
      endtry.
    * send
      try.
    *     RECEIPTS ONLY FOR ERRORS
          call method lo_bcs->send_request->set_requested_status
            exporting
              i_requested_status = 'N'.                         "#EC NOTEXT
          lo_bcs->send( ).
          commit work.
        catch cx_send_req_bcs.
    *   error handling
          exit.
      endtry.
    endform.                    "send_webform

Maybe you are looking for

  • Ipod will not update songs

    I think this question is similar to a few others but I'll post it anyway. My computer crashed and when I got it back up and installed the hardware that came with my ipod nano, all my songs were erased from my library and when I plugged my ipod in it

  • ChaRM Urgent Change Preliminary Import variant

    Hi, I am trying to change the Umode of the preliminary import program being used by an Urgent Change in ChaRM. This is the program name: /TMWFLOW/SCMA_TRORDER_IMPORT Is there a way to configure the import UMODE based on variant configuration? I know

  • Reading pdf files while generating them.

    Hi forum, I've got a database process that invokes many times the report servlet (using UTL_HTTP), in order to generate pdf files that will be stored in a directory accessible from database (appears in all_directories table). At the same time, anothe

  • Files are missing in vxfs

    As I would like to know about data recovery for vxfs file system in solaris 10 for a vxfs error.

  • Rman level0 backup failed

    Hi All, i have scheduled inc0 backup in of the tool on windows env which is backing up my db ervery sunday,but today when i checked out the log i found backup failed becaz of bellow errors...immediate reply is appretiate RMAN-00571: =================