2007 Apr 13 10:27 AM
Hi,
Mr. sachin pardeshi gives a good answer thanks
But now the new question.
I dont know how to fill Field maildata and Table mailtxt.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata  ( fill ??? )
document_type = 'RAW'
put_in_outbox = 'X'
tables
object_header = mailtxt  ( fill ??? )
object_content = mailtxt ? ( fill ??? )
receivers = mailrec
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 <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Any idea?
Thanks!
Regards,
Bertram
2007 Apr 13 10:30 AM
this is nothing but mail Body data and Contents which u are trying to pass.
Regards
prabhu