cancel
Showing results for 
Search instead for 
Did you mean: 

Sending External mail from VF03.

0 Kudos

Hi friends,

We have one output type for sending mail to external customer. When we use this output type and issue a print, the mail is going to customer email address.

I want to add a subject and body to mail that is being sent. In NACE tcode I could manage to provide the subject line for mail. But I am not able to include the body to mail.

How can I include the body to external mail.

Kindly provide the suggestions or any referance links if you have.

Regards,

madan shinde

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

In NACE, click on outptu type and select mail tiltle and texts, now click the textx button,(pencil and notepad icon), here u can maintain text of the body, when u click u will be taken to a text editor, after u maintain the text, goto header and get textname and textid and the u can use read_text to use call the text in ur program

кu03B1ятu03B9к

0 Kudos

Thanks for the reply kartik,

I mentained the text there but it is not reflecting in mail. Is there any setting or activity that I am missing ?

When I check the trace in SOST transaction I can find ''BCS->MIME_MESSAGE_GENERATE -


Signature: Switched off''.. Is this somehow related to that.

If there is any other war to add body to mail.. please suggest.

Rgds,

madan shinde

Former Member
0 Kudos

how r u sending the mail, are u using some custom coding?

0 Kudos

Hi,

I got the text object/id and I can read it in print program using read_text. But in which table/field shoud I pass this read text to appear in email body?

Rgds,

madan

Former Member
0 Kudos

currently how are u sending mail,

are u using

SO_NEW_DOCUMENT_ATT_SEND_API1 this fm?

кu03B1ятu03B9к

0 Kudos

Hi,

We are passing the internal taable to smartform and the mail send is done internaly by smartform. Look into following code extract. Here mail related data is sent using itab 'ls_composer_param'.

******************************************

DATA: ls_control_param TYPE ssfctrlop.

DATA: ls_composer_param TYPE ssfcompop.

DATA: ls_recipient TYPE swotobjid.

DATA: ls_sender TYPE swotobjid.

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

control_parameters = ls_control_param

  • mail_appl_obj =

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = space

is_bil_invoice = ls_bil_invoice

is_nast = nast

is_repeat = repeat

IMPORTING job_output_info = ls_job_info

  • document_output_info =

  • job_output_options =

EXCEPTIONS formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

******************************************

Kindly revert.

madan