Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Email sent status

Former Member
0 Likes
1,479

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,329

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.

Read only

Former Member
0 Likes
1,329

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.

Read only

0 Likes
1,329

PA0006 only contains addresses of an employee, not the information if a message has been sent or not.

Read only

Former Member
0 Likes
1,329

The status is stored in the table SOST...

Read only

Former Member
0 Likes
1,329

what are feilds i have to take in order to retrive the staus of email sent from table PA0006.

Read only

Former Member
0 Likes
1,329

check in table : SOES

Read only

Former Member
0 Likes
1,329

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

Read only

0 Likes
1,329

check the fields ..

STATUS

MAILSTATUS

Read only

0 Likes
1,329

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?

Read only

Former Member
0 Likes
1,329

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.