SAP Connection inbound邮件接收处理机制

Email inbound process is done by user SAPCONNECT so that you cannot debug it via normal debugging approach.
then you have to follow the steps below to debug:

(1) Inside one entry like below into table BCSD_BREAKLOOP.
BL Module = INBOUND
CREATEDFOR = SAPCONNECT
Set the expire time accordingly.
Note: As the insertion of this entry will lead to an endless loop in SAPconnect inbound processing, please make sure to delete it or set the status to abap_false.

SAP Connection inbound邮件接收处理机制

(2) Send your mail to agent inbox mail box as usual, then go to tcode SM51, you should find the endless loop there.
Click Administration->Programm->Debugging:

SAP Connection inbound邮件接收处理机制

This is because your entry inserted by step1 takes effect:

SAP Connection inbound邮件接收处理机制

(3) In debugger, use Shift+F12 to jump out of the endless loop manually:

SAP Connection inbound邮件接收处理机制

After that you could debug the left inbound process of SAP connect now:

SAP Connection inbound邮件接收处理机制

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP Connection inbound邮件接收处理机制