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

Scripts

Former Member
0 Likes
562

Anyone please tell me how to debugg through the scripts.

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
522

Hi Bharat,

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.

Hope this will help.

Regards,

Ferry Lianto

5 REPLIES 5
Read only

Former Member
0 Likes
522

Go to se71.

Chose from menu: Utilities->Activate Debugger.

Then, run the transaction which would trigger the script driver program.

Regards,

Ravi

Read only

ferry_lianto
Active Contributor
0 Likes
524

Hi Bharat,

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.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
522

run RSTXDBUG program before executing ur script or activate the debugger

Read only

Former Member
0 Likes
522

hi

you can debug scripts by running the program:RSTXDBUG.

Read only

Former Member
0 Likes
522

Debugging of Scripts

First Method:

SE71 -- Utilitites -- Activate Debugger

Second Method:

SE38 -- RSTXDBUG --