Skip to Content
0
Former Member
Oct 22, 2008 at 10:28 AM

How to Populate Sender Id in FM SO_NEW_DOCUMENT_SEND_API1

469 Views

Hi Friends,

I am using FM SO_NEW_DOCUMENT_SEND_API1 for sending an email to the users. Though everything is working fine but I want to set the sender id.

For example any user may run the report but in sender name it should come accountspayable at the rate abc dot com

How and where I can set the sender id.

I have tried populating it in receiver list but of no use.

code of the program

-


wa_recv_list-receiver = wa_data-email. (receiver mail id)

wa_recv_list-rec_type = 'U'.

wa_recv_list-express = 'X'.

APPEND wa_recv_list TO recv_list.

CLEAR wa_recv_list.

wa_recv_list-receiver = sender.

wa_recv_list-rec_type = 'U'.

APPEND wa_recv_list TO recv_list.

CLEAR wa_recv_list.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = doc_data

document_type = 'RAW'

commit_work = 'X'

TABLES

object_content = objtxt

receivers = recv_list

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

OTHERS = 8.

Kindly help.

Pradeep