Application Development 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: 

Debugging

Former Member
0 Kudos
112

can any one tell me how do we need to do debugging in realtime process on things like script,reports,ca,

1 ACCEPTED SOLUTION

Former Member
0 Kudos
76

hi

good

DEBUG SAPSCRIPT->

You can debug a SAPScript: Use Tools - Word Processing - Layout Set. Enter name of layout set and then Utilities - Activate Debugger.

A further note to the tip above was provided by John Verbestel: 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. This is quite handy when verifying which layoutset is being called (Verifying customizing settings).

Another way to set the SAPScript debugger is to run program RSTXDBUG. Thanks to Amanda for this tip.

REPORTS->You can execute the report using the /h ,putting breakpoint at a particular line or, write the BREAK POINT statement at any point of your program.

thanks

mrutyun^

4 REPLIES 4

Former Member
0 Kudos
76

1) DEBUG Smartform:

One way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.

2). DEBUG SAPScript

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.

Former Member
0 Kudos
77

hi

good

DEBUG SAPSCRIPT->

You can debug a SAPScript: Use Tools - Word Processing - Layout Set. Enter name of layout set and then Utilities - Activate Debugger.

A further note to the tip above was provided by John Verbestel: 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. This is quite handy when verifying which layoutset is being called (Verifying customizing settings).

Another way to set the SAPScript debugger is to run program RSTXDBUG. Thanks to Amanda for this tip.

REPORTS->You can execute the report using the /h ,putting breakpoint at a particular line or, write the BREAK POINT statement at any point of your program.

thanks

mrutyun^

0 Kudos
76

hi,

<b>debigging script</b>

goto UTILITIES->ACTIVATE DEBUGGER for debuging the scripts

<b>Debug program running in background </b>

One way of debuging programs which are already running in background is via transaction SM50. This displays a

list of process running in the server. In order to debug the program

go to Menu option :Program/Mode>Program>Debugging.

<b>REPORTS</b>

either use /h option during runtime or put break points.

<b>smart forms</b>

put break points.

Regards,

anver

pls mark hlpful answers

Former Member
0 Kudos
76

Hi,

You have lot ways to debug,

SAPSCRIPT:- you can execute Program RSTXDUBG or you can activate the debugger utilities --> Activae Debugger

SAMRTFORMS: you can debug the Function module or you can put the break-point in the SMARTFORM itself and do the debug

REPORTS: you can put the break-point where you need to start the Debug, while executing the screen will go into debug mode

MODULEPOOL: you can do the same as REPORTS

BACKGROND PROGRAMS:you can debug the background jobs, use the command BDUG

One way of debuging programs which are already running in background is via transaction SM50. This displays a

list of process running in the server. In order to debug the program go to Menu option:

Program/Mode>Program>Debugging.

Regards

Sudheer