Skip to Content
0
Former Member
Jan 20, 2012 at 12:15 PM

Not able to send mail

24 Views

Hi,

I have a requirement to send the internal table data by mail, the final data is ready in Internal table and i have passed the data to the FM SO_DOCUMENT_SEND_API1'.

No entry exixts in SOST even after the FM is success.

Below is the logic i have implemented.

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

document_data = wa_document_data

sender_address = wa_sender_address

sender_address_type = 'SMTP'

TABLES

packing_list = i_pack

contents_txt = i_email

receivers = i_reclist

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.

IF sy-subrc is INITIAL .

MESSAGE i021(zaa) WITH 'Success'.

ELSE.

MESSAGE i021(zaa) WITH 'Failure'.

ENDIF.

ENDIF.

Please guide me on this.

Thanks.

Siva.

Moderator Message: Asked and answered many times. Please search before posting.

Edited by: kishan P on Jan 20, 2012 5:54 PM