<?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: debugging in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546031#M579195</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;&lt;/P&gt;&lt;P&gt;go to se38-&amp;gt;give ur program name-.execute-&amp;gt;give /h at command prompt-&amp;gt;execute-&amp;gt;now debugging will start-&amp;gt;&lt;/P&gt;&lt;P&gt;f5-used for line by line debugging&lt;/P&gt;&lt;P&gt;f6-used for directly executing function modules or performs i.e. control won't go into that block.&lt;/P&gt;&lt;P&gt;f7-run to cursor&lt;/P&gt;&lt;P&gt;f8-direct executing.&lt;/P&gt;&lt;P&gt;fileds: here we can check fild values.&lt;/P&gt;&lt;P&gt;click fileds option and double click on the filed or type the filen name beside filed&lt;/P&gt;&lt;P&gt;tables : here we can check the data in the internal table.&lt;/P&gt;&lt;P&gt;click tables option and double click on the internal table.&lt;/P&gt;&lt;P&gt;Break points:&lt;/P&gt;&lt;P&gt;if you want to debug a particulr part you can use this.&lt;/P&gt;&lt;P&gt;place the cursor at any perform click breakpoint or double click on that line.it will be set.&lt;/P&gt;&lt;P&gt;if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.&lt;/P&gt;&lt;P&gt;Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto-&amp;gt;breakpoints-&amp;gt;create watch points-&amp;gt;give filed itab-lifnr-&amp;gt;=-&amp;gt;100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debugging procedure:&lt;/P&gt;&lt;P&gt;Use '/H' in the command line and execute the report/program, so that it goes to debugging mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. keep a hard coded break point in the code like BREAK-POINT and it stops there.&lt;/P&gt;&lt;P&gt;3.From the program Menu, Keep the Soft Break-points and do the debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the links&lt;/P&gt;&lt;P&gt;Refer to this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf" target="test_blank"&gt;http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=3187106" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=3187106&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=850453" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=850453&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=1546485" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=1546485&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673628&amp;amp;messageID=2048883" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673628&amp;amp;messageID=2048883&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saplinks.net/index.php?option=com_content&amp;amp;task=view&amp;amp;id=24&amp;amp;Itemid=34" target="test_blank"&gt;http://www.saplinks.net/index.php?option=com_content&amp;amp;task=view&amp;amp;id=24&amp;amp;Itemid=34&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm" target="test_blank"&gt;http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging Document.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc" target="test_blank"&gt;http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc" target="test_blank"&gt;http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2007 08:23:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-10T08:23:14Z</dc:date>
    <item>
      <title>debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546028#M579192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ..&lt;/P&gt;&lt;P&gt;Please tell me how to debug the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546028#M579192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546029#M579193</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;Debugging Program with ABAP Debugger &lt;/P&gt;&lt;P&gt;Activate the Debugger before executing your ABAP program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System -&amp;gt; Utilities -&amp;gt; Debug ABAP/4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of the debugger is to allow you to execute your program line by line.  It also allow you display the data as you execute the program. (double click on the varaible field name and it will be display) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or after program have been executed, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run transaction SM66 and find your work process. &lt;/P&gt;&lt;P&gt;Select the line of your work process and double click on it &lt;/P&gt;&lt;P&gt;Click the debugging option. &lt;/P&gt;&lt;P&gt;If this is a custom program, you can put a wait statement in the code to buy yourself some time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) To understand the Watchpoint, you have to play with it. &lt;/P&gt;&lt;P&gt;a) Debug your program. &lt;/P&gt;&lt;P&gt;b) Place your cursor on the field you want to watch &lt;/P&gt;&lt;P&gt;c) Press Shift+F8, or click the Create Watchpoint button &lt;/P&gt;&lt;P&gt;d) Select the LOCAL WATCHPOINT checkbox if you want the watchpoint to be active for the immediate program only (and not includes etc. By default, you want to leave this unchecked). &lt;/P&gt;&lt;P&gt;e) Drop down on the relational operator, and choose one. They are self-explanatory. (For this example, use '=') &lt;/P&gt;&lt;P&gt;f) Select the COMPARISON FIELD checkbox if you want to check the field against another field, else leave unchecked if you want to check your field against a static value. &lt;/P&gt;&lt;P&gt;g) Enter your comparison field (if you checked the previous box) or your check value in the last box. Once your selected field equals the selected value, the program will break as if a breakpoint was reached. It is possible that the program never breaks, meaning your watchpoint criteria was never satisfied (For example if you check Itab-Field = VALUEA, if Itab-field never have a value equal to VALUEA the program will NOT break.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I use SQL Trace is used for analysis, then based on the information retrieved I do manual tuning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam Hearn - Business Analyst &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another tip for 1 which is very handy (I've been using it for several months). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create and save a file name AbapDebugParaPopUps.ini with the following contents using Notepad: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[System] &lt;/P&gt;&lt;P&gt;Name=MLP &lt;/P&gt;&lt;P&gt;Client=001 &lt;/P&gt;&lt;P&gt;Description=MLP &lt;/P&gt;&lt;P&gt;[User] &lt;/P&gt;&lt;P&gt;Name=D000328 &lt;/P&gt;&lt;P&gt;Language=D &lt;/P&gt;&lt;P&gt;Password= &lt;/P&gt;&lt;P&gt;[Function] &lt;/P&gt;&lt;P&gt;Command=/h &lt;/P&gt;&lt;P&gt;Title=/h in Popup aktivierbar &lt;/P&gt;&lt;P&gt;Type=SystemCommand &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Add a link to it in the start menu of windows (or in a place of your desk accesible from a modal window) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Whenever you need to debug a modal window in abap, you just drag and drop the file onto the modal window and press enter or a function code that completes the screen. After that you'll enter in debug mode.  &amp;lt;&amp;lt;AbapDebugparaPopUps.ini&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points for the useful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546029#M579193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546030#M579194</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;&lt;/P&gt;&lt;P&gt;go to se38-&amp;gt;give ur program name-.execute-&amp;gt;give /h at command prompt-&amp;gt;execute-&amp;gt;now debugging will start-&amp;gt;&lt;/P&gt;&lt;P&gt;f5-used for line by line debugging&lt;/P&gt;&lt;P&gt;f6-used for directly executing function modules or performs i.e. control won't go into that block.&lt;/P&gt;&lt;P&gt;f7-run to cursor&lt;/P&gt;&lt;P&gt;f8-direct executing.&lt;/P&gt;&lt;P&gt;fileds: here we can check fild values.&lt;/P&gt;&lt;P&gt;click fileds option and double click on the filed or type the filen name beside filed&lt;/P&gt;&lt;P&gt;tables : here we can check the data in the internal table.&lt;/P&gt;&lt;P&gt;click tables option and double click on the internal table.&lt;/P&gt;&lt;P&gt;Break points:&lt;/P&gt;&lt;P&gt;if you want to debug a particulr part you can use this.&lt;/P&gt;&lt;P&gt;place the cursor at any perform click breakpoint or double click on that line.it will be set.&lt;/P&gt;&lt;P&gt;if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.&lt;/P&gt;&lt;P&gt;Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto-&amp;gt;breakpoints-&amp;gt;create watch points-&amp;gt;give filed itab-lifnr-&amp;gt;=-&amp;gt;100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debugging procedure:&lt;/P&gt;&lt;P&gt;Use '/H' in the command line and execute the report/program, so that it goes to debugging mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. keep a hard coded break point in the code like BREAK-POINT and it stops there.&lt;/P&gt;&lt;P&gt;3.From the program Menu, Keep the Soft Break-points and do the debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the links&lt;/P&gt;&lt;P&gt;Refer to this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf" target="test_blank"&gt;http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=3187106" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=3187106&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=850453" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=850453&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=1546485" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=1546485&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673628&amp;amp;messageID=2048883" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673628&amp;amp;messageID=2048883&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saplinks.net/index.php?option=com_content&amp;amp;task=view&amp;amp;id=24&amp;amp;Itemid=34" target="test_blank"&gt;http://www.saplinks.net/index.php?option=com_content&amp;amp;task=view&amp;amp;id=24&amp;amp;Itemid=34&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm" target="test_blank"&gt;http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546030#M579194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546031#M579195</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;&lt;/P&gt;&lt;P&gt;go to se38-&amp;gt;give ur program name-.execute-&amp;gt;give /h at command prompt-&amp;gt;execute-&amp;gt;now debugging will start-&amp;gt;&lt;/P&gt;&lt;P&gt;f5-used for line by line debugging&lt;/P&gt;&lt;P&gt;f6-used for directly executing function modules or performs i.e. control won't go into that block.&lt;/P&gt;&lt;P&gt;f7-run to cursor&lt;/P&gt;&lt;P&gt;f8-direct executing.&lt;/P&gt;&lt;P&gt;fileds: here we can check fild values.&lt;/P&gt;&lt;P&gt;click fileds option and double click on the filed or type the filen name beside filed&lt;/P&gt;&lt;P&gt;tables : here we can check the data in the internal table.&lt;/P&gt;&lt;P&gt;click tables option and double click on the internal table.&lt;/P&gt;&lt;P&gt;Break points:&lt;/P&gt;&lt;P&gt;if you want to debug a particulr part you can use this.&lt;/P&gt;&lt;P&gt;place the cursor at any perform click breakpoint or double click on that line.it will be set.&lt;/P&gt;&lt;P&gt;if /h from report statement it will debug,so for debugging from particular point we will use break points.use f7 to traverse between multiple break points.&lt;/P&gt;&lt;P&gt;Watch-points: In some cases we need to check the data populated in the internal table for eample if we want to check the data of internal table record belongs to 100th vendor we will create watch point for this goto-&amp;gt;breakpoints-&amp;gt;create watch points-&amp;gt;give filed itab-lifnr-&amp;gt;=-&amp;gt;100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debugging procedure:&lt;/P&gt;&lt;P&gt;Use '/H' in the command line and execute the report/program, so that it goes to debugging mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. keep a hard coded break point in the code like BREAK-POINT and it stops there.&lt;/P&gt;&lt;P&gt;3.From the program Menu, Keep the Soft Break-points and do the debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the links&lt;/P&gt;&lt;P&gt;Refer to this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf" target="test_blank"&gt;http://www.sappro.com/downloads/Settings&amp;amp;SystemAreas.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=3187106" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=3187106&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=850453" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=850453&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=1546485" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673672&amp;amp;messageID=1546485&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=2673628&amp;amp;messageID=2048883" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=2673628&amp;amp;messageID=2048883&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saplinks.net/index.php?option=com_content&amp;amp;task=view&amp;amp;id=24&amp;amp;Itemid=34" target="test_blank"&gt;http://www.saplinks.net/index.php?option=com_content&amp;amp;task=view&amp;amp;id=24&amp;amp;Itemid=34&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm" target="test_blank"&gt;http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debugging Document.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc" target="test_blank"&gt;http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc" target="test_blank"&gt;http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546031#M579195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546032#M579196</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;go through the following links...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for system debugging check the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/5f0640555ae369e10000000a155106/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/5f0640555ae369e10000000a155106/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For debugging tutorial:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/tips/debug/debughome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/tips/debug/debughome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-basis-abap.com/sapab002.htm" target="test_blank"&gt;http://www.sap-basis-abap.com/sapab002.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***do rewards if usefull&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546032#M579196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546033#M579197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prajawal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just select the line where you want to put a break point and press ctrl&lt;EM&gt;shift&lt;/EM&gt;f12 or the reb button next to the Documentation Button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        matnr  like makt-matnr,&lt;/P&gt;&lt;P&gt;        spras like makt-spras,&lt;/P&gt;&lt;P&gt;        maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;       end of imakt.&lt;/P&gt;&lt;P&gt;select matnr spras maktx from makt into table imakt where spras = 'EN'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-matnr,itab-spras,itab-maktx.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you want to know the value of sy-subrc which indicates whether the internal table is filled with the selecte data or not.If sy-subrc = 4 it is failure else it is success.Now select the statement &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0&lt;/P&gt; and press ctrl&lt;EM&gt;shift&lt;/EM&gt;f12 or the red button as mentioned earlier.Now press execute and the program will break at this particular statement enabling you to see what exactly is happening at this point.In the same way you can follow.Kindly check the additional info I had given downhere.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;a watchpoint is an indicator in a program that tells the ABAP runtime processor to interrupt the program at a particular point. Unlike breakpoints, however, watchpoints are not activated until the contents of a specified field change. Watchpoints, like dynamic breakpoints, are user-specific, and so do not affect other users running the same program. You can only define watchpoints in the Debugger. &lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;You set watchpoints in the Debugger to monitor the contents of specific fields. They inform you when the value of a field changes. When the value changes, the Debugger interrupts the program.&lt;/P&gt;&lt;P&gt;Features&lt;/P&gt;&lt;P&gt;· You can set up to five watchpoints in a program.&lt;/P&gt;&lt;P&gt;See also Setting Watchpoints.&lt;/P&gt;&lt;P&gt;· You can also specify the conditions under which a watchpoint is to become active.&lt;/P&gt;&lt;P&gt;· You can specify a logical link for up to five (conditional) watchpoints.&lt;/P&gt;&lt;P&gt;See also Specifying Logical Links.&lt;/P&gt;&lt;P&gt;· You can define watchpoints as either local or global. If you define a global watchpoint, it is active in all called programs. Local watchpoints are only active in &lt;/P&gt;&lt;P&gt;the specified program.&lt;/P&gt;&lt;P&gt;· You can change and delete watchpoints.&lt;/P&gt;&lt;P&gt;See Changing Watchpoints&lt;/P&gt;&lt;P&gt;· You can use watchpoints to display changes to the references of strings, data and object references, and internal tables. &lt;/P&gt;&lt;P&gt;See Memory Monitoring with Watchpoints&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Breakpoints &lt;/P&gt;&lt;P&gt;Apart from being able to execute an ABAP program in the Debugger, you can also start the Debugger call by the choosing a breakpoint. This is achieved by setting one or more of these breakpoints in the program. A breakpoint is a signal at a particular point in the program that tells the ABAP runtime processor to interrupt processing and start the Debugger. The Debugger is activated when the program reaches this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a special kind of breakpoint called a watchpoint. When you use watchpoints, the Debugger is not activated until the contents of a particular field change. For more information, refer to the chapter Watchpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Breakpoint Variants&lt;/P&gt;&lt;P&gt;The Debugger contains different breakpoint variants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static&lt;/P&gt;&lt;P&gt;A user-specific breakpoint is inserted in the source code as an ABAP statement using the keyword BREAK-POINT. A non user-specific breakpoint is set in the ABAP Editor using the BREAK user name statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directly set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dynamic breakpoints&lt;/P&gt;&lt;P&gt;Can be set in the ABAP Editor or the Debugger by double-clicking a line, for example. Dynamic breakpoints are always user-specific, and are deleted when you log off from the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Breakpoints&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at statements&lt;/P&gt;&lt;P&gt;The Debugger stops the program immediately before the specified statement is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Breakpoints&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at subroutines&lt;/P&gt;&lt;P&gt;The Debugger stops the program immediately before the specified subroutine is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Breakpoints at function modules&lt;/P&gt;&lt;P&gt;The Debugger stops the program immediately before the specified function module is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Breakpoints at methods&lt;/P&gt;&lt;P&gt;The Debugger stops the program immediately before the specified method is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Breakpoints at exceptions and system exceptions&lt;/P&gt;&lt;P&gt;The Debugger stops the program immediately after a system exception, that is, after a runtime error has been intercepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static Breakpoints&lt;/P&gt;&lt;P&gt;Static breakpoints are always user-independent if there is no specification of a user name. Once a user has inserted the statement BREAK-POINT or BREAK name in an ABAP program, the system always interrupts the program at that point for that user or only for the user name. This procedure is only useful in the development phase of an application when program execution is always to be interrupted at the same place. For more information, refer to the chapter Static Breakpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In HTTP sessions, a static breakpoint is skipped if you did not set additional dynamic HTTP breakpoints in the editor of a BSP page. Instead, a corresponding system log entry is written, which can be checked using transaction SM21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic Breakpoints&lt;/P&gt;&lt;P&gt;Dynamic breakpoints are user-specific. Therefore, you should use them if you only want the program to be interrupted when you run it yourself, not when it is being executed by other users. All dynamic breakpoints are deleted when you log off from the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic breakpoints are more flexible than static breakpoints because you can deactivate or delete them at runtime. They have the following advantages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· You do not have to change the program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· You can set them even when the program is locked by another programmer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· You can define a counter that only activates the breakpoint after it has been reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Special dynamic breakpoints are useful when you want to interrupt a program directly before a particular ABAP statement, a subroutine, or an event, but do not know exactly where to find it in the source code. Event here is used to refer to the occurrence of a particular statement, for example, or calling up a method. Special dynamic breakpoints are user-specific. You can only set them in the Debugger. For more information, refer to the chapter Dynamic Breakpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In HTTP sessions, the system stops both at static and dynamic breakpoints if a dynamic breakpoint was set in the editor of a BSP page before program execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lifetime and Transfer of Breakpoints&lt;/P&gt;&lt;P&gt;A static breakpoint remains intact as long as the BREAK-POINT or BREAK-POINT name statement is not removed from the source code. Without saving, dynamic breakpoints only remain intact in the relevant internal session. However, they remain in effect during the entire user session if they are saved by choosing the menu path Breakpoints ® Save in the ABAP Debugger. For more details on the subject of user sessions and modes, refer to Modularization Techniques in the ABAP keyword documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you call an HTTP session during a user session, only the HTTP breakpoints are loaded when the HTTP session is started. You activate HTTP debugging in the ABAP Editor by choosing Utilities ® Settings ® HTTP Debugging. Depending on the setting, the system then displays either the HTTP or standard breakpoints in the Editor.&lt;/P&gt;&lt;P&gt;If you call an update session during a user session, breakpoints that were defined beforehand in the calling processing unit are copied to the new update session, where they can be displayed under Breakpoints. If, in the ABAP Debugger, you check Update Debugging under Settings and then, for example, call the update module func using CALL FUNCTION func IN UPDATE TASK, a new window is opened in which you can debug this function module in the update session. All the breakpoints that were set in the calling processing unit can also be processed here.&lt;/P&gt;&lt;P&gt;we can keep them at :&lt;/P&gt;&lt;P&gt;Statements&lt;/P&gt;&lt;P&gt;Subroutines&lt;/P&gt;&lt;P&gt;Function Module Calls&lt;/P&gt;&lt;P&gt;at Methods&lt;/P&gt;&lt;P&gt;System Exceptions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break point :&lt;/P&gt;&lt;P&gt;we can start debugging from that point or if we keep break point at some place we can directly got ot htat point using f6.&lt;/P&gt;&lt;P&gt;watch point: for example if we have to check the output for 4000 records based on a field value i.e.for vendor number 'in'we have to check then we will create watchpoint on field LIFNR value '2000'. then we can directly go to vendor whose numbe ris 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging/m-p/2546033#M579197</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-07-10T08:26:06Z</dc:date>
    </item>
  </channel>
</rss>

