cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript

Former Member
0 Kudos

What are the step by step process to debug sap script

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

1. Go to SE71 t_code pass your script name.

2. Go to UTILITIES menu select activate debugger.

3. Go to the t_code if it is delivery note go to vl02 or if it is invoice go to vf02 and pass the delivery note number or invoice number.

4. Go to delivery menu in that select issue output to screen or printer then select output type click on continue it will go to debug mode automatically.

Reward points!!

Thanks & Regards,

Vasudeva Rao

Former Member
0 Kudos

hi

good

activate the abap debug from the forma layout from menu system -- > utilities --> debug abap ,

tehn go into the print progrma and execute teh print program in the execute the program from theri and the script opens in the debug mode.

or

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.

thanks

mrutyun^

Former Member
0 Kudos

- go to SE71

- give name of your SAP Script

- goto Utilities -> Activate Debugger (on initial screen of SE71)

- Execute TCODE that calls your SAP Script

- You'l get a pop-up for debugging

- click ok & it'l start SAPScript debugging

Former Member
0 Kudos

Go to transaction SE71 and input form name that you want

Select menu Utilities -> Activate Debugger.

System will generate message that debugger success or fail.

After you run program that call this form, system will skip to form debugger.

_______________________

Please set a break point in side the smartform:

BREAK <USERNAME>.

Then at the time of print/ preview the program stops there.

Example : If you set the break point in initializationas

BREAK <USERNAME>.

Program stops at break point. After that use Serach and set more break points.

-


>Search the program logic/Textelement/Address via search and set the break point at that code.

____________________________________

1) 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) SFTRACE can be used for debugging SMARTFORMS.

______________________________________

1)goto tcode SFTRACE --> click "trace on"

2) Get the function module name and set break points in function module name.

______________________________________

There is a transaction 'SMARTFORMS_TRACE' (or was it 'SMARTFORMS_TRACE') which will give you quite helpful information.

______________________________________

In SAPSCRIPTS, you can 'Activate the debugger' in SE71 to start the debugging of script.

In SMARTFORMS, you can use BREAK-POINT (coded in any code window node) to initiate debugging of SF.

______________________________________-

SFTRACE can be used for debugging SMARTFORMS.

_______________________________________-

Go in smartforms, put a breakpoint where you want in the generated FM.

Then go in you're PO, go to messages, generated you're output and make sure in further data option 1 is selected.

Then run program rsnast00 with you're form settings, that's it!

You could debug sapscript like that also,

regards,

srinivas

Former Member
0 Kudos

Hi,

Here is the nice blog which will explain you very clearly

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

Regards

Sudheer

Former Member
0 Kudos

Hi,

Here is the nice blog which will explain you very clearly

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

Please close the duplicate threads

Regards

Sudheer