cancel
Showing results for 
Search instead for 
Did you mean: 

hw to debug sap script

Former Member
0 Kudos

Hi All,

I have SAP Script; Please let me know how to debug that..?

Akshitha.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

or

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.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Feb 21, 2008 5:03 PM

Answers (8)

Answers (8)

Former Member
0 Kudos

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,

Bhaskar

Former Member
0 Kudos

Hi,

To debug a script it is better if you do with some transaction data.

For example if you are issuing a SD delivery document for output, first activate debugger in SE71 for your layout set, then put a breakpoint the print program( In the first executatble statement).

Now issue output using tcode:VL03n(delivery document output). This will automatically take into Script debugger.

Regards,

Ashok

Former Member
0 Kudos

hi,

There are 2 separate kinds of debugging available when you try to debug scripts.

1. Debugging the print program : This is the normal debugging we do for our report programs.

2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:

a .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.

b. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.

refer to the link below

http://www.howforge.com/how-to-debugging-sapscript-form

Look at the BLOG here, it is well explained

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

Former Member
0 Kudos

Hi

in se71--menu bar selectUTILITIES-ACTIVE DEBUGGER.

Former Member
0 Kudos

Hi,

Step1: Go to se71

Step2: Type the Script name

Step3:On the menu bar:Utilities-->Activate debugger

Step4:Press on display button

Step 5:Execute the script

Then the script will be in debugging mode

Press F5/F6/F7/F8 as your requirement.

Former Member
0 Kudos

Hi Akshitha,

U just need to go to 'Utilities' -> 'Activate debugger' in SE71 to debug SAPscript.

Regards,

Aparna.

Former Member
0 Kudos

Hi go to utilities and activate debugger.

regards,

kavitha

former_member624107
Contributor
0 Kudos

Hi,

execute the program

RSTXDBUG and then execute the driver program fro the script.

Reagrds

Sheeba

amit_khare
Active Contributor
0 Kudos

For script Debugging: Execute RSTXDUBG program to activate the debugger or you can activate the debugger from SE71 utilities -> Activate Debugger