<?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 how to debug a smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308632#M505312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;how to debug a smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 06:01:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T06:01:44Z</dc:date>
    <item>
      <title>how to debug a smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308632#M505312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;how to debug a smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 06:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308632#M505312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T06:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug a smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308633#M505313</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;Add program lines node above the position where your want to analyze. Write break-point in the code within that.&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, 22 May 2007 06:45:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308633#M505313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T06:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug a smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308634#M505314</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; To Debug the smartform u need to create program lines where u want to fetch or display  the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that program lines hardcode command  BREAK-POINT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing the smartforms control will be stops at the break point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 09:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308634#M505314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T09:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug a smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308635#M505315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI,&lt;/P&gt;&lt;P&gt;   when you activate the smartform it gerenates a FM, go to that FM and put break-point where you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sudheer.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 10:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308635#M505315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T10:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug a smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308636#M505316</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;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;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;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;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 10:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308636#M505316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T10:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug a smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308637#M505317</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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;1) DEBUG Smartform:&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 10:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308637#M505317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T10:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug a smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308638#M505318</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;The the best way to debug the form is to put a breakpoint in the function module generated by the smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure:&lt;/P&gt;&lt;P&gt;Open the smartform we want to debug.&lt;/P&gt;&lt;P&gt;Goto Environment -&amp;gt; Function module name.&lt;/P&gt;&lt;P&gt;Open the function module in SE37. From the menu GOTO -&amp;gt; main program. Open the last include.&lt;/P&gt;&lt;P&gt;This incude contains the entire code ie the code we have written in initalization + form routines + program lines + sap generated code.&lt;/P&gt;&lt;P&gt;Even we can search for the text nodes, folders, templates, tables, graphics, address nodes etc with their names.&lt;/P&gt;&lt;P&gt;Put a breakpoint at any point you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we issue any doc which triggers this form, when the control reaches the break point it will stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that hard-coding the break points in the code ( Program lines ) is not recommended and it can´t be done unless if it is development server.&lt;/P&gt;&lt;P&gt;So, always put a session break point in the related function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can use SFTRACE transaction to know the sequence of the control flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to break at each and every text that is printed on the output form put the break points in the forms.&lt;/P&gt;&lt;P&gt;1. %write_text  to break at text element.&lt;/P&gt;&lt;P&gt;2. %WRITE_TEXT_MODULE  to break at text module.&lt;/P&gt;&lt;P&gt;3. %WRITE_INCLUDE_TEXT  to break at include text.&lt;/P&gt;&lt;P&gt;Please put a break point at the first sy-subrc check.&lt;/P&gt;&lt;P&gt;If the control reaches this point, you can find the name of the element in the varible NAME and the content in the text node in %TEXT.&lt;/P&gt;&lt;P&gt;Its easy to understand the sequence of the printing if we put a breakpoint as stated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 14:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-smartform/m-p/2308638#M505318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T14:10:08Z</dc:date>
    </item>
  </channel>
</rss>

