2008 Jun 24 9:46 AM
Hi,
I have sent an email from my program.
I wanted to the status of eamil sent or not.
I know that we view it in SOST.
But I want database table where email sent status will be stored.
help
Hi,
I have sent an email from my program.
I wanted to the status of eamil sent or not.
I know that we view it in SOST.
But I want database table where email sent status will be stored.
help
2008 Jun 24 9:49 AM
The FM 'SO_DOCUMENT_SEND_API1' raises an exception if the mail couldn't be sent:
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = ls_document_data
* put_in_outbox = 'X'
* SENDER_ADDRESS = SY-UNAME
* SENDER_ADDRESS_TYPE = 'B'
commit_work = 'X'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
* SENDER_ID =
TABLES
packing_list = lt_packing_list
* OBJECT_HEADER =
* CONTENTS_BIN =
contents_txt = lt_contents_txt
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
receivers = lt_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
OTHERS = 8.
2008 Jun 24 9:53 AM
Hi praveen kumar,
welcome to sdn..
You will read from SAP table PA0006
pls see this link.
http://www.ibm.com/developerworks/lotus/library/lei-sap/
http://www.guidancetech.com/people/holland/sap/abap/
thanks
sekhar.
2008 Jun 24 10:02 AM
PA0006 only contains addresses of an employee, not the information if a message has been sent or not.
2008 Jun 24 9:55 AM
2008 Jun 24 10:02 AM
what are feilds i have to take in order to retrive the staus of email sent from table PA0006.
2008 Jun 24 10:03 AM
2008 Jun 24 10:15 AM
can u tell me what are the fields i have to take from SOES table.
I found that receipient id is present.
I think that sender's only we can find the status right.
psl help me
2008 Jun 24 10:21 AM
2008 Jun 24 10:24 AM
If you use the FM 'SO_DOCUMENT_SEND_API1' or 'SO_OBJECT_SEND' it will throw an exception if the mail couldn't be sent.
Why do you want to check the table SOES afterwards?
2008 Jun 24 10:43 AM
hi Srinivas,
I checked with table.
We can get the status from the table.
wht parameters i have to pass to get the status?
Like recepient id, which i doesnot know?
then i need to find out recepient id each timeand pass this to this table and read the status.