Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

debugging scripts

Former Member
0 Likes
565

how do we debug scripts..anybody plz give me the detailed step wise process ...helpful answers will be given points.

4 REPLIES 4
Read only

Former Member
0 Likes
533

Hi,

Go to SE71

GIve the sapscript name..

In the menu..choose..UTILITIES -> ACTIVATE DEBUGGER.

Execute the program that is printing this form..

You will get a popup for sapscript debugging..

Press Enter button..

It will go through your texts in the sapscript..

Thanks,

Naren

Read only

Former Member
0 Likes
533

Hi,

Execute the program RSTXDUBG or in SE71, in the initial screen Utilities --> Activate debugger. then execute your transaction or the Script, a popup will come press ok there, then it will go SAPSCRIP debug mode.

See my Blog below for more details about the debugging ...

/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging

Regards

Sudheer

Read only

Former Member
0 Likes
533

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.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
533

Hi,

Errors in the print program or the form that occur when printing in dialog mode (not when printing in background mode or in the update task) can often be identified quite easily by using the SAPscript form debugger.

Activate the debugger by choosing Utilities ® Activate debugger in the Form: Request screen. You can then generate printer output in dialog.

A dialog box containing the default breakpoints appears.

Track each call of a SAPscript function module, each INCLUDE call, and each warning in the debugger.

To switch off the debugger, choose Debugger -> Exit in the debugger window.

For more information on the debugger, see Note 19104.

Regards,

Vara