cancel
Showing results for 
Search instead for 
Did you mean: 

debugging smartform

Former Member
0 Kudos

what r the different ways of debugging smartform

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pavan,

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.

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.

or

SFTRACE can be used for debugging SMARTFORMS.

Read More here.

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

Regards,

Pravin

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

1) one can use hard code breakpoint.

2) user specific breakpoint.

3) breakpoint on the fly :

Open your Smartform and Copy the text as which you want to put a break point and press the Test Button. It will bring you the Function Builder. Display the FM. Press the find button.

In the find screen, paste the copied text (control+V) in the Text. Select the option "In main Program"

Press Enter. From the hit list, go to the source code by doing doubleclick on the search results. Now, put a Cursor on the line and press the "Set Breakpoint" button. That's it. So, when you run the application it will stop to this break point.

Thanks.

Former Member
0 Kudos

Hi ,

You can use BREAK-POINT hard code in your smartforms or use BREAK-USERID. Then it will stop .

Former Member
0 Kudos

Hi

Use the search Functionality for such issues. It has been answered many times:

https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=debug+smartform&adv=false&sortby=cm...

Vishwa.