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

SAP Script

Former Member
0 Likes
804

hi,

Can anybody tell me how to Debug SAP Script and its print program.Also can anybody just tell me how

trouble shooting is done in general,in SAP Scripts..

plz provide your valuable advice..

7 REPLIES 7
Read only

Former Member
0 Likes
760

hi,

Goto SE71.give the script name.goto utilites--->activate debugger.

Read only

Laxmana_Appana_
Active Contributor
0 Likes
760

Hi,

Check this :

activate the debugger in SE71 or execute the Program RSTXDBUG

one way is to 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.

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.

for the print program , you can set the break point in the driver program..

Regards

Appana

Read only

Former Member
0 Likes
760

Kevin,

You can access the debugger by placing breakpoints in your print program and/or activating the SAPscript debugger in SE71 via the Utilities menu.

Good luck.

Brian

Read only

Former Member
0 Likes
760

hi kevin,

goto <b>SE71</b>

click on Utilities->Activate Debugger

or use the program RSTXDBUG.

when u execute ur print program it will open the script in debug mode.

hope this helps,

do reward if it helps,

priya.

Read only

Former Member
0 Likes
760

hi Kevin,

for debugging scripts

there r 2 possibilities

1. go to se71>Utilities>go with acitvate debugger

2. execute the executable program <b>RSTXDBUG</b>in se38.

if your logic will goto debugging mode then u can specify the filed in the below list where do u exactly want to check then go with enter then u will get the specified value to that field at that point u can find out weather it is correct or not

it u find it help mark the points

Regards,

Naveen

Read only

Former Member
0 Likes
760

Hai Kevin

Go through the following

SAP Script:

YOu Can debug a SAP Script by activating debugger in two ways 1.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.

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

Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.

1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.

2.You can debug the function module which generates the smartform.

Regards

Sreeni

Read only

Former Member
0 Likes
760

hi kevin,

check this link:

[original link is broken]

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.

regards,

keerthi.