Formating the mail body
Hi to all
Is it possible to format the mail body that we create using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' like a rich user interface?
Kindly suggest.
Thanks & Regards
Vipin
Its possible to give html tags in the body internal table thereby make it a rich user interface. For html you may need to use document type as HTM.
I 've given an example in this link. Please have a look.
Re: Bold, Colors in mail - Urgent
Rgds,
TM.
Similar Messages
-
Formatting the mail content in the workflow email
Hi,
In a workflow i am displaying a currency value.I want to format the currency value in the output. For eg: currently in the workflow email a value is displayed as 20000.0000 but i want it to display as 20,000.00 .
I have written the code in the method of the business object where i fetch this value such that the value is changed to the required format and is placed in the container element. The value of this container element is then displyed in the mail body.
I checked and the value does change to the required format and it is placed in the container element also in the required format(i.e 20,000.00) But only in the email output the formatting is lost and it is displayed in the original format(i.e 20000.0000).
Is there any other way to format the output of the currency field. I tried changing the data type to a character string but then the comma does not appear on the output.
Thanks!
Regards
ArchanaHi,
amount = 20000.0000
mail_amount is the variable that you'll use in mail body
p_curr is the currency you'll use.
WRITE amount TO mail_amount CURRENCY p_curr RIGHT-JUSTIFIED. -
How to get the content of message in the mail body
Hi,
Can anyone suggest me to get the message content as the mail body using messagetTransformation bean????Hi
In the Receiver Mail Adapter use these settings
Message Protocol:XIPAYLOAD
and tick on Use mail package.
Gt back if you have more doubts
Thanks -
How to sending simple text in the mail body
Hi friends,
How to send simple text in the mail body through ABAP code
plz send me the related code and setting for that mail.
Thanks&Regards,
Srinivastry this...
FORM send_file_as_email_attachment .
DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA : i_body TYPE soli_tab WITH HEADER LINE.
DATA: it_attach LIKE it_display1 OCCURS 0 WITH HEADER LINE.
DATA: doc_chng LIKE sodocchgi1.
DATA: tab_lines LIKE sy-tabix.
DATA: att_lines TYPE i.
DATA: lv_lines TYPE i.
DATA: file TYPE string.
data: g_datum like sy-datum.
data: g_datum1(10) type c.
DATA: len TYPE n.
LOOP AT it_email.
CLEAR : objpack,
objhead,
objbin,
objtxt,
reclist.
REFRESH: objpack,
objhead,
objbin,
objtxt,
reclist.
g_datum = sy-datum - 1.
concatenate g_datum6(2) '.' g_datum4(2) '.' g_datum+0(4) into
g_datum1.
doc_chng-obj_descr = 'Aged Stock more than 45 Days'.
CONCATENATE 'Aged Stock more than 45 Days' '-' it_email-vkbur INTO
doc_chng-obj_descr.
CONCATENATE 'Please find enclosed Aged Stock Details ( >45days ) report as on'
g_datum1
INTO objtxt-line SEPARATED BY space.
APPEND objtxt.
objtxt-line = ' '.
APPEND objtxt.
objtxt-line = 'Regards'.
APPEND objtxt.
objtxt-line = 'LIS SAP Projects'.
APPEND objtxt.
objtxt-line =
'PS: Pls send feedback for futher improvements to SAP office.'.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'TXT'.
objpack-obj_name = 'Run_prog'.
objpack-obj_descr = 'Agestock.txt'.
lv_lines = tab_lines.
APPEND objpack.
*CONCATENATE 'Plant' 'Material Number' 'Qty(More than 45days)'
*'Amount' INTO
it_display SEPARATED BY space.
append objbin.
clear: objbin.
CLEAR:it_display2.
REFRESH it_display2.
it_display2-werks = 'Plant|'.
it_display2-matnr = 'Material Number'.
it_display2-qty = '|Qty > 45 days'.
it_display2-amount = ' |Amount'.
APPEND it_display2.
it_display2-werks = ''.
it_display2-matnr = ''.
it_display2-qty = ''.
it_display2-amount = ''.
APPEND it_display2.
CLEAR : it_display2.
sort it_display1 by amount descending.
LOOP AT it_display1 WHERE werks = it_email-vkbur.
AT FIRST.
*CONCATENATE 'Plant ' 'Material Number' 'Qty(More than 45days)'
*'Amount' INTO
objbin-line SEPARATED BY space.
append objbin.
clear: objbin.
ENDAT.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = it_display1-matnr
IMPORTING
output = it_display1-matnr.
it_display1-qty = TRUNC( it_display1-qty ).
MOVE-CORRESPONDING it_display1 TO it_display2.
APPEND it_display2.
CLEAR:it_display1,it_display2,objbin.
CLEAR:it_display1.
ENDLOOP.
objbin[] = it_display2[].
DESCRIBE TABLE objbin LINES tab_lines.
objhead = 'Suug'.
APPEND objhead.
objpack-transf_bin = 'X'.
objpack-head_start = 3.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
objpack-obj_name = 'Run_prog'.
objpack-obj_descr = 'Agestock.txt'.
APPEND objpack.
reclist-receiver = '[email protected]'.
reclist-rec_type = 'U'.
APPEND reclist.
=====================================================================
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = doc_chng
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
CLEAR : it_email.
ENDLOOP.
ENDFORM. "send_mail
Message was edited by:
Sugumar Ganesan -
Hi All
I have a labview application that send mail every hour automatically.
But actually the mail has to be decoded from the web server(by another application).But now when that application decode the data in the mail(that is send by labview application)its getting some funny characters inside that can not be detected by the decoding application
(When open the mail no problem.)But actually our goal is to decode the mail from the web server.
Why the extra characters are appearing when decoding from the server?Is it because of the HTML format?
Is there option to send the mail in plain text format(not like attachment)?
In outlook we can change the setting (tools->options->send->mail sending format->....here we can set as HTML format/Plain Text format)
Like that at the sending time can i chenge the sending option as plain text format in my labview application?
Thanks...smercurio_fc wrote:
Then it sounds to me like this other application is not decoding the attachment correctly, especially if you looked at the attachment yourself after you received it and verified it's correct.
No, no, smercurio. This is charcter encoding here. In older versions of LabVIEW you could specify what character encoding to use when sending an email through the SMTP VIs. But that gave problems since people in certain locales used certain characters that where not transfered right when the wrong encoding was specified, and that encoding stuff is not understood by most people at all, so the wrong selected encoding was rather the rule than the exception. In newer versions of LabVIEW do the SMTP VIs handle the encoding automatically based on the currently used locale on the system.
This change is documented in the Upgrade Notes of LabVIEW and probably happened around LabVIEW 7.1 or 8.0.
A decent mail client will recognize the encoding and convert it back to whatever is necessary before presenting it to the user. The OPs posters server application obviously isn't a smart mail client but probably just some crude text file parser that has no notion of proper mail character encoding and how to deal with it.
I would suppose that there is a chance to dig into the SMTP VIs itself and try to manipulate or disable that encoding altogether in there but that may open a whole can of worms somewhere else. The proper way would be to process the incoming mail by a character encoding aware mail client before passing it to the text parser. On Unix setting up something like this would be fairly trivial.
Rolf Kalbermatter
Message Edited by rolfk on 01-23-2008 10:21 AM
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
I need to put hyperlink in th mail body.I am using the following lines to display the hyperlink........................
<a href = xyz.com > test </a>
But the problem is that instead of displaying the test hyrerlink it is showing me :-
<a href = _xyz.com_ > test </a>.
How to fix this problem.Here it is
<a href="www.xyz.com"> test </a>
that's it.
Regards,
IA
Edited by: Imthiaz Ahmed on Apr 9, 2008 4:55 PM -
How can I get the mail body of the start point mail
Hi,
I am using 'MailStartPoint' activity to fetch mails using POP3 protocol. It is fetching the mail successfully. Now, how can I read the different parts of mail message such as Subject, Body in variables.
Thank You,
Hali Gerorge.You need to set data types values as below for reading the mail.
%SUBJECT%
%BODY%
%HEADER%
%SENDER%
Check this link for more details - http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=001463.html
Also see "Use an e-mail start point" @ http://www.adobe.com/devnet/livecycle/videotraining.html
~ Varun -
Receiver Mail Adapter: Formatting the mail content
Dear All,
I'm using a receiver mail adapter. I would like to format the content of the mail using the contents of the XML message. For example:
XML Message
<Order>
<OrderID>1234</OrderID>
<CustomerName>Sandeep Joseph</CustomerName>
<NetValue>7467.99</NetValue>
<Link>http://locahost:7000?OrderID=1234</Link>
</Order>
Mail Content
Dear Approver,
Please approve the Order - 1234, Customer - Sandeep Joseph
Link: http://locahost:7000?OrderID=1234
Thanks,
Are there any modules which would help formatting to this extend? Or any other mechanism?
Thanks,
SandeepThe easiest means is to use XSL mapping and create the Content Type as HTML and emded the cotent within HTML tags.
One such example is shown by Praskash in this blog,
/people/community.user/blog/2006/09/07/email-reporting
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
If you use the Mail Package option then you can also wite a UDF in your mapping that will populate the content field. For every newline you can use the java new line \n and so on.
Regards
Bhavesh -
Hi
i am doing file to mail scenario. i need to add link in the mail how can we do this. i tried TransformBean. but it's not working could u please help me
Thank you
Regards
SundherHi Sundher,
Web Blogs on File Scenario:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/community.user/blog/2006/09/07/email-reporting
Check the following links:
these links should help you clear your doubts regarding Configuring a Receiver Mail Adapter and possibly find the cause for your error.
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8c/607fe4756b654ab9f420097c29f6e9/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
Ignore the Image part and use this for your file to mail:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
Hope it will work for you
Amaresh -
I am having trouble accessing my mails. Mails appear in inbox,but preview not available. Not able to read mails.
Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go.
-
I want to convison the mail body 's Content-Transfer-Encoding to base64
Return-Path: <[email protected]>
Received: from tobacco ([130.130.160.76]) by webapp.tobacco
(Netscape Messaging Server 3.6) with ESMTP id AAA70AC;
Tue, 6 Nov 2001 18:26:28 +0800
type: ���� intra@ius_center 1670
subject: ������gggggg��
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Tue, 6 Nov 2001 18:26:28 +0800
Message-ID: <[email protected]>
From: [email protected]
<center><h1>����</h1><TABLE BORDER=1 CELLPADDING=5 width=90%%>
<TR><TD BGCOLOR=#CCCC99 width=74 valign=top><STRONG>��������</STRONG></TD><TD BGCOLOR=#EEEEEE>gggggg</TD> </tr>
<TR><TD BGCOLOR=CCCC99 VALIGN=TOP><STRONG>�� �� ��</STRONG></TD><TD BGCOLOR=#EEEEEE>������ ������������������</td></tr>
<tr><TD BGCOLOR=#CCCC99 VALIGN=TOP><STRONG>�� �� ��</STRONG></TD><TD BGCOLOR=#EEEEEE >������ ������������������</td></tr>
<tr><TD BGCOLOR=#CCCC99 VALIGN=TOP><STRONG>��������</STRONG></TD><TD BGCOLOR=#EEEEEE >fdsf</td></tr></TABLE>Me too. I want to find out what encoding a particular $INPUT_FILE part is when I need to parse it in my conversions script.
-
Prob in getting Mail body for the standard tcode F150(Dunning).
Hello all,
I am using F150 for the dunning notice print out.After seeing the display of the dunning notice once we come back it populates a popup window where it asks to send the mail to the particular mailid or not. I have used the BTE --- SAMPLE_PROCEE_00001040 and copied it as z function module and customised according to my requirement in order to get the mail id of the customer in the pop up.My mail is going to the customers mail id properly only but my prob is that we are not able to get any mail body for that particular mail.Where can we add the mail body text to that mail in the standard tcode f150.can any one suggest is it possible or not.
Regards,
Pavani.
Edited by: Pavani Rayappureddi on Aug 11, 2009 11:21 AMsolved my self.
added C_ITCPO-TDTITLE = 'Pending Receivables Statement-XXX GROUP'.
in the bte code. -
How do I format the text in mail messages?
I receive some mail messages that extend well beyond the screen and I have to scroll a long ways to finish reading one line. Is there any way to format the mail to automatically fold these long lines so that i can read them without so much scrolling?
Thanks for any help.Copy paste the content of the message to Textwrangler from http://www.barebones.com/
Then use its word-wrap options. -
Mail body with attachments in the demo mail
hi,
i m using the demo mail to create the mail with attachments.
i had attach the file from database and mail to the receipts but when i want to send any text in the body then the text is also goes as the attachment.
i need to send the text in the mail body . can this is possible.by the way i had found the solution
and if u do not know the answer ten please do not wate my and u r time. -
Create hyperlink for reply to in mail body while sending email.
Hi All,
We have a requirement where we need to create an hyperlink for reply to in the mail body.
We have implemented entire functionality using CL_BCS classes and everything is working fine.
Only problem we have is when we give document type as HTM instead of RAW then entire formatting of mail body gets disturbed although we get the hyperlink.
Is there any way where we can send the mail in html format using CL_BCS,CL_DOCUMENT_BCS ?
KR Jaideep,Hi ,
Please find the code below I am using to make the hyperlink. Do I need to fill the entire mail body using HTML Tags ? If yes, then I guess it will increase the complexity of program as the mail content will vary from one mail to another depending upon whether different invoice documents have text maintained in them.
lwa_text = '<html>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '<body>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = text-012.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
CONCATENATE '<a href="mailto:'
lv_receiver
'">'
lv_receiver
'</a>'
INTO lwa_text.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '</body>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '</html>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
TRY.
CALL METHOD cl_document_bcs=>create_from_text
EXPORTING
i_text = li_text
i_documenttype = 'HTM'
i_subject = 'Test for hyperlink'
i_importance = '1'
i_sensitivity = 'P'
RECEIVING
result = lref_document_bcs.
CATCH cx_document_bcs .
ENDTRY.
Maybe you are looking for
-
Blackberry 10 OS software upgrade issues (10.3.1.1565)
I've upgraded my OS to 10.3.1.1565 and I've somehow lost the 'Speed Dial' function? The keypresses don't work for the previuous speed dial contact and 'Spped Dial' no longer appears in my 'Settings' The speed dial 'star' appears in the centre of the
-
I searched adn tried the Linksys FAQ to no avail to get an answer to the subject question. Is there any way to verify who is actually using or trying to attempt use of your wireless network, if so, where do I locate and view this information? I just
-
Macbook Pro Still Crashes After Format, No Idea What to Do next
Hello. I have a 13-inch, Mid 2010 Macbook Pro. Here's my current Software Version: Software OS X 10.9.4 (13E28) I'm rather stumped right now. Prior to my reformat, I had very little installed. I use my computer for work on Wordpress managed sites, I
-
I have a problem to connect with FaceTime. I am using OS X 10.9.1 on a Mac PowerBook which is 4 weeks old. I can connect on iPhone but not from my computer. Does anyone have a similar problem???
-
[SOLVED] MPD: Failed to create socket
I've been attempting to get MPD working today and I'm rather stumped here. I got it to start out of its default directory, however, that denied it access to my music folder. So, I switched all of that to a ~/.mpd folder as the wiki page instructed m