cancel
Showing results for 
Search instead for 
Did you mean: 

Email generated through a smartform

Former Member
0 Kudos

Hi Experts,

My requirement is to send a email with few lines of text to the body of the email along with the smartform.

As of now I can able to pass the subject line(SSFCOMPOP-TDTITLE) of the email. But I couldn't find a option to pass the body of the email

Can you throw light on how a body can be passed to the email when it is generated through a smartform.

Thanks & Regards,

Arun.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Please check the link given below:

I think it will be helpful for you .

Thanks & Regards,

Sarita Singh Rathour

Former Member
0 Kudos

Hi arun,

data :
  w_msg      type i,                   " Message length
data:
    t_message type standard table
              of solisti1
            with header line.


 *" Body of the mail..................................................
    clear t_message. refresh t_message.
    t_message = 'This is a test mail'.
    append t_message.
    t_message = 'Thanks and Regards'.
    append t_message.
    t_message = 'Sravanthi'.
    append t_message.
    describe table t_message lines w_msg.


 call function 'SO_DOCUMENT_SEND_API1'
      exporting
        document_data              = w_docdata
        put_in_outbox              = 'X'
        sender_address             = w_sender
        commit_work                = 'X'
      tables
        packing_list               = t_packing_list
        contents_bin               = t_objbin
        contents_txt               = t_message   --> Pass the internal table here 
        receivers                  = t_receivers
      exceptions
        too_many_receivers         = 1
        document_not_sent          = 2
        document_type_not_exist    = 3
        operation_no_authorization = 4
        parameter_error            = 5
        x_error                    = 6
        enqueue_error              = 7.

Regards,

Sravanthi

Former Member
0 Kudos

Hi Sravanthi,

Thanks for your reply.

But my requirement is little different.

When the smartform function module is called in that itself you can send a email to the concerned people. There is a option to give a subject line for the email, but doesn't have a option for body of the mail.

My question Is there any ways to populate the body of the email while calling the smartform function module.

Hope you understood my question.

Thanks & Regards,

Arun.