Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Email content format (SO_NEW_DOCUMENT_SEND_API1)

former_member242166
Participant
0 Likes
1,848

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

1 ACCEPTED SOLUTION
Read only

KiranJ
Active Participant
0 Likes
1,652

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.

8 REPLIES 8
Read only

KiranJ
Active Participant
0 Likes
1,653

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.

Read only

0 Likes
1,652

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

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,652

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..

Read only

Former Member
0 Likes
1,652

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.


Read only

former_member242166
Participant
0 Likes
1,652

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

Read only

former_member242166
Participant
0 Likes
1,652

Dear friends,

Please suggest me any suitable idea . 

Thanks and Regards,

Linganathan

Read only

0 Likes
1,652

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

Read only

rosenberg_eitan
Active Contributor
0 Likes
1,652

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.

http://www.w3schools.com/html/html_tables.asp