10-05-2014 4:56 AM
Hi,
I am facing a strange issue while sending mail with same subject. If I am sending two mails with same subject to same ID. I am getting two separate mails and also getting one another mail in which the second mail as the trailing mail of the first mail, So in the case of second mail I am getting two mails. Is this the standard behavior or some issue with my code. I am using Microsoft outlook as email client. And every time its asking for read request, even though I disabled the functionality. (Since I can't access SAP, I can't post the code snippet now).
This is my first mail.
Subj : Q - info 05.10.2014
Kindly provide the clearance.
Regards
This is my second mail.
Subj : Q - info 05.10.2014
Request approved
Regards.
I am getting the second mail like this
Subj : Q - info 05.10.2014
Kindly provide the clearance.
Regards
Subj : Q - info 05.10.2014
Request approved
Regards.
And one duplicate mail also.
Subj : Q - info 05.10.2014
Request approved
Regards.
So every time to see the latest mail,I need to scroll down. Usually the latest mail should be on the top. And I am getting a duplicate mail after 10 seconds. How can I resolve this issue.
Regards
Jesse Owens K
10-05-2014 5:35 AM
Hi,
Make sure that you perform for each mail:
CALL METHOD cl_document_bcs=>create_document
ob_bcs = cl_bcs=>create_persistent( ).
Regards.
10-05-2014 5:35 AM
Hi,
Make sure that you perform for each mail:
CALL METHOD cl_document_bcs=>create_document
ob_bcs = cl_bcs=>create_persistent( ).
Regards.
10-05-2014 5:43 AM
Hi Eitan Rosenberg,
Thanks for your quick response. As soon as I get access to SAP I will check my code.
Regards
Jesse Owens K.
10-05-2014 6:08 AM
Hi Eitan Rosenberg,
DATA : v_send_request TYPE REF TO cl_bcs.
DATA : v_document TYPE REF TO cl_document_bcs.
v_send_request = cl_bcs=>create_persistent( ).
v_document = cl_document_bcs=>create_document( i_type = 'HTM'
i_importance = '5'
i_text = t_html
i_subject = lv_sub ).
This is my code. Every time I am calling these methods.
Do you have any idea about the trailing mail scenario??
Regards
Jesse Owens K
10-05-2014 6:38 AM
Hi,
See program BCS_EXAMPLE_1 .
Copy and modify so it will work for you .
See whats happened maybe its not the program faults . (basis stuff ?)
Regards.
10-05-2014 8:54 AM
10-06-2014 6:56 AM
Hi,
I'm using commit statement.
Here I'm uploading a screen shot of the mail received.
Here I am getting second mail(Rejection) as trailing mail of the first mail(approval).
Why second mail is showing as a trailing mail, actually it is the latest mail hence it should be in top.
I am using outlook, is this because of the same subject??? Please suggest....
Regards
10-06-2014 7:47 AM
10-06-2014 8:15 AM
Hi,
I didn't try the BCS_EXAMPLE_1, but one thing I noticed that there is no difference between my code and the code in BCS_EXAMPLE_1. If you are not busy, please go through the below screen shot which shows the comparison. The additional code in my program is marked in Green square.
The duplicate mail issue is resolved, it was because I created two object for cl_bcs. Now please look into the issue.
Thanks & Regards
Jesse Owens K
10-06-2014 8:24 AM
Hi,
At a glance it looks ok .
If its working and you are happy this is even better .
And yes I am busy.....
Regards.
10-06-2014 9:51 AM
Hi Eitan Rosenberg,
The trailing mail issue was due to same subject. Actually in outlook it is considering first two words of the subject. Initially my subject was like this
Q-info details <date> <Time>
Then I changed into
1) Q-info details <Doc no> <date> <Time>
2) Q-info details <Doc no> <Item no> <date> <Time>
3) <Doc no> <Item no> Q-info details <date> <Time>
with the 3rd one I am able to get single mail for each activity. So my conclusion is with the 3rd subject, each time line item number is changing hence I'm getting separate mail. Now there is no trailing mail, no duplicate mail.
Once again a big thank you for your suggestions and for your valuable time.
Thanks & Regards
Jesse Owens K
10-06-2014 10:25 AM
Hi,
You are welcome.
Mark your answer as correct for future generations...
Regards.
10-06-2014 2:06 PM
Hi
"asking for read request, even though I disabled the functionality"
If this means Outlook is asking for a confirmation, then this is a global SAP setting: Go to Transaction SCOT, menu Settings - Confirmation of receipt.
Change the radiobutton from "SAPconnect expects receipt confirm for internet mail" to "SAPconnnect does to expect receipt confirm for internet mail".
Regards,
Clemens
10-06-2014 2:56 PM