Wednesday, April 11, 2012
Debugging SAP Connect incoming email
Make sure user of the SAPCONNECT service in SICF has debug access.
I believe the user also has to be a dialog user.
To turn on debugging Go to transaction SCOT and enter DBG+ in the input field
Go to class CL_SMTP_EXT_SAPCONNECT (SE80 -> choose class/interface)
Expand method folder and double click on HANDLE_REQUEST method
Place an external break point on the line of code "while debug = sx_false". Make sure you set the external debug user to the user running the SAPCONNECT service in SICF.
Place an external break point in the desired exit class configured in SO50.
In SE80 select the desired class.
Expand method folder and double click method PROCESS_INBOUND
Place an external break point on desired line of code.
Send an email to SAP.
Debugging session should appear. Set the DEBUG flag to X to exit loop. Then hit F8. The debug session should proceed to your break point set earlier in the exit class from SO50.
Turn off debugging when finished by going to SCOTT and entering DBG- in input field.