cancel
Showing results for 
Search instead for 
Did you mean: 

how to debug sap-script

Former Member
0 Kudos
1,147

hi

1) i heard that we have to put layout in debug mode and then go to print program and execute it also in debug mode.

am i right?

2)where do we check like compilation errors in layoutset.

regards

ratna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1. One way to start the script debugger is:

Se71->utilities->activate debugger.

This may be a time-consuming process. Instead, open a session and execute the program RSTXDBUG. Even if you follow the above menu path to activate the script, it will internally execute the program RSTXDBUG. So you are saving some time in going through all of the above processes.

2. Generally SAP script contains the Layout and corresponding print program.

First go to SE71 and enter ur script name. In the same screen go to Utilities->click on activate debugger option.

Now go to SE 38 and enter ur Print Program name and execute the program.

Now you can debug the script Page wise and window wise.

I hope it helps.

Best Regards,

Vibha

*Please mark all the helpful answers

Answers (5)

Answers (5)

raguraman_c
Active Contributor
0 Kudos

Hi,

Another option is Set the Break point in Driver Program, and then Activate.

--Ragu

Former Member
0 Kudos

Hi Ratna,

<b>RSTXDBUG</b> - SAPScript debugger

Debug SAPScript

You can debug a SAPScript: Use Tools - Word Processing - Layout Set.

Enter name of layout set and then Utilities - Activate Debugger.

It is of no consequence which layout set you enter when selecting the SAPscript debugger. (Menu path: Tools-Word-processing - 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.

When a Form is copied from one client to another .And If U try to display or change the form in the copied client .The possible error message cud be :

1.Form not found

Try coping again specifing the language .

2.IF IT dispalys an error message saying That the text file is inconsistent .

Then go to SE38 and Run “RSTXCHKO” .

It will ask for the form name ,then check all the checkboxes and then run the program.

Note : all Script related problems can be solved using Program ‘RSTX*’.

Reward points if this Helps.

Manish

anversha_s
Active Contributor
0 Kudos

hi,

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

<b><i>if hlped pls mark points</i></b>

former_member181962
Active Contributor
0 Kudos

For your second question, in se71 you can Check the syntax from the menu

Form->Check_>Definition/Texts

Regards,

Ravi

Former Member
0 Kudos

in se71 give ur form name , then in the menu u find utilities-> activate debugger and then

go to print program and start debug the print program..

U will get it ...

Regards,

Kumar