<?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 the smart forms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051685#M423036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2007 11:30:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-26T11:30:47Z</dc:date>
    <item>
      <title>how to debug the smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051681#M423032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body guide me how to debug the smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Satish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 07:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051681#M423032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug the smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051682#M423033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Execute the smartform.It will open a FM in se37 screen.&lt;/P&gt;&lt;P&gt;2. Press Display.&lt;/P&gt;&lt;P&gt;3. Press find(CTRL+F).&lt;/P&gt;&lt;P&gt;4. Enter command here at which you want to put the break point.&lt;/P&gt;&lt;P&gt;5. Select the radio button 'in main program'.It will open the point at which you want to put the breakpoint.&lt;/P&gt;&lt;P&gt;6. Put the breakpoint here and execute the smartform again.It will stop at the point where you put the breakpoint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SMARTFORM_TRACE to trace smart forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 07:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051682#M423033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug the smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051683#M423034</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;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 Break Point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Generated Fucntion module, You can put the Break point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 07:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051683#M423034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T07:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug the smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051684#M423035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For debugging -&lt;/P&gt;&lt;P&gt;1. Write BREAK POINT in the code window.&lt;/P&gt;&lt;P&gt;2. Put a break point on the call function in the driver program &lt;/P&gt;&lt;P&gt;3. Put a break point in the generated Function module.&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;1) DEBUG Smartform:&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;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 08:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051684#M423035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T08:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug the smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051685#M423036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2007 11:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051685#M423036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-26T11:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug the smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051686#M423037</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:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051686#M423037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T14:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to debug the smart forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051687#M423038</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;just right click on the window of smartfrom(where exactly do u want to debug the samrtform),&lt;/P&gt;&lt;P&gt;select &lt;STRONG&gt;create&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;-&amp;gt;&lt;STRONG&gt;flow logic&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;-&amp;gt;&lt;STRONG&gt;program lines&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;here u can write as &lt;STRONG&gt;'BREAK-POINT'&lt;/STRONG&gt; in &lt;STRONG&gt;progarm lines&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while excuting the driver progarm or smartform then cursore come to here(break-point)stops then u can dubug...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 05:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-the-smart-forms/m-p/2051687#M423038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-15T05:29:30Z</dc:date>
    </item>
  </channel>
</rss>

