Want to send a text in BOLD via email

Hi all,
I want to send a text in BOLD via email,
Right now i ma using the Function Module: SO_NEW_DOCUMENT_ATT_SEND_API1 for sending attachments via mail.
But i do not know how i can send some text in BOLD.
<b>****NOTE: I want the text in BOLD is in the BODY of the mail</b>
I checked the Import and tables parameters inthat FM.But there is no option in those parameters.
So, can any one plz help me to solve this issue.
Thanks&Regards,
Srikanth T
Message was edited by:
        srikanth T
Message was edited by:
        srikanth T

Convert them into smartform or SAP Script from report then convert into pdf format and then send an email ...
See the example code :
report zemail.
data: itcpo like itcpo,
      tab_lines like sy-tabix.
Variables for EMAIL functionality
data: maildata   like sodocchgi1.
data: mailpack   like sopcklsti1 occurs 2 with header line.
data: mailhead   like solisti1 occurs 1 with header line.
data: mailbin    like solisti1 occurs 10 with header line.
data: mailtxt    like solisti1 occurs 10 with header line.
data: mailrec    like somlrec90 occurs 0  with header line.
data: solisti1   like solisti1 occurs 0 with header line.
perform send_form_via_email.
      FORM  SEND_FORM_VIA_EMAIL                                      *
form  send_form_via_email.
  clear:    maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
  refresh:  mailtxt, mailbin, mailpack, mailhead, mailrec.
Creation of the document to be sent File Name
  maildata-obj_name = 'TEST'.
Mail Subject
  maildata-obj_descr = 'Subject'.
Mail Contents
  mailtxt-line = 'Here is your file'.
  append mailtxt.
Prepare Packing List
  perform prepare_packing_list.
Set recipient - email address here!!!
  mailrec-receiver = '[email protected]'.
  mailrec-rec_type  = 'U'.
  append mailrec.
Sending the document
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = maildata
            put_in_outbox              = ' '
       tables
            packing_list               = mailpack
            object_header              = mailhead
            contents_bin               = mailbin
            contents_txt               = mailtxt
            receivers                  = mailrec
       exceptions
            too_many_receivers         = 1
            document_not_sent          = 2
            operation_no_authorization = 4
            others                     = 99.
if sy-subrc = 0.
submit rsconn01 with mode = 'INT' and return.
endif.
endform.
     Form  PREPARE_PACKING_LIST
form prepare_packing_list.
  clear:    mailpack, mailbin, mailhead.
  refresh:  mailpack, mailbin, mailhead.
  describe table mailtxt lines tab_lines.
  read table mailtxt index tab_lines.
  maildata-doc_size = ( tab_lines - 1 ) * 255 + strlen( mailtxt ).
Creation of the entry for the compressed document
  clear mailpack-transf_bin.
  mailpack-head_start = 1.
  mailpack-head_num = 0.
  mailpack-body_start = 1.
  mailpack-body_num = tab_lines.
  mailpack-doc_type = 'RAW'.
  append mailpack.
  mailhead = 'TEST.TXT'.
  append mailhead.
File 1
  mailbin = 'This is file 1'.
  append mailbin.
  describe table mailbin lines tab_lines.
  mailpack-transf_bin = 'X'.
  mailpack-head_start = 1.
  mailpack-head_num = 1.
  mailpack-body_start = 1.
  mailpack-body_num = tab_lines.
  mailpack-doc_type = 'TXT'.
  mailpack-obj_name = 'TEST1'.
  mailpack-obj_descr = 'Subject'.
  mailpack-doc_size = tab_lines * 255.
  append mailpack.
*File 2
  mailbin = 'This is file 2'.
  append mailbin.
  data: start type i.
  data: end type i.
  start = tab_lines + 1.
  describe table mailbin lines end.
  mailpack-transf_bin = 'X'.
  mailpack-head_start = 1.
  mailpack-head_num = 1.
  mailpack-body_start = start.
  mailpack-body_num = end.
  mailpack-doc_type = 'TXT'.
  mailpack-obj_name = 'TEST2'.
  mailpack-obj_descr = 'Subject'.
  mailpack-doc_size = tab_lines * 255.
  append mailpack.
