Application Development and Automation 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: 
Read only

how to debug the smart forms

Former Member
0 Likes
989

how to debug the smart form

9 REPLIES 9
Read only

Former Member
0 Likes
949

Hi Reddy,

1.<b>In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap

Break Point. </b>

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.

2.<b>Other 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.

</b>

3.<b>SFTRACE can be used for debugging SMARTFORMS.</b>

Read More here.

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

Read only

0 Likes
949

Hi

use this thread

download this ebook

http://www.sappressbooks.com/downloads/h955_preview.pdf

thanks

Shiva

Read only

Former Member
0 Likes
949

Hi Divakar,

You can debug a smart form by setting a break point in smart form (where you write the code). This can be done by writing the following stmt in ur smartform code.

BREAK_POINT

This should solve your problem.

PLZ REWARD POINTS IF HELPFUL

Read only

Former Member
0 Likes
949

write code in very first window of smartform and put break point.

as

1) break username e.g break divaka .

2) break-point.

Read only

Former Member
Read only

Former Member
0 Likes
949

Hi,

If it is not in the production system, use break-point <name> at the relavant place.Let me know if you have more Questions

Regards

Avi.

Read only

Former Member
0 Likes
949

hi srikanth,

u can debug in the following ways

1. using the static break points as above .. write in the initialization code..<b>BREAK xxxx</b>. xxx is user name.

2. open the function module(in se37) generated by smartform, and put the breakpoints.

3. u can use the SFTRACE. this tcode is not a debuuger, but u will get to know the errors and warnming in smartform, to do this open the tcode SFTRACE>press on the ACTIVE TRACE, the in antohter session run the smartform and com back. in the SFTACE bottom u will find an entry>press on the Disply -->in there u'll find all the warnings and error if exist.

Please Close this thread.. when u r problem is solved

Reward if Helpful

Regards

Naresh Reddy K

Read only

Former Member
0 Likes
949

at the time of smartform design or in program

Read only

petra_just
Active Participant
0 Likes
949

Hi Divakar,

1) in TC SMARTFORMS find out function module name using menu point "environment"

2) call se37 enter FM name and display, choose Attributes

3) double-click on program name, double-click on third include

4) Utilities/Breakpoint/set/delete

5) Then, search for the coding you have added and set another breakpoint there

Now, u can do a print preview or test the smartform from TC smartforms. In both cases, the debugger will be called at the place where u set the breakpoint.

You need to set one first breakpoint somewhere else first, else you get an error.

If it has helped you, please set answer as correct.

Regards

Petra