cancel
Showing results for 
Search instead for 
Did you mean: 

how to debugg a script when the Required out put is like Fax or email

Former Member
0 Kudos

Hi this is Durga Prasad i have small doubt in scripts can any one clarify that one plz normally we will do that one with activating debugger but when a special requirement is like fax or e mail how we will do that one

"how to debugg a script when the Required out put is like Fax or email"

Thanks in advance

Durga Prasad.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

DEBUG Smartform:

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.

Read More here.

http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

script

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.

As per ur question there is nothing new with script debugging,

it is same as normal report debugging...

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

SCRIPT

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

Regards

Anji

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

np, you can still activate debugger from menu, utilities--> activate debugger... it will still take you to debugging mode for fax and email.

Regards,

SaiRam

Former Member
0 Kudos

Go to SE71 -> Activate Debugger for the SAPscript