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: 

debugging script and smartform

Former Member
0 Kudos
88

Hi all,

can any body say how to debug the script and smartform

Thands and Regards

7 REPLIES 7

Former Member
0 Kudos
51

hi friend

before posting ur query , just search in the forum itself there are many threads related to ur post,

********

This can done in two ways:

First u need to active debugging in scripts. then run the driver program.

First goto SE71 initial screen and enter the form name. Goto Menu Path Utilities --> Activate Debugger. and now u run the driver program. Now u get the script editor in debugging mode.

Secondly,

Program is RSTXDBUG.

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.

****

2) use SFTRACE transaction to debug smartforms.

jj
Active Contributor
0 Kudos
51

Take the smartform program

/h (in debugging mode)

Put break-point at statement CALL

one you reach the the CALL FUNCTION sfname (smartform name returned from

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' )

Click on Overview tab in debugging mode

In the Name if you double click, you will directly reach that code,

Put the break-point. then you can reach that code during debugging.

Former Member
0 Kudos
51

Hi,

1)go to se71-> utilities -> activate debugger.

or RSTXDBUG for debugging script .

2)SFTRACE can be used for debugging SMARTFORMS

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

or

IN the PROGRAM LINES of the SMARTFORM

write BREAK-POINT

Regards

Kiran Sure

Former Member
0 Kudos
51

Hi mohd noor,

For debugging SAP script

1. go to se71,give your form name.

2. go to menu ,utilities->activate debugger

For debugging smart form

1.give the command break-point <Your User name>.

Regards,

Charumathi.B

bpawanchand
Active Contributor
0 Kudos
51

hi

You can debug a script in two ways one is goto se71 and utilities-->activate debugger or

goto se38 and execute the program RSTXDBUG in both the cases the script will open in debug mode

Former Member
0 Kudos
51

hi,

in the initial screen on se71 go for UTILITIES and then ACTIVATE DEBUGGER and while testing the form u can go in the debug mode and if u want to cancel u can do it from there.

with luck,

pritam.

Former Member
0 Kudos
51

Hello dear..

*DEBUGGING SAP SCRIPTS*

This can done in two ways:

1. In the form Utilities->debugger / RSTXDBUG FM for debugging script

2.The Procedure for debugging SAP script is:

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.

After that you need to go to your transaction like

VF03/fbz5/.. and execute it .

DEBUGGING SMARTFORMS

Place the break-point in program lines or in function module of the smartform or SFTRACE.

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.

Best of luck,

Bhumika