<?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 smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041398#M719823</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;     Set the breakpoint in Function module which is generated by smartform&lt;/P&gt;&lt;P&gt;and debugg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 12:05:43 GMT</pubDate>
    <dc:creator>former_member386202</dc:creator>
    <dc:date>2007-11-12T12:05:43Z</dc:date>
    <item>
      <title>Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041396#M719821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Is there any way to put a breakpoint in smartforms and debug it without inserting hard BREAKPOINT in the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this as i do not have Edit access to the form.&lt;/P&gt;&lt;P&gt;and i need to debug the program lines in the smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to debug the FM associated with the smart form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghavendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041396#M719821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T12:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041397#M719822</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;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;If you are using loop,then inside that create program line.In that, increment a counter like the normal abap program.Then display that counter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more specific,&lt;/P&gt;&lt;P&gt;declare a variable in Global Definitions-Global data as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cnt type i 0(default)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then inside the loop,&lt;/P&gt;&lt;P&gt;in text element , drag the variable which is under Global data in field list .&lt;/P&gt;&lt;P&gt;After that create a program line,give cnt as input and output parameter.&lt;/P&gt;&lt;P&gt;In logic,write &lt;/P&gt;&lt;P&gt;cnt = cnt + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you will get the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your problem is solved,reward points and close the thread.If not,get back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041397#M719822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T12:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041398#M719823</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;     Set the breakpoint in Function module which is generated by smartform&lt;/P&gt;&lt;P&gt;and debugg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041398#M719823</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-11-12T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041399#M719824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug SF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Preview : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SMARTFORM-&amp;gt; execute-&amp;gt;execute-&amp;gt;pass values if require to import &amp;amp; table parameters -&amp;gt;execute-&amp;gt; on the pop up window give Printer name as LP01 and press print preview.&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;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Four ways you can debugging.....&lt;/P&gt;&lt;P&gt;1.place SFTRACE inplace where we enter T_CODE and press ENTER.&lt;/P&gt;&lt;P&gt;after that press F8.&lt;/P&gt;&lt;P&gt;2 ./H&lt;/P&gt;&lt;P&gt;3 /SH&lt;/P&gt;&lt;P&gt;4.after generating the function module there is a button DEBUGGING&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;***************************&lt;/P&gt;&lt;P&gt;Refer to these related threads&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="3013306"&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="2864576"&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="3706453"&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="2898386"&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="173610"&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="3239589"&gt;&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;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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041399#M719824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T12:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041400#M719825</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;There is no direct way of debugging the smartform other than hardcoding the break point in the program lines. Also since you do not want to debug the FM, I see only one option and that is: copy the statement / global variables which you want to debug and while debugging create a watchpoint on the variable. I think it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041400#M719825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T12:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041401#M719826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt; I have already mentioned in my post that as i do not have access to EDIT the form i cannot hard code BREAK-POINT  in program lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041401#M719826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T12:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041402#M719827</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 that program in display mode also you can set break points &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select the line where you want to put the break point &lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;click on the STOP button which is exsists on application tool bar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u execute that program when ever the control comes to that line it automatically stops it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041402#M719827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T12:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041403#M719828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take the Function module from the Smart form -&amp;gt; Environment -&amp;gt; Function Module Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto that Function Module and go to the Main Program of that FM. Keep the Break point in Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the smart form triggers it will stop at that break point and you can do debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 12:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debugging-smartforms/m-p/3041403#M719828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T12:14:34Z</dc:date>
    </item>
  </channel>
</rss>

