‎2007 Jan 17 8:06 AM
‎2007 Jan 17 8:08 AM
Hi Reddy,
1.<b>In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap
Break Point. </b>
set a break point in side the smartform:
BREAK <USERNAME>.
Then at the time of print/ preview the program stops there.
Example : If you set the break point in initializationas
BREAK <USERNAME>.
Program stops at break point. After that use Serach and set more break points.
-
>Search the program logic/Textelement/Address via search and set the break point at that code.
2.<b>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.
</b>
3.<b>SFTRACE can be used for debugging SMARTFORMS.</b>
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
‎2007 Jan 17 8:14 AM
Hi
use this thread
download this ebook
http://www.sappressbooks.com/downloads/h955_preview.pdf
thanks
Shiva
‎2007 Jan 17 8:10 AM
Hi Divakar,
You can debug a smart form by setting a break point in smart form (where you write the code). This can be done by writing the following stmt in ur smartform code.
BREAK_POINT
This should solve your problem.
PLZ REWARD POINTS IF HELPFUL
‎2007 Jan 17 8:11 AM
write code in very first window of smartform and put break point.
as
1) break username e.g break divaka .
2) break-point.
‎2007 Jan 17 8:11 AM
‎2007 Jan 17 8:12 AM
Hi,
If it is not in the production system, use break-point <name> at the relavant place.Let me know if you have more Questions
Regards
Avi.
‎2007 Jan 17 8:13 AM
hi srikanth,
u can debug in the following ways
1. using the static break points as above .. write in the initialization code..<b>BREAK xxxx</b>. xxx is user name.
2. open the function module(in se37) generated by smartform, and put the breakpoints.
3. u can use the SFTRACE. this tcode is not a debuuger, but u will get to know the errors and warnming in smartform, to do this open the tcode SFTRACE>press on the ACTIVE TRACE, the in antohter session run the smartform and com back. in the SFTACE bottom u will find an entry>press on the Disply -->in there u'll find all the warnings and error if exist.
Please Close this thread.. when u r problem is solved
Reward if Helpful
Regards
Naresh Reddy K
‎2007 Jan 17 8:31 AM
‎2012 Nov 28 3:36 PM
Hi Divakar,
1) in TC SMARTFORMS find out function module name using menu point "environment"
2) call se37 enter FM name and display, choose Attributes
3) double-click on program name, double-click on third include
4) Utilities/Breakpoint/set/delete
5) Then, search for the coding you have added and set another breakpoint there
Now, u can do a print preview or test the smartform from TC smartforms. In both cases, the debugger will be called at the place where u set the breakpoint.
You need to set one first breakpoint somewhere else first, else you get an error.
If it has helped you, please set answer as correct.
Regards
Petra