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

user/customer exit after receiving e-mail

Former Member
0 Likes
1,252

Hi,

I want to process the mail after receiving it. Is there any user/customer that can be used after receiving an e-mail? Is there any alternative way?

thank,

- ferudun

1 ACCEPTED SOLUTION
Read only

nelis
Active Contributor
0 Likes
1,020

Hi,

You should be asking this question in the development forum where you will get a better response.

Check SO50, click on column "Exit Name" where you will find various class examples used for processing emails.

Also check [Inbound Distribution|http://help.sap.com/erp2005_ehp_04/helpdata/EN/6c/69c2e3418d11d1896e0000e8322d00/frameset.htm] -> Exits for Inbound Distribution.

Nelis

4 REPLIES 4
Read only

nelis
Active Contributor
0 Likes
1,021

Hi,

You should be asking this question in the development forum where you will get a better response.

Check SO50, click on column "Exit Name" where you will find various class examples used for processing emails.

Also check [Inbound Distribution|http://help.sap.com/erp2005_ehp_04/helpdata/EN/6c/69c2e3418d11d1896e0000e8322d00/frameset.htm] -> Exits for Inbound Distribution.

Nelis

Read only

Former Member
0 Likes
1,020

Hi,

I have examined PROCESS_INBOUND method of class CL_RMPS_INCOMING_MAIL. I found that there is RMPS_POST_DEFATTR badi call. I have implemented the badi and insert endless loop in methods SET_DEFAULTS_MAIL_SMTP and SET_DEFAULTS_MAIL_BOR. I sent an e-mail but the methods I have implemented were not reached.

I have traced the incoming mail and there were the following lines:

IBND_PROC_POST_DECR G Start of Exit Processing

EXIT_PROCESSING G No Exits Found

IBND_PROC_POST_DECR G End of Exit Processing

IBND_PROC_POST_DECR G Try to Find Internal Recipients

What is missing or wrong in my work?

tahnks,

- ferudun

Read only

Former Member
0 Likes
1,020

Hi,

For a similar req, we used an Inbound exit class to process mails incoming to SAP.

Once the email id was created, you need to do a config in SCOT.

Settings -> Inbound processing. Here you link the email id to the class (Z_CL_xxx).

This class is a singleton class and must implement the Interface IF_INBOUND_EXIT_BCS (it has to implement the methods CREATE_INTANCE and PROCESS_INBOUND method of this interface).

Then you can define a method of your own for futher processing.

Hope this helps.

Regards,

Liz

Read only

nelis
Active Contributor
0 Likes
1,020

Have a look at the following blog - [Receiving E-Mail and processing it with ABAP - Version 610 and Higher|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/795] [original link is broken] [original link is broken] [original link is broken];.

Nelis