cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT

Former Member
0 Kudos

Hi Gurus,

Please tell me regarding sap script debugging.....we can active the debugger by the following path:

Utilities>active debugger....

but i wanna know whats the need of this debugger in script????what are the shortcuts used for this???

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi reema,

good question.....in general debugger is used to debugg your code step by step...

the use of debugger in sapscript is also same....

u can activate the debugger in sapscript by following way:

Go to transaction SE71 --> Menu Utilities --> Activate Debugger

Now once the debugger is activated....when ever u will execute that particular script in a particular transaction it will be going in debugging mode..

In debugging you can see wat values the texts are returning step by step...

thats all....

u can also activate the debugger by going to transaction SE38 --> program RSTXDBUG --> Execute.

Regards,

Prashant

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Reema,

I have writen a Blog on this Script Debugging with all the shortcuts,

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

Regards

Sudheer

Former Member
0 Kudos

Hi Reema,

Check this blog

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

When we want to debug the SAPSCRIPT, we need to first activate the debugger, we have 2 ways to activate the Debugger.

1) Execute the program RSTXDBUG

2) Go to SE71, from the initial screen enter the form name and press Utilities --> Activate Debugger

When we are in the Debug screen,

3.1) F5 will be debug filed by field, that means if a single line is having 5 fields, if we press the F5 this will do field by field,

3.2) F6 will be line by line, that means when we press the F6, it will debug the line and it will go to the next line. F7 also do the same way

3.3) F8 will be very useful when we have any include statement in the SCRIPT, if any include is there and we press the F5 or F6 then this will go that Include (normally SO10 or any transaction text), then if we want line by line debugging then we can press the F5 or F6, or if you want to execute that in a single shot then press the F8, then the debugger will be executed that include and come back to the Script debugging.

Some times in the script, we may right lengthy lines, if we want to debug that whole line, we have an option called Left/Right, this we will find the Debug screen of the script, there is a Push button, we can make use this button to debug.

We can put the breakpoints in the SCRIPT DEBUGGER also, just press the BREAKPOINT Pushbutton from the debugging screen or press EDIT --> Breakpoint

If we want to debug the print program from the SCRIPT DEBUGGER, just press SHIFT+F7 or EDIT --> ABAP Debugging

If we want to see the Windows which are defined in the forms, just press the Go to --> Form --> Windows .if we want to see the pages go to --> Form --> pages. Here we have an option to see the page wise window also go to --> Form --> page Windows

If we want to see the paragraphs which are defined in that script, press go to --> Styles --> paragraphs.

If we want to see the Character formats which are defined in that script, press go to --> Styles --> Character Strings.

If we want to see the Page formats which are defined in that script, press go to --> OTF --> Page.

If we want to see the Elements which are used in the Script, then press go to --> Text Elements --> Form Elements.

If we want to see the commands which are used in the script, press go to --> Commands --> List

Finally, if we want to exit from the SCRIPT DEBUGING, simply press Debugger --> Exit

Thanks,

Vinay

Former Member
0 Kudos

Hi Reema,

You can debug a SAP-Script using the path Utilities--> Activate Debugger .Also the other way is to run the program RSTXDBUG in SE38. Then execute the transaction whichever is using the scripts to display the output .Then we can know what is happening as we would enter into debugging mode of the scripts.we can know where from the data is comming and all sorts of information needed.

I think this answers your query.

Note: If your query is answered please rate appropriate reward.

Thanks & Regards,

Ram

Former Member
0 Kudos

Hi,

U can use debugger using menu path utlities -- activate debugeer... this will activate debugger and will start when u run program.

Generally debugger is used to check rutime behaviour of program and to detect errors at runtime.. if , any variable is not showing correct value u can debugge to find out variable values in run time and where it is going wrong.. it is v helpful to find error at runtime...

Jogdand M B

dev_parbutteea
Active Contributor
0 Kudos

Hi,

Actually in sapscript debugger you can check whether your variables are getting values, and whether it is being printed or not!