Application Development 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: 

sending email without layout only text

Former Member
0 Kudos

Hi,

I want to send mail from sap without smartform or SAP script

o

5 REPLIES 5

naimesh_patel
Active Contributor
0 Kudos

Check my post: [Email with Formatting |http://help-abap.blogspot.com/2008/09/sapconnect-email-with-formatting.html]on my professional blog.

Regards,

Naimesh Patel

0 Kudos

Hi Naimesh,

I sending mail through HTML code , Text is going to correct email address

but i want to print dynamic values, it printing same text

*********

wa_objtxt-line = '<p> Project Name: wt_mail-project </p>'.

APPEND wa_objtxt TO t_objtxt.

wa_objtxt-line = '<p> Your time period wt_mail-stdate to wt_mail-edate has been wt_mail-text </p>'.

APPEND wa_objtxt TO t_objtxt.

wa_objtxt-line = '<p> Your productivity score for this period was wt_mail-per </p>'.

APPEND wa_objtxt TO t_objtxt.

CONCATENATE '<td>' 'This is Approved Text' '</td> </tr>' INTO wa_objtxt-line.

APPEND wa_objtxt TO t_objtxt.

Output showing as

Project Name: wt_mail-project

Your time period wt_mail-stdate to wt_mail-edate has been wt_mail-text

I need output as

Project Name: Aspenserv

Your time period 08.08.2008 to 30.08.2008 has been Approved

Thanks,

Asha

marcio_medeiros
Explorer
0 Kudos

Hi,

This function send a simple e-mail.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = doc_chng

TABLES

object_content = objtxt

receivers = reclist

EXCEPTIONS

too_many_receivers = 1

document_not_sent = 2

operation_no_authorization = 4

OTHERS = 99.

Best Regards

Marcio Medeiros

Former Member
0 Kudos

Hi Asha,

You can FM-SO_NEW_DOCUMENT_SEND_API1 to send mails from SAP. Program RKSCMAMAIL has information on how to use this Function moddule.

Former Member
0 Kudos

Thanks