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: 

Debug Smart form

Former Member
0 Kudos

Hi

Anybody plz help me how to debug a smartform when I configured to some transaction like VF02.

regards

paul

Message was edited by: paul.gp gp

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Paul,

If you want to start the debugging from the print program so that you check the parameters, just place a BREAK-POINT before the call of the SMART Form function.

Inside the SMART Forms, its a little tricky situation as the code is generated. If you have done some coding inside the SMART form, then you can place a statement BREAK-POINT there and in debug mode figure out the problem.

However, if you look at the generated code, it will be very confusing.

Regards,

Ravi

Note : Please mark the helpful answers

8 REPLIES 8

Former Member
0 Kudos

Hi paul,

If it is your own smartform (editable) then create a CODE LINES and type BREAK-POINT in it.

Regards,

Wenceslaus.

Former Member
0 Kudos

Hi,

give break <username> in the program lines of your smartform.

This will enable you to debug any smartform.

Refer this thread:

Regards,

Gayathri

Former Member
0 Kudos

Paul,

If you want to start the debugging from the print program so that you check the parameters, just place a BREAK-POINT before the call of the SMART Form function.

Inside the SMART Forms, its a little tricky situation as the code is generated. If you have done some coding inside the SMART form, then you can place a statement BREAK-POINT there and in debug mode figure out the problem.

However, if you look at the generated code, it will be very confusing.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

Hai Paul...

here are the steps to debug a smartform..

Please 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.

or just refer this link..

Regards,

Srikanth.

Former Member
0 Kudos

Hi,

1.Execute the Smartform

2. Go to the funtion module

3. go to the object repository and subroutines tab in that. You will find the code of all the windows that u have in smartform.

4. You can now put soft breakpoints and run the smartform through the transaction VF02 as required. It will stop at the break points.

Another way is to hard code the break points in the smartform codes.

Thanks,

Rashmi.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

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.

Another way is try to execute the FM in debugging mode.

Kindly reward points by clicking the star on the left of reply,if it helps.

Former Member
0 Kudos

Hi Paul,

since the smartforms generates an FM ..

you can just run it Debug mode itself..

as suggested you can also hardcode break-point in necessary places..

regards

satesh

Former Member
0 Kudos

Hi Paul,

Check out these threads

hope this helps,

priya