<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974999#M399585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thought of adding this wiki link,that will be useful for everyone struggling to debug so50 exit class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/x/cQGbBg" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/x/cQGbBg&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sanju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2009 06:41:07 GMT</pubDate>
    <dc:creator>sanju_joseph</dc:creator>
    <dc:date>2009-10-28T06:41:07Z</dc:date>
    <item>
      <title>Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974995#M399581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Cracks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a problem with the debugging of the inbound mail processing. Everything is just like the description in the very helpful webblog from Thomas Jung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mails come into our configurated system. My problem is, that I can't debug the methode from the inbound class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I just set an external brakepoint in the sourcecode of the methode, nothing happens when i send a mail to our system. Isn't there a way to debug the source? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you have a solution for this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 15:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974995#M399581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T15:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974996#M399582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Boris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if my tip will work in your case but it worked in case of debugging an old-fashioned SAP forms.&lt;/P&gt;&lt;P&gt;Put the following coding (endless loop) into your class where you want to start debugging:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  lx_continue(1)    TYPE c.

*  IF ( syst-uname = &amp;lt;specific user&amp;gt; ).
  DO.
    IF ( lx_continue = 'X' ).
      EXIT.
    ENDIF.
  ENDDO.
*  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you process an inbound mail you should see the corresponding process in transaction &amp;lt;b&amp;gt;SM50&amp;lt;/b&amp;gt;. Choose menu &amp;lt;i&amp;gt;Program/Modus -&amp;gt; Program -&amp;gt; Debugging&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;If this works then you will jump into the ABAP debugger right at the coding above. Set &amp;lt;b&amp;gt;lx_continue = 'X'.&amp;lt;/b&amp;gt; and continue debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do &amp;lt;b&amp;gt;not&amp;lt;/b&amp;gt; see your process in SM50 then this trick does not work here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 04:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974996#M399582</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-02-14T04:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974997#M399583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uwe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, but unfortunately I din't get any process in the SM50.&lt;/P&gt;&lt;P&gt;So it seems, that this soulution dosn't work in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 07:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974997#M399583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974998#M399584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the endless loop trick I can see the the process in SM50. However when I try to step into debugging nothing happens.&lt;/P&gt;&lt;P&gt;First it asks me if I want to debug and then just nothing (no message, etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the user that runs this process needs to have debugging rights? &lt;/P&gt;&lt;P&gt;Usually this is a something like an Mailadmin user you can setup up with SICF / Servicename: SAPCONNECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2009 10:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974998#M399584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-14T10:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974999#M399585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thought of adding this wiki link,that will be useful for everyone struggling to debug so50 exit class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/x/cQGbBg" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/x/cQGbBg&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sanju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 06:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1974999#M399585</guid>
      <dc:creator>sanju_joseph</dc:creator>
      <dc:date>2009-10-28T06:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1975000#M399586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Boris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in a similar situation where I am not able to figure out whether by Exit class configured in SO50 is being trigerred or not.&lt;/P&gt;&lt;P&gt;Did you solev your problem abut this? What was the problem/solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prakash Pandey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 23:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1975000#M399586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T23:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debug Class Methode -  Inbound Mail Processing (SO50 - Custom Class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1975001#M399587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how I debug inbound email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure user of the SAPCONNECT service in SICF has debug access.&lt;/P&gt;&lt;P&gt;I believe the user also has to be a dialog user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To turn on debugging Go to transaction SCOT and enter DBG+ in the input field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to class CL_SMTP_EXT_SAPCONNECT (SE80 -&amp;gt; choose class/interface)&lt;/P&gt;&lt;P&gt;  Expand method folder and double click on HANDLE_REQUEST method&lt;/P&gt;&lt;P&gt;  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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place an external break point in the desired exit class configured in SO50.&lt;/P&gt;&lt;P&gt;  In SE80 select the desired class.&lt;/P&gt;&lt;P&gt;  Expand method folder and double click method PROCESS_INBOUND&lt;/P&gt;&lt;P&gt;  Place an external break point on desired line of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Send an email to SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turn off debugging when finished by going to SCOTT and entering DBG- in input field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 19:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-class-methode-inbound-mail-processing-so50-custom-class/m-p/1975001#M399587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T19:35:26Z</dc:date>
    </item>
  </channel>
</rss>

