‎2006 May 24 5:48 AM
Hi experts
can u plz give me the step by step procedure for debugging the SAP script and smartform
regards
venkat
‎2006 May 24 5:54 AM
Venkat,
I don't know about SAP Script but for SMART Form, create a PRORAM LINES object and hard code the break point in there and then when you execute the SMART Form, it stops there.
There is no way straight forward way debugging a SMART Form function as its a combination of generated code and the code that you have written. Debugging will not be that easy and you need to figure which section of the smart form you are currently processing.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 May 24 5:54 AM
Venkat,
I don't know about SAP Script but for SMART Form, create a PRORAM LINES object and hard code the break point in there and then when you execute the SMART Form, it stops there.
There is no way straight forward way debugging a SMART Form function as its a combination of generated code and the code that you have written. Debugging will not be that easy and you need to figure which section of the smart form you are currently processing.
Regards,
Ravi
Note : Please mark the helpful answers
‎2006 May 24 6:09 AM
‎2006 May 24 5:55 AM
Hi Venkat,
<u><b>SAP Script:</b></u>
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.
<u><b>Smartform:</b></u>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 program 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.
<i>Hope This Info Helps YOU.</i>
Regards,
Lakshmi
‎2006 May 24 6:10 AM
‎2006 May 24 5:56 AM
Hai Venkat
Go to SE71 -->Goto Utilities Menu and Select Activate Debugger
that will activate your Debugger
while running your Report when the execution goes to Open_form this will be triggered
Thanks & regards
Sreeni
‎2006 May 24 6:10 AM
‎2006 May 24 6:03 AM
HI
GOOD
DEBUT SAPSCRIPT->
PROCESS1-
activate the abap debug from the forma layout from menu system -- > utilities --> debug abap ,
tehn go into the print progrma and execute teh print program in the execute the program from theri and the script opens in the debug mode.
PROCESS2-
First we need to put Break point in Print program where ever you want to stop the execution.
After in SE71 give your form name and go to Utilities-->Active De-bugger.
Then go to your transcation like VF03(for Invoice or Credit memo) etc to see the print preview or print the form execute it.
When you execute it the the form Debugging will get activated and you can see your Form execution step by step.
SMARTFORMS->
In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap
Break Point.
THANKS
MRUTYUN
‎2006 May 24 6:15 AM
‎2006 May 24 7:09 AM
Hi,
They are two ways to debug the SAPScript.
1). Use Tools - Word Processing - Layout Set (SE71). Enter
name of layout set and then Utilities - Activate Debugger.
It is of no consequence which layoutset you enter when
selecting the SAPscript debugger. (Menu path:
Tools-Wordprocessing - Forms, Utilities - Activate Debugger)
The next layoutset called will invoke the debugger.
2). Another way to set the SAPScript debugger is to run
program RSTXDBUG.
When you debug Print program it is same as you debug any
other ABAP program. While when you debug SAPScript, you
actually debug the code ( scripting) you have written
SAPScript Form.
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
rgds,
latheesh