‎2012 Nov 21 6:37 AM
Hi ABAP experts,
I am sending email to customer based on their due date for payment reminder. On some due date the same customer having more than one order. so I am sending All the content in one same mail to that customer ( using loop in program). I am using SO_NEW_DOCUMENT_SEND_API1 FM for my program. Currently My mail content is like below. And also attached Screen shot for your reference. I want modify my mail content. Please Help me. Its very important for me friends.
Current Mail content:
Dear Customer
Your Billing Document Number is :0094045722 The amount is.475360.00
The Due Date fall on 14.04.2012
Kindly arrange for the payment on due date
Ignore if payment already made
Thank you
Dear Customer
Your Billing Document Number is :0094045723 The amount is.51765.00
The Due Date fall on 14.04.2012
Kindly arrange for the payment on due date
Ignore if payment already made
Thank you
Dear Customer
Your Billing Document Number is :0094045724 The amount is.254684.00
The Due Date fall on 14.04.2012
Kindly arrange for the payment on due date
Ignore if payment already made
Thank you
I want modify mail content like this :
Dear Customer,
Billing Order Number Amount Due Date
0094045722 475360.00 14.04.2012
0094045723 51765.00 14.04.2012
0094045724 254684.00 14.04.2012
Thank You For Placing Order,
Regards,
Sales Division
-----------------------------------------------------------
Thanks and Regards.
Linganathan.K
‎2012 Nov 21 6:48 AM
Hi,
It is better to use this FM SO_NEW_DOCUMENT_ATT_SEND_API1 apart from user FM.
Useing this FM you can send the mail as table format using the HTML tags . It's look and feel very nice.
use this FM SO_NEW_DOCUMENT_ATT_SEND_API1.
for refernece use below link.
http://www.slashsap.com/2011/12/send-mail-with-html-format-in-sap-abap.html
i hope it will solve your probelm.
‎2012 Nov 21 6:48 AM
Hi,
It is better to use this FM SO_NEW_DOCUMENT_ATT_SEND_API1 apart from user FM.
Useing this FM you can send the mail as table format using the HTML tags . It's look and feel very nice.
use this FM SO_NEW_DOCUMENT_ATT_SEND_API1.
for refernece use below link.
http://www.slashsap.com/2011/12/send-mail-with-html-format-in-sap-abap.html
i hope it will solve your probelm.
‎2012 Nov 22 9:28 AM
Dear Kiran Jasti,
Thank you for your help. I modified my program like You specified in link. But in that 3 line items only coming. Suppose if i have 5 rows . 3 Only coming in body of the message. But in attachment 5 Rows coming. Why this attachment coming. I dont want any Attachments.
Thanks and Regards,
Linganathan.K
‎2012 Nov 21 6:48 AM
Check this below link
http://saptechnical.com/Tips/ABAP/email/Anyformat.htm
Format the body in the string and append to WA_CONTEXT accordingly...
hope this helps..
‎2012 Nov 21 7:05 AM
Hi,
Pls use a smartform to print the data in that particular format.Pass the output of the smartform into
FM SO_NEW_DOCUMENT_ATT_SEND_API1.
Regards,
chandu.
‎2012 Nov 21 7:22 AM
Dear Friends,
I have attached my sample program for mail content.
Hints:
Details is the my content of mail. Please teach me what i have to change in my code.
Regards,
Linganathan
‎2012 Nov 21 10:07 AM
Dear friends,
Please suggest me any suitable idea .
Thanks and Regards,
Linganathan
‎2012 Nov 22 9:33 AM
Hi linganathan.
It is a formating place. as you are formatting above via Concatenating. Remove the HORIZONTAL_TAB Logic and Place a '|' symbol (Just above your enter Key)
if you want the data in a table kind of thing. As I told earlier it is how you format things.. Change the way you concatenate.
Hope this helps
‎2012 Nov 22 10:34 AM
Have a look at this
http://scn.sap.com/message/13637463#13637463
Create your mail as html table.
Here is some more info about html.