2004 Dec 16 5:15 PM
Hello,
I need to read an email content from a program, to attach it to an CRM activity. Does anybody know if there is a function for this? I will have the email data (Object id, folder, type, etc) available.
Thank you!
Paola
2004 Dec 16 7:50 PM
Hi Paola,
Can you be more specific? Is this email an internet email from an external email application like Outlook, Lotus Notes etc. or is this SAP Inbox mail?
The answer depends on where this email is coming from.
Regards,
Srinivas
Hi Paola,
Can you be more specific? Is this email an internet email from an external email application like Outlook, Lotus Notes etc. or is this SAP Inbox mail?
The answer depends on where this email is coming from.
Regards,
Srinivas
2004 Dec 16 7:50 PM
Hi Paola,
Can you be more specific? Is this email an internet email from an external email application like Outlook, Lotus Notes etc. or is this SAP Inbox mail?
The answer depends on where this email is coming from.
Regards,
Srinivas
2004 Dec 17 8:41 AM
Hi Srinivas,
This is an email comming in from an external application into a sap inbox mail. A user has been configured with an external email address. What we want to do is the following: through transaction SO28 we want the incoming external email to be redirected to a Business object, in order to start a workflow. In the workflow we need to read the contents of the email in order to attach it to an CRM activity.
I hope this is much clearer! The external email is not yet starting our workflow but sap is working on it.
Thank you very much,
Paola
2004 Dec 17 1:13 PM
Here is a weblog that describes receiving an email and processing it via ABAP Coding. This example doesn't necessarily trigger a workflow, but there is no reason why you couldn't adapt the coding to do so. Perhaps with the freedom you having with the incomming coding, you won't even need to trigger the workflow.
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
2004 Dec 17 1:52 PM
Dear Thomas,
I have not yet implemented the class, but I am sure it will work. Your article is very clear and helpfull, you must make a good teacher. Thank you very much!
Best regards,
Paola
2004 Dec 17 2:20 PM
2005 Feb 25 5:24 PM
Hi,
My Requirement is :
1)I got a requirement to read Bounce back mails in the CRM System .My present scenario is that once a campaign is executed , the mails which get bounce back are returned to outlook location.
2)The required scenario demands that, to read email IDs which get Bounce back and need to be compared with Email Ids in the Target group , which is assigned to the campaign and update the 'COunter' field which is assigned to the E-mails in the Master Data.
3)Is there any machanism to read the BOunce-Back mails in CRM System itself (or) It should be read from outlook location where the mails are returned presently, so that COUNTER which is tied up with the E-mails in Master Data can automatically updated.
4) Is there any possibility to read the Mails in the Outlook location with Mail IDs in the CRM system.
I have gone through Mr Thomas article and i think it works for my requirement but i dont know how to proceed further to read bounce back mails when a campaign is executed in CRM System.
Can any one guide me how to solve this problem .
THANKS
SURESH
2005 Feb 28 1:52 PM
I can't speak to anything CRM specific (since I have never used SAP's CRM solution). However we have bounced emails that we process in the WebAS. The bouced emails all come back to the senders address in Microsoft Exchange. I went to our exchange administrators and had them write a rule in exchange to automatically forward those bounced emails to our WebAS email address. We can then process them as described in the weblog. Hopefully that helps out a little.
2005 Feb 11 12:05 PM
Hello,
I followed Thomas instructions and as a result, I am able to read the email, create a CRM activity an retrieve the attachments of the email.
But the email I receive does not continue towards the stablished inbox. With my email processing the mail does not reach the recipient. Can you tell me how to solve this? Did I do anything wrong or this is the usual behavior?
Best regards,
Paola del Giorgio
2005 Feb 11 1:16 PM
I have acomplished this in the past by having two different mail addresses. On that receives the initial mail, processes it and then forwards the results (along with any of the original message that is relevant) on to the second ID. You basically create a whole new email object inside the processing of the current inbound one.
However you might be able to acomplish what you want by changing the e_retcode exporting value. If you change it to GC_CONTINUE instead of GC_TERMINATE, processing should continue. I'm not really at a place where I can try this right now, so you will have to experiment.
endtry.
**** exit has done its work
e_retcode = if_inbound_exit_bcs=>continue.
endmethod.
2005 Feb 11 1:34 PM
Hello again Thomas,
I have tried returning code 'continue', but it did not work.
Thanks for your suggestion of the two emails. As I told you before your code was very helpfull and everybody is happy.
Best regards,
Paola
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |