Error mail from if_inbound_exit_bcs even when processing successful
I have succeessfully configured the emailed PDF inbound processing via writing a class implementing the if_inbound_exit_bcs interface and registering it in SCOT. When I send an email to my SAP system, my class is called, I can extract the data correctly and do my job. The only problem here is that the SAP system then sends an email back to the sender (to me) telling:
The following receivers could not be reached: aif@sap-erp60.<domain>. Error in the SMTP communication with the email server of the receivers. Please contact your system administrator. <server.<domain> #5.5.0 smtp;554 Message not processible in the SAP system>
I already took a look at some inbound processing classes shipped by SAP. At the end of the PROCESS_INBOUND method they all had the statement:
e_retcode = if_inbound_exit_bcs=>gc_terminate.
After adding this to my code the problem is still there. I always get the error email.
Any help is highly appreciated.
Best regrads and thanks,