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 smart form

Former Member
0 Likes
761

hallow

i doing a smart form and i add a code to it and i wont to debug it and i dont have any icon that i can push and start it hoe can i start the debugger?

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
735

Hi Shnya,

You dont have any push buttons in smartforms to activate debugging. Instead, You need to put break-point either in the program lines code in the smart form or placing a function module generated by the smart forms.

In your case, You can put a break-point in the code where you have written in smart forms.

Place <b>BREAK-POINT <USERNAME>.</b> as the first statement in your code block.

When you execute the smart forms again, it will stop here to debug the program lines in the smart form.

Thanks,

Vinay

4 REPLIES 4
Read only

Former Member
0 Likes
735

hi,

DEBUG Smartform:

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.

For script Debugging: Execute RSTXDUBG program to activate the debugger or you can activate the debugger from SE71 utilities -> Activate Debugger

For Smartforms: You can put a breakpoint in the code or you can write explicity BREAK-POINT keyword to debug the smartform

Set the break point in initialization(Global Definitions--> Initialization) of smartform as :

BREAK <USERNAME>. --Works for particular user.

Please don't use BREAK-POINT this will apply all the users who are testing the smartform.

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.

Thanks

Mahesh

Read only

Clemenss
Active Contributor
0 Likes
735

Hi,

you may try transaction smartformstrace - quite useful.

Regards,

Clemens

Read only

Former Member
0 Likes
735

In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap Break Point.

Clearly :

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.

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

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

Thanks

Seshu

Read only

Former Member
0 Likes
736

Hi Shnya,

You dont have any push buttons in smartforms to activate debugging. Instead, You need to put break-point either in the program lines code in the smart form or placing a function module generated by the smart forms.

In your case, You can put a break-point in the code where you have written in smart forms.

Place <b>BREAK-POINT <USERNAME>.</b> as the first statement in your code block.

When you execute the smart forms again, it will stop here to debug the program lines in the smart form.

Thanks,

Vinay