cancel
Showing results for 
Search instead for 
Did you mean: 

how to set mail_sender & mail_reciepient parameter

Former Member
0 Kudos

Hi,

I need to pass the organization email_id into the smartfrom.I findout that there are three parameter in the interface mail_sended ,mail_reciepient and mail_Appobj .I guess i have to use one of them but not know via which one i have to do that.

please anyone can guide me in this ?

Prem.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

In the form interface they have parameter for the mail sender.

But i didn't see use of these parameter.Already there are parameter given.I just wanted to know how i should used that.

Please in respect to these field give the answer

Anyways thanks you tried for me.

Former Member
0 Kudos

Hi prem kumar,

data:
  t_receivers type table of somlreci1
                       with header line.

if p_mail eq 'X'.
      clear t_receivers.
      t_receivers-receiver = p_mailid.
      t_receivers-rec_type = 'U'.
      append t_receivers.

 elseif p_fax eq 'X'.
      clear t_receivers.
      t_receivers-receiver = p_faxno.
      t_receivers-rec_type = 'F'.
      t_receivers-com_type = 'FAX'.
      append t_receivers.
    endif.                             " IF P_MAIL EQ 'X'

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