06-26-2006 10:07 AM
hi,
could u please send me the details,how can we debugg the smartforms, is it possible to bebug the each and every window
06-26-2006 10:16 AM
Hai Srinu
SAP Script:
YOu Can debug a SAP Script by activating debugger in two ways 1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.
1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.
2.You can debug the function module which generates the smartform.
Thanks & regards
Sreeni
06-26-2006 10:09 AM
06-26-2006 10:13 AM
Hi
The smartform generates a function, so you can debug it in the same way for an abap program.
U can go to function builder (trx SE37) and see the code generated from sf.
Now you should search a certain point by using the name of the node, here set a break-point and then run your print.
Max
06-26-2006 10:16 AM
Hai Srinu
SAP Script:
YOu Can debug a SAP Script by activating debugger in two ways 1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.
1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.
2.You can debug the function module which generates the smartform.
Thanks & regards
Sreeni
06-26-2006 10:18 AM
Smartforms:
===============================================================================================
Step by StepGood one):
http://www.allsaplinks.com/smartform_example.html
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
06-26-2006 10:20 AM
Hi srinu,
Yes its possible to debug each and every window of the smartform but the name of the window will not appear in the same way that you have written in the smartforms.
Procedure to debug the smartform
1.Execute the smartform.FM will be generated.Press display.
2.Now search on any internal table or field of the window at which you want to debug this will take you directly to the same window.You can put the debugger here.Execute the smartforms and start debugging it.
3.If you have to debug on the process line of the window then you can write break.It will debug in that window.
If you face any problem reply this thread.
Regards,
Mukesh Kumar
06-26-2006 6:02 PM
Hi Srinu,
Once u have activated your smartform, goto the Environment->Function Module name in the Menu bar. Copy the function module name and goto SE37 transaction where you can display the function module. Select the global search icon and enter the name of the internal table or the variable you have entered and select the icon in the "MAIN Program". Now the search will show all the places where that particular variable is used. Select any particular location in the code and set the break point. Now execute the smartform and the control will stop there at that particular break point.
Hope this solves ur issue.
Regards,
Tushar
06-26-2006 6:08 PM
HI Srinu,
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
Plz reward if it helps,
Laxmi.
06-26-2006 6:44 PM
hi srinu,
by putting the break point in the code of smartform code window u can debug the smartform
or
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.
another way is SFTRACE can be used for debugging SMARTFORMS
for details refer this link:
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
if u r problem is solved please close the thread
Regards,
naveen