‎2007 Apr 25 9:30 AM
‎2007 Apr 25 9:32 AM
Hi Vamshi,
1) 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.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Regards,
Raghav
‎2007 Apr 25 9:33 AM
hi,
You can debug a smartform by placing <b>program lines</b> control where ever you want to check the values.
write the following line in the code section of program lines.
break-point.Regards
Sailaja.
‎2007 Apr 25 9:34 AM
‎2007 Apr 25 9:34 AM
Hi,
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.
‎2007 Apr 25 9:34 AM
Hi Vamshi,
Debug SF:
For Preview :
SMARTFORM-> execute->execute->pass values if require to import & table parameters ->execute-> on the pop up window give Printer name as LP01 and press print preview.
For debugging -
1. Write BREAK POINT in the code window.
2. Put a break point on the call function in the driver program
3. Put a break point in the generated Function module.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards
‎2007 Apr 25 9:39 AM
hi
good
to debug->
write the hard coded break-point where ever you have doubt and run the smartform.
how to debug and how to transport smart forms
- to debug, just simply insert an ABAP code (right click on a window -> Create -> Flow logic -> Command line) into the Smartform, and write a "BREAK username." command into it.
thanks
mrutyun^
‎2007 Apr 25 9:57 AM
Hi
A smartform generates a function module if you go to Environment->Function Module Name in Tx Smartforms this will give you the name of the smarform.
You can then set a breakpoint anywhere in the function module.
The easiest way I found to transport a smartform is to make a slight change to the smartform so it requests to add it to a transport. Then change it back again.
Regards