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

Debugging a Smartform

Former Member
0 Likes
1,519

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
Read only

ferry_lianto
Active Contributor
0 Likes
1,489

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
Read only

Former Member
0 Likes
1,489

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

Read only

ferry_lianto
Active Contributor
0 Likes
1,490

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

Read only

0 Likes
1,489

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

Read only

0 Likes
1,489

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

Read only

0 Likes
1,489

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.

Read only

Former Member
0 Likes
1,489

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