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: 

DEBUG

Former Member
0 Kudos
362

do we debug print program or forms in SAP SCRIPTS?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
171

Hi

That depends on your requirement. If you want to debug through print program follow this

First we need to put Break point in Print program where ever you want to stop the execution.

through coding you can follow this

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.

We have standard report for debugging SAP script i.e is RSTXDBUG.

Reward all helpfull answers

Regards

Pavan

10 REPLIES 10

Former Member
0 Kudos
171

Its depend on the issue and your requirement.

You can debug the same.

Regards,

Atish

Former Member
0 Kudos
171

Hi,

goto transaction SE71.

Utilities->Activate Debugger.

***do reward if usefull

vijay

Former Member
0 Kudos
171

IF u want to debug the scripts in SE71 Do this.

In Utilities--> Activate Debugger

Vasanth

Former Member
0 Kudos
171

hi

u can debug both based on yr requirement.

reward if helpful

Former Member
0 Kudos
171

Hi veerendra

yes we can

for form goto to the option

Utilities->Activate Debugger on

for print program it is normal set break pont

regards

sandhya

Former Member
0 Kudos
171

Hello,

For checking the sample out put of the script that we are developing,

open ur program in se71, in the menu-utilities->Printing test.

Reward all usefull answers.

Regards,

Rakesh

Former Member
0 Kudos
171

Hi,

<i><b>To Debug Sapscript:</b></i>

1) Goto transaction <b>SE71</b> and put the sapscript name and then goto <b>Utilities</b> -> <b>Activate Debugger</b>. After that run the Driver program and it will bring the Sapscript to Debug mode

Regards,

Padmam.

Former Member
0 Kudos
171

Hi,

Select the update debugging option in the ABAP debugging settings.

Regards

Arun

Former Member
0 Kudos
172

Hi

That depends on your requirement. If you want to debug through print program follow this

First we need to put Break point in Print program where ever you want to stop the execution.

through coding you can follow this

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.

We have standard report for debugging SAP script i.e is RSTXDBUG.

Reward all helpfull answers

Regards

Pavan

Former Member
0 Kudos
171

Hi

Welcome to SDN

see this for your query

SMARTFORMS DEBUGGING

For smartforms debugging you can do this.

1. Execute the smartform (execute button in SMARTFORMS transaction)

2. Take the generated function module and display it in SE80.

3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.

Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis

Tcode - SFTRACE

<b>SCRIPT</b>

There are 2 separate kinds of debugging available when you try to debug scripts.

1. Debugging the print program : This is the normal debugging we do for our report programs.

2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:

a .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.

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

refer to the link below

http://www.howforge.com/how-to-debugging-sapscript-form

Look at the BLOG here, it is well explained

/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging

<b>Reward points for useful Answers</b>

Regards

Anji