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

how do we debug a sapscript and a smartform

Former Member
0 Likes
448

how do we debug a sapscript and a smartform.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
416

Script:

Se71 -> Enter the forname and go for utilities and activate debugger.

U can start debugging.

Similarly u can go for samrtform also.

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
417

Script:

Se71 -> Enter the forname and go for utilities and activate debugger.

U can start debugging.

Similarly u can go for samrtform also.

Regards

Read only

Former Member
0 Likes
416

Hi,

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

For Smartforms: You can put a breakpoint in the code or you can write explicity BREAK-POINT keyword to debug the smartform

Regards

Sudheer

Read only

anversha_s
Active Contributor
0 Likes
416

hi,

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.

rgds

anver

pls mark points if hlped