‎2007 Jun 13 10:58 AM
question: how to debug a smartform
...........debug of smartform...is that mean that the code we enter in form design.....?
‎2007 Jun 13 11:09 AM
Hi,
) DEBUG Smartform:
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.
For script Debugging: Execute RSTXDUBG program to activate the debugger or you can activate the debugger from SE71 utilities -> Activate Debugger
For Smartforms: You can put a breakpoint in the code or you can write explicity BREAK-POINT keyword to debug the smartform
Set the break point in initialization(Global Definitions--> Initialization) of smartform as :
BREAK <USERNAME>. --Works for particular user.
Please don't use BREAK-POINT this will apply all the users who are testing the smartform.
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.
<b>Reward points</b>
Regards
‎2007 Jun 13 11:17 AM
‎2007 Jun 13 11:21 AM
Hi,
In the Smartform, within the Code Node you can hardcode a normal abap Break Point ..
Please 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.
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.
or
SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
See the Below thread for how to debug the Smartforms
Regards,
Priyanka.
‎2007 Jun 13 2:38 PM
hi,
use can use statement BREAK-POINT in coding of smart forn for debugging.
if useful reward some points.
with regards,
suresh.
‎2007 Jun 14 6:52 AM
hi abhijeet,
u ca debugg the smatforms in 2 ways...
1) the code lines which u want to debugg...before that just write
BREAK <username>.
thats all..so when u run the transaction the cursor will stop at this breakpoint..
2) second way to debugg is execute the smartform....u will be getting a function module --> click on display button > search for the node in whcich u want to debugg...> after that click on breakpoint...
hope this will help u out..
please reward points in case usefull...
rewards,
prashant
‎2007 Jun 14 6:57 AM
Tcode : <b>SFTACE</b> for Debugging the SMARTFORMS ....
go to the transcation code <b>trace active -> swith on.</b>
then goto your smartfrom end execute so that it will take you in debug mode ...
Girish
‎2007 Jun 14 7:22 AM
Hi
Use the BREAK_POINT in the coding node of the smartform for debugging purposes.
Thanks
Swarna
‎2007 Jun 14 7:23 AM