endform.
With PDF Attachment:CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'Z_TEST'
IMPORTING
fm_name = v_fname.
CALL FUNCTION v_fname
EXPORTING
control_parameters = x_ctrl_p
IMPORTING
job_output_info = x_output_data.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 134
IMPORTING
bin_filesize = v_size
TABLES
otf = x_output_data-otfdata
lines = it_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_dst = 255
TABLES
content_in = it_lines
content_out = it_soli
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
CALL FUNCTION 'FUNC_CONVERT_DATA_ODC01'
EXPORTING
iv_byte_mode = 'X'
TABLES
it_data = it_lines
et_data = it_table.
*-----To caluculate total number of lines of internal table
DESCRIBE TABLE it_table LINES v_lines.
*-----Create Message Body and Title and Description
it_mess = 'successfully converted smartform from otf format to pdf' .
APPEND it_mess.
wa_doc_data-obj_name = 'smartform'.
wa_doc_data-expiry_dat = sy-datum + 10.
wa_doc_data-obj_descr = 'smartform'.
wa_doc_data-sensitivty = 'F'.
wa_doc_data-doc_size = v_lines * 255.
APPEND it_pcklist.
*-----PDF Attachment
it_pcklist-transf_bin = 'X'.
it_pcklist-head_start = 1.
it_pcklist-head_num = 0.
it_pcklist-body_start = 1.
it_pcklist-doc_size = v_lines_bin * 255 .
it_pcklist-body_num = v_lines.
it_pcklist-doc_type = 'PDF'.
it_pcklist-obj_name = 'smartform'.
it_pcklist-obj_descr = 'smart_desc'.
it_pcklist-obj_langu = 'E'.
it_pcklist-doc_size = v_lines * 255.
APPEND it_pcklist.
*-----Giving the receiver email-id
CLEAR it_receivers.
it_receivers-receiver = [email protected]'.
it_receivers-rec_type = 'U'.
APPEND it_receivers.
*-----Calling the function module to sending email
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_data
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_pcklist
contents_txt = it_mess
contents_hex = it_table
receivers = it_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.

