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 A SCRIPT

Former Member
0 Likes
11,305

HI all,

Well and Wish,

I know only way to debug a script can u tell me the different possible ways to debug a script..??

Thanks and regards

Anjali

7 REPLIES 7
Read only

Former Member
0 Likes
10,472

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,

Santosh

Read only

Former Member
0 Likes
10,472

hi

This can done in two ways:

In the form Utilities->debugger / RSTXDBUG FM for debugging script

The Procedure for debugging SAP script is:

Generally SAP script contains the Layout and corresponding print program.

First go to SE71 and enter ur script name. In the same screen go to Utilities->click on activate debugger option.

Now go to SE 38 and enter ur Print Program name and execute the program.

Now you can debug the script Page wise and window wise.

regards,

madhu

Read only

Former Member
0 Likes
10,472

Hi Anjali,

If you already know the function module for that SAPscript you are talking about, create a breakpoint in that function module. Then run the program calling that sapscript so that you can view the changing of the content of the variables.

Regards,

JeCCas_DJ

Read only

Former Member
0 Likes
10,472

hi,

There are many ways.

1. in SE71 Utilities ->Activate Debugger.

2. Execute Program RSTXDBUG to activate Debugger.

3. To debug any sap program/script/popup create a file on desktop.

[FUNCTION]

Command=/H

Title=Debugger

Type=SystemCommand

Start executing your program and drop the file to the popup whenever you want to debug.

Hope these ways helps.

Regards,

Richa

Read only

Former Member
0 Likes
10,472

Hi

1. Se71---> open your form>system->Utilities--->Debug screen.

2. use /H transaction code...

Thanks

sasmita

Read only

Former Member
0 Likes
10,472

Hi Anjali,

Let me share my ideas with you.

For debugging the script we should stimulate the debugger as of mutual levels. Accomplish SE71 enter name of the layout set then selects UTILITIES> ACTIVATE DEBUGGER (Or execute RSTXDBUG program). Now open the print program situates break point wherever we want. Now if the print program had selection screen then execute else execute the standard t-code based on the requirement (e.g. F150 is for dunning) enter the necessary input values then execute. Now popup window asks for confirmation to open script in debugging mode. Select continue then your script will be opened in debugging mode.

What happens if I activate debugger either script or program level?

Sol: While debugging parameter values will not be displayed. Values will be displayed like ‘XXX’.

e.g. &v_total& = XXXXX.

Hope this helps you. Reply for quereis,

Rewarss for help ful answers..

Regards,

Kumar.

Read only

Former Member
0 Likes
10,472

Hi,,

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.

for details refer this link:

http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

Kishore