Skip to Content
avatar image
Former Member

how to set mail_sender & mail_reciepient parameter

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 30, 2008 at 07:04 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2008 at 11:15 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded