<?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 debug scripts,smartforms and particularly idocs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546984#M579474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DEBUG Smartform:&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;1) One way to debug smartform is to debug the Function Module of that smartforms.&lt;/P&gt;&lt;P&gt;If you want to debug particular smartform node that the solution would be,&lt;/P&gt;&lt;P&gt;insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.&lt;/P&gt;&lt;P&gt;So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) SFTRACE can be used for debugging SMARTFORMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read More here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DEBUG Scripts&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2). Another way to set the SAPScript debugger is to run program RSTXDBUG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEBUG Idocs.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Go to WE19. Reprocess the IDOC. But before that,put a breakpoint in the function module which will be called during the IDOC processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2007 14:01:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-12T14:01:18Z</dc:date>
    <item>
      <title>how to debug scripts,smartforms and particularly idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546979#M579469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to debug scripts,smartforms and particularly idocs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with thanks and regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546979#M579469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T13:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug scripts,smartforms and particularly idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546980#M579470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Debug Scripts:&lt;/P&gt;&lt;P&gt;goto transaction SE71.&lt;/P&gt;&lt;P&gt;Utilities-&amp;gt;Activate Debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug Smartforms.&lt;/P&gt;&lt;P&gt;Put a breakpoint in the smartform generated function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug Idocs,&lt;/P&gt;&lt;P&gt;Put a break point in the inbound/outbound processing function modules and then process the idocs using we19 transaction.&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546980#M579470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T13:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug scripts,smartforms and particularly idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546981#M579471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; There are 2 separate kinds of debugging available when you try to debug scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &amp;lt;b&amp;gt;Debugging the print program&amp;lt;/b&amp;gt; : This is the normal debugging we do for our report programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &amp;lt;b&amp;gt;Debugging the script itself&amp;lt;/b&amp;gt; : You Can debug a SAP Script by activating debugger in two ways:&lt;/P&gt;&lt;P&gt;a .In SE71-&amp;gt;Menu-&amp;gt;Utilities-&amp;gt;Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.&lt;/P&gt;&lt;P&gt;b. Goto se38-&amp;gt; RSTXDBUG -&amp;gt;Execute this same as going thru in se71-&amp;gt; Menu, now debugger will be activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;refer to the link below&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.howforge.com/how-to-debugging-sapscript-form" target="test_blank"&gt;http://www.howforge.com/how-to-debugging-sapscript-form&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Look at the BLOG here, it is well explained &lt;/P&gt;&lt;P&gt;/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEBUG A SMARTFORM&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Smartform, within the Code Node you can hardcode a normal abap Break Point ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please set a break point in side the smartform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK &amp;lt;USERNAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then at the time of print/ preview the program stops there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : If you set the break point in initializationas &lt;/P&gt;&lt;P&gt;BREAK &amp;lt;USERNAME&amp;gt;.&lt;/P&gt;&lt;P&gt;Program stops at break point. After that use Serach and set more break points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;Search the program logic/Textelement/Address via search and set the break point at that code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SFTRACE&amp;lt;/b&amp;gt; can be used for debugging SMARTFORMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Read More here.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;See the Below thread for how to debug the Smartforms&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="130855"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2241642"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="168726"&gt;&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 pts if found usefull :)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546981#M579471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T13:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug scripts,smartforms and particularly idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546982#M579472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Debugging smartforms :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap &lt;/P&gt;&lt;P&gt;Break Point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Srikanta Gope&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546982#M579472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T13:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug scripts,smartforms and particularly idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546983#M579473</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;Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Debug Smartform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Debug SAPScript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are two ways to debug the SAPScript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Another way to set the SAPScript debugger is to run program RSTXDBUG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Debug IDoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use transaction WE19 - IDoc Testing Tool or place a break point for the corresponding function module IDoc process.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546983#M579473</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-07-12T13:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug scripts,smartforms and particularly idocs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546984#M579474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DEBUG Smartform:&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;1) One way to debug smartform is to debug the Function Module of that smartforms.&lt;/P&gt;&lt;P&gt;If you want to debug particular smartform node that the solution would be,&lt;/P&gt;&lt;P&gt;insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.&lt;/P&gt;&lt;P&gt;So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) SFTRACE can be used for debugging SMARTFORMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read More here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;DEBUG Scripts&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2). Another way to set the SAPScript debugger is to run program RSTXDBUG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DEBUG Idocs.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Go to WE19. Reprocess the IDOC. But before that,put a breakpoint in the function module which will be called during the IDOC processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 14:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-scripts-smartforms-and-particularly-idocs/m-p/2546984#M579474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T14:01:18Z</dc:date>
    </item>
  </channel>
</rss>

