‎2006 Jul 31 6:10 PM
hi,
Can anybody tell me how to Debug SAP Script and its print program.Also can anybody just tell me how
trouble shooting is done in general,in SAP Scripts..
plz provide your valuable advice..
‎2006 Jul 31 6:15 PM
hi,
Goto SE71.give the script name.goto utilites--->activate debugger.
‎2006 Jul 31 6:15 PM
Hi,
Check this :
activate the debugger in SE71 or execute the Program RSTXDBUG
one way is to 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.
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.
for the print program , you can set the break point in the driver program..
Regards
Appana
‎2006 Jul 31 6:17 PM
Kevin,
You can access the debugger by placing breakpoints in your print program and/or activating the SAPscript debugger in SE71 via the Utilities menu.
Good luck.
Brian
‎2006 Jul 31 6:20 PM
hi kevin,
goto <b>SE71</b>
click on Utilities->Activate Debugger
or use the program RSTXDBUG.
when u execute ur print program it will open the script in debug mode.
hope this helps,
do reward if it helps,
priya.
‎2006 Jul 31 6:35 PM
hi Kevin,
for debugging scripts
there r 2 possibilities
1. go to se71>Utilities>go with acitvate debugger
2. execute the executable program <b>RSTXDBUG</b>in se38.
if your logic will goto debugging mode then u can specify the filed in the below list where do u exactly want to check then go with enter then u will get the specified value to that field at that point u can find out weather it is correct or not
it u find it help mark the points
Regards,
Naveen
‎2006 Jul 31 6:37 PM
Hai Kevin
Go through the following
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.
Regards
Sreeni
‎2006 Jul 31 6:43 PM
hi kevin,
check this link:
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.
regards,
keerthi.