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

Debug

former_member778253
Active Participant
0 Likes
608

Hi,

How to debug a Smartform?

4 REPLIES 4
Read only

Former Member
0 Likes
578

whereever to want to debugg the smartforms write BREAK-POINT and execute. it will stop there..

assign pts if its usefull

Read only

Former Member
0 Likes
578

sivananda,

1) 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.

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

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

Read More here.

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

Don't forget to reward if useful....

Read only

Former Member
0 Likes
578

Hi,

Try with this:

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

Regards,

Bhaskar

Read only

mohammed_moqeeth
Active Participant
0 Likes
578

Hi Sivananda,

You can set <b>break "sy-uname"</b> within your smart form code sections and this will take you to the code sections in the function module of the smart form when the break point is reached. This way by timing the break points you can look at the code of the various nodes of your smart form.

<b>BREAK-POINT</b> can be used only in own program lines in smartform - not very helpful because it always stops until removed and generated again.

<b><u>Or you can use transaction SMARTFORM_TRACE.</u></b>

1. use transaction SMARTFORM_TRACE

2. in the SMARTFORMS, use utilities to show the function name. You can analyze this function in SE37 and set dynamic breakpoints as required. Lok at the SMARTFORM_TRACE to decide where to set break points.

Reward points for useful answers.

Regards,

Moqeeth.