‎2007 Mar 14 5:35 PM
Hi,
am using the <b>SO_NEW_DOCUMENT_SEND_API1</b> where i am sending an HTML format with obj_type = 'HTM'.
i tested it in DEV, its working fine, it sends my Messages in HTML format.
transported it to QAS, tested in QAS, now instead of message in HTML format its sending me an attachment.
Summary :
1) In DEV it sends my HTML, but appends a system text &SO_FORMAT=ASC at the end.
So how can i remove this system text and
2) In QAS it doesnt send anything but an empty attachment.
Aditya.
‎2007 Mar 14 5:43 PM
Hi Aditya,
could you please paste the code for us to review and comment on it..
Thanks
Rakesh
‎2007 Mar 14 6:26 PM
hi Rakesh,
following is the code.
-
loop at idlient.
mailrec-receiver = idlient-member_adr.
mailrec-rec_type = 'U'.
append mailrec.
endloop.
mailtxt = '<html>'.
append mailtxt.
mailtxt = '<meta http-equiv="Content-Type" content="text/html;'.
append mailtxt.
mailtxt = 'charset=utf-16">'.
append mailtxt.
mailtxt = '<p><font color="#FF0000">'.
append mailtxt.
mailtxt = 'Please do not reply to this message!...</font>'.
append mailtxt.
mailtxt = '<font color="#0000FF">'.
append mailtxt.
mailtxt = 'THIS IS CONFIRMATION OF RECEIPT OF YOUR COMPLAINT'.
append mailtxt.
mailtxt = '</font></p>'.
append mailtxt.
mailtxt = '<p>If you need to discuss your situation immediately, '.
append mailtxt.
mailtxt = 'you may contact our Quality Manager directly at : </p>'.
append mailtxt.
mailtxt = '110-009-4966<br>'.
append mailtxt.
append mailtxt.
mailtxt = '<img src="http://www.xyz.com/folder/logo.bmp"'.
append mailtxt.
mailtxt = '</html>'.
append mailtxt.
-
i tried the mailtxt = 'charset=utf-16">' part using charset=1852-1
Aditya
‎2007 Mar 14 6:39 PM
hi Rakesh,
following is the code.
-
loop at idlient.
mailrec-receiver = idlient-member_adr.
mailrec-rec_type = 'U'.
append mailrec.
endloop.
mailtxt = '<html>'.
append mailtxt.
mailtxt = '<meta http-equiv="Content-Type"
content="text/html;'.
append mailtxt.
mailtxt = 'charset=1852-1">'.
append mailtxt.
mailtxt = 'Please do not reply to this message!...'.
append mailtxt.
mailtxt = '<If you need to discuss your situation immediately, '.
append mailtxt.
mailtxt = 'you may contact our
Quality Manager directly at : >'.
append mailtxt.
mailtxt = '110-009-4966<br>'.
append mailtxt.
mailtxt = '</html>'.
append mailtxt.
-
i tried the mailtxt = 'charset=utf-16">' part using charset=1852-1
well basically i am writing all my HTML text in the HTML Tag format and storing in mailtxt,
passing this to my FM.
Aditya.
‎2008 Jun 12 7:07 AM
hi aditya,
Can u plz tell me how can i send an email with an attachment??
I have ALV report i need to send this ALV report as an attachment.
‎2007 Jun 28 8:23 AM
‎2007 Jul 12 2:07 PM
Hello.
Could you tell us how you solved the &SO_FORMAT=ASC problem?
Thanks
Kevin
‎2007 Nov 14 11:50 AM
hi Aditya,
using the FM SO_NEW_DOCUMENT_SEND_API1 to send an email in html format but in the end of the email content it is desplaying '&so_format = ASC'.
you mentioned here self answered. i am also facing the same problem could you please help me out to resolve the issue.
Thanks in advance.
send your solution to this email id <REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Mar 19, 2008 5:14 PM
‎2007 Nov 15 6:00 AM
Hi Aditya,
could u pls let me know the solution to the problem.
I am facing the same problem.
I am using the doc_type as RAW
Thanks in Advance.
‎2007 Dec 19 11:43 AM
Hi,
i have the same problem, any suggestions to resolve that ?
‎2008 Mar 19 2:36 PM
I found the solution to the problem with the added text "&SO_FORMAT=ASC" etc. In the examples found elsewhere in this forum, the same table structure was passed to both object header and contents, like this:
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = maildata
document_type = 'HTM'
put_in_outbox = 'X'
TABLES
object_header = mailtxt
object_content = mailtxt
receivers = mailrecTo remove tha trailing text, assign a different table to "object_header" instead, in my case I just left it empty (unassigned):
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = maildata
document_type = 'HTM'
put_in_outbox = 'X'
TABLES
object_header = mailhdr
object_content = mailtxt
receivers = mailrecThis takes care of the problem.
‎2008 May 20 7:50 AM
Thanks Almgren! You solved my problem. Somebody should award you points for this.
Regards,
KKR