Similar Messages

  • My deleted contacts still show up when I want to send a text message

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an I get rid of that

    This is a big problem!!!!!! Deleting is deleting!
    I'm surprised more people aren't annoyed by this bizarre Apple tech problem.
    I love my Apple iPhone, but...
    This problem is enough for me not to buy another iPhone :(
    This should be simple to solve, Apple...right???????????????????
    Dear Apple, PLEASE FIX this BUG in NEXT UPDATE asap !!!!!!!!!!!!!!!!
    Most appreciated.

  • HT4623 My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. 

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message.  How an

    My deleted contacts still show up when I want to send a text message. But when I go to my address book there not there only when I want to send a text MSG there name comes up and if I select them it only show there number not name in the message. How an I get rid of that

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • Is there a way to send a message with a photo attached using imessages. I am not able to send a photo to one of my contacts because I am sending the contact a message text messages. I don't want to send contacts text messages. I want to send them iMe

    Is there a way to send a message with a photo attached using imessages. I am not able to send a photo to one of my contacts because I am sending the contact a message text messages. I don't want to send contacts text messages. I want to send them iMessages.

    Kolyei, sorry for the late reply.
    Have your brother create a contact in his phone for himself. Inside his own contact, have him add his phone number and his iCloud address.
    Settings > Messages > Send & Receive Have your brother select both his phone number and email addresses where he would like to receive iMessages.

  • When typing the name of the contact I want to send a text message to, names from my contact list no longer pop up as suggestions. Can anyone help me with this?

    When typing the name of the contact I want to send a text message to, names from my contact list no longer pop up as suggestions. Can anyone help me with this?

        There's always a way to reset the device jmn33! Thanks for keeping us in the loop. To process a full reset/restore on the device please visit http://vz.to/12TLCsR. Please keep us posted once this is completed, thanks!
    MatthewS_VZW
    Follow us on Twitter @VZWSUPPORT

  • When trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    when trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • Sender in payment advice notes Via Email

    Hi, All,
    Is there any body know how to set up an specific sender in payment advice notes Via Email? Sounds like the e-mail-address of the sender always corresponds to the current user. Is there any way to set it as a pre defined email address? Thanks.
    Meiying

    Hi,
    If you want to have the same E-mail address given on the form, then I can advise.
    The one e-mail address can be put in the address detail field or the heather as a fix text,
    so the same will be displayed to them every time.
    We had the same problem and this was the easiest way to get it done.
    Maybe this helps to you.
    Good luck!
    Regards,
    Endre

  • 2 days ago I was able to manually send my text messages to my email in box. Now I can't.. any ideas?

    2 days ago I was able to manually send my text messages to my email in box. Now I can't.. any ideas?
    I was always able to go into the particular text that I wanted to save. Press on the text and it would give the option of either copy, more or speak.  I would click more and on the far left side the text would be checked and I was able to click and check multiple texts within. Once I had selected what I wanted to send to my email account. I would click on the arrow on the bottom right side and a new screen would come up I would tap within and all the text messages that I checked would appear and I would then enter my email address and hit the send and it would appear in my email send box.  NOW I CAN”T DO THIS.. I have been on the phone with Apple 3 times with no reason… Anyone have suggestions?
    Thanks,
    Phone Issues2013

    Without knowing what settings you are currently using, its impossible to say what has gone wrong.
    These are the 2 (different sets of) settings Apple provides:
    http://support.apple.com/kb/HT5330
    http://support.apple.com/kb/HT4864

  • One PM wants to be able to have notifications (via email) for any timesheet approvals etc.

    One PM wants to be able to have notifications (via email) for any timesheet approvals requests /changes etc. But the other PMs do not want notifications via email, can i set this up for one PM only or is it set by group only?

    Unfortunately as Sachin stated, there is no easy (meaning by configuration) way to send email alert for timesheet.
    Another way would be to create a SSRS report and send it by email using the
    out of the box subscription feature of SSRS.
    http://msdn.microsoft.com/en-us/library/ms160334(v=sql.105).aspx
    Please also refer to this similar thread:
    http://social.technet.microsoft.com/Forums/projectserver/en-US/a2112387-8f29-40de-a6a7-692a94d7715f/mail-alerts-with-attachments-in-project-server-2010?forum=projectserver2010general
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Adding  prompts dynamically and then send the results to users via email

    Hi,
    We have to schedule the reports for auto delivery to users at a specific time period. Please, tell me the mechanism to schedule them and how to assign prompt values to them. Currently, the reports are run by users by selecting prompts from the dashboard. If we schedule them, we will have to add some of these prompts dynamically and then send the results to users via email.
    Thanks in advance!

    Hi,
    I haven't tested it myself...but may be the following steps can help you.
    Fill some session variables depending on the the name of the user who logs in (this can be done easily be creating different session variables and put some executing order in it)
    Then you use these session variables as default values for your prompts. So the report will be executed making use of this default values.
    And by scheduling your ibot..you can send it by mail.
    I don't know if it's this what you're looking for...probably you have to base your prompt values depending on the users that are selected in your ibot?
    Hope it can help y ou in some way or another...
    KR,
    A

  • Why does my phone send a text message to an email address, Why does my phone send a message to an email address

    Why does my phone send a text message to an email address

    settings - message - send&receive - make sure your cell is the default
    then starte a new converstation from - your cell number

  • I want to send the text message on Mac.

    Christmas is coming. I have to send my friends blessing messages.
    There are some interesting messages on web that I want to save them to my friends.
    I don't want to type them on my Samsung one by one.
    If I can send the text msessage on Mac, that's would be nice!
    Can it will be come true?

    You are on iPhone forum.
    For mac questions and results you should post it in the Mac forum.

  • Send Attachment Files Of MM03 via email

    Dear Experts,
    I have requirement of send Attachment files of MM03 transaction Via Email.
    Example.
    Go to TCODE MM03.
    Select Views:  Basic Data1 and Basic Data 2.
    Click on GOS (Generic Object Services) where you find Attachment List.
    I want to send that PDF files Via Email.
    Please tell me how I can read that file and send via Email as attachment.
    Thank you

    Hi
    1. Readout the GOS  FM: BDS_GOS_CONNECTIONS_GET  > make list of Attachments...
    2. Read the object:    FM: SO_OBJECT_READ 
    3. Download it into a Temp directory:   FM: SO_OBJECT_DOWNLOAD
    4. Upload into itab:    cl_gui_frontend_services=>gui_upload
    5. Put Table with text into Email.. & send... FM: SO_NEW_DOCUMENT_ATT_SEND_API1
    6. delete Temp file
    that was my way....
    Robert

  • How do i send a link or page via email with firefox?

    i am new to firefox. had internet explorer for a long time. when i found a site on the internet that i wanted to share with a friend, there were choices somewhere on the menu bar or where the tabs are that said "send link via email" and "send page via email". when i selected one of these, a new email would open in yahoo with the link or page in the body, and i could send this to any contact. can't find these options here. please help! thank you!

    There is an option to "Send Link..." in the File menu. Firefox does not have a built-in send page by email option.

Maybe you are looking for