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 a Smartform

Former Member
0 Kudos

Hi,

I am trying to debug a smartform.How should I do it?

Though I hardcode a break...I am not able to break the print program.

How should I do it?

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

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

Regards,

Ferry Lianto

6 REPLIES 6

Former Member
0 Kudos

Hi,

Create a program lines node and write:

break-point or break username.

For program debug, set the breakpoint as you normally debug a program.

Regards

Subramanian

ferry_lianto
Active Contributor
0 Kudos

Hi,

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

Regards,

Ferry Lianto

0 Kudos

I tried to place soft break points ..but still it doesn't stop..I don't know why

0 Kudos

Ramana,

I hope you are putting soft break point in the function module. If so, please check if you are putting it after any condition... put it on the very first command of the FM....

Also please check if you are working on one client only...!

Thanks

0 Kudos

If this is an invoice, try placing the break-point in RLB_INVOICE. This report calls your smartform function, and so you should be able to watch as it calls the generated function module generated by the Smartform.

Former Member
0 Kudos

Hi ramana,

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

regards,

keerthi