Skip to Content
0
May 09, 2007 at 10:30 AM

sending mail to distribution list

14 Views

HI guys,

Please look at the coding below..

l_wa_recieve-receiver = 'nazeerdist@pmi.com'. " this is the distribution list id "with number of mail ids inside it

l_wa_recieve-rec_type = 'C'. "shared dis list

APPEND l_wa_recieve TO l_it_recieve.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = "ERROR'

document_type = 'DLI'

put_in_outbox = c_x

commit_work = c_x

TABLES

object_content = l_it_content "this table contains the body of email

receivers = l_it_recieve " this is above

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.

Can you just tell me whether it works fine.. And if it is correct how much time will it take to get email in my respective email address..

I have run this FM by just giving my mail id (not distribution list just giving doctype = 'RAW instead of DLI)

The FM ran sucessfully without any errors , But I didnot receive any mail in my mail Inbox..

Can you please help me how to sort it out getting mail in less time..

Points will be rewarded

regards,

nazeer