时间 Mittwoch, 11. März 2009 04:44
问题主题 Why IF_INBOUND_EXIT_BCS~PROCESS_INBOUND not called when email is received?
遇到一个奇怪的问题,在ABAP Netweaver系统创建了一个类,实现了SAP Connect的接口IF_INBOUND_EXIT_BCS,
在事务码SCOT里进行了必要的配置:
在ABAP后台写一个report,给我的邮箱发送一封包含PDF附件的邮件,虽然邮箱成功收到了包含附件的邮件,但是我上述ABAP类的方法没有被执行到。
其实"没有执行到"是我的错觉,下面是SAP connect inbound处理的调试过程:
- go to transaction SCOT enter ‘dbg+’ into the transaction field and press enter -> inbound process debugging is started
- send the mail (in your case by starting your report)
- go to transaction sm50 and search for the waiting process in class CL_SMTP_EXT_SAPCONNECT========CP to debug it (mark it and navigate to administration > program > debugging)
- debugger opens and you can set breakpoint in your class, leave the endless loop by setting cursor to line 54 and press Shift+F12, let the debugger run with F8 and you will stop next in you class
- debug whatever you want ?
6)!!! After finishing you have to stop inbound process debugging in scot again by entering ‘dbg-’ and pressing enter !!! (this can also already be done when you found your process in step 3)
要获取更多Jerry的原创文章,请关注公众号"汪子熙":