<?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: How to trigger debugging for a BAdI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-debugging-for-a-badi/m-p/10957329#M1893244</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;Put the following code in the very first line of your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.DO.&lt;/P&gt;&lt;P&gt;2.ENDDO.&lt;/P&gt;&lt;P&gt;3. Your Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugger will be stopped at line 1 when you create a shopping cart.&lt;/P&gt;&lt;P&gt;Goto SM50 , select your process and click on Administration-&amp;gt;Program-&amp;gt;Debugging which will take you to line no. 1.&lt;/P&gt;&lt;P&gt;Put the cursor on line 3 and press SHIFT+F12 to jump to that statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the process for stopping debugger in background jobs.&lt;/P&gt;&lt;P&gt;After debugging, remove the above two lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 08:49:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-02-19T08:49:05Z</dc:date>
    <item>
      <title>How to trigger debugging for a BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-debugging-for-a-badi/m-p/10957327#M1893242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a BAdI that is not triggering while creating the Shopping cart in SRM. It is triggering at the time of back ground job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the Shopping cart one background job for every 5 min. is running to create Purchase requsition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i kept error message in BAdI and i am executing the program(Not Job) but the break-point for that BAdI is not triggering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me how to trigger debugging for that BAdI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai rama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 06:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-debugging-for-a-badi/m-p/10957327#M1893242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-19T06:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger debugging for a BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-debugging-for-a-badi/m-p/10957328#M1893243</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;Try with the endless loop in your method to get into debugging something like the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Paste the below code in your method. But after your debugging, please remove this code. This code should not be transported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LV_EXIT TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF LV_EXIT = 'X'.&amp;nbsp;&amp;nbsp; """Once you reached to debugging using below step, you need to update the LV_EXIT value as 'X' to come out of the loop&lt;/P&gt;&lt;P&gt;EXIT&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a shopping cart. then goto SM50. Select your class/method name. menu: Administration -&amp;gt; Program -&amp;gt; Debugging.&lt;/P&gt;&lt;P&gt;You will get into debugging mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. After completed your debugging, please delete the above code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 08:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-debugging-for-a-badi/m-p/10957328#M1893243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-19T08:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger debugging for a BAdI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-debugging-for-a-badi/m-p/10957329#M1893244</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;Put the following code in the very first line of your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.DO.&lt;/P&gt;&lt;P&gt;2.ENDDO.&lt;/P&gt;&lt;P&gt;3. Your Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugger will be stopped at line 1 when you create a shopping cart.&lt;/P&gt;&lt;P&gt;Goto SM50 , select your process and click on Administration-&amp;gt;Program-&amp;gt;Debugging which will take you to line no. 1.&lt;/P&gt;&lt;P&gt;Put the cursor on line 3 and press SHIFT+F12 to jump to that statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the process for stopping debugger in background jobs.&lt;/P&gt;&lt;P&gt;After debugging, remove the above two lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 08:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-trigger-debugging-for-a-badi/m-p/10957329#M1893244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-19T08:49:05Z</dc:date>
    </item>
  </channel>
</rss>

