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

how to debug a smartform?

Former Member
0 Likes
1,661

I am facing deffficulty.. while debugging the my smartform.

this is called in e-recruitement portal.. i tried with smartform_trace and break-point and all.

how to do this?

Please help me.

Thanks

I am facing deffficulty.. while debugging the my smartform.

this is called in e-recruitement portal.. i tried with smartform_trace and break-point and all.

how to do this?

Please help me.

Thanks

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
842

One way is to create a PROGRAM LINES and put hard break point like BREAK <USER>.

The other way:

Copy the string where you want to place the break point.

Now, press the Test button on the smartform. You will reach to SE37.

Press Display.

Press Binocular ..(search), don't use Ctrl+F

Paste copied text into the box for the search

Select the "Main program" and press enter...

You will find the instance of the code.

Double click on it to open the editor.

Place cursor on your place and press the breakpoint button.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
842

Hi

DEBUG Smartform:

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.

Read More here.

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

LOGO on Smartform

1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)

2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description

3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures

4) Select any picture and set its Resolution in DPI

5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo

6) Set any other parameters if required, save and activate.

7) If there is only 1 Window in the forms, set it as Main Window in general attributes.

😎 Use TCode SE78 to upload new pictures and logos.

look at Thread Dynamic Graph in smartforms

Refer the links also -

Read only

Former Member
0 Likes
842

hey hi,

Follow the steps:

1. Note the function module name of the smart form.

2. in se37, suffix l(small L) after the last '/' in the function module name and suffix f01(Fzero1)as last 3 characters of the function module name.

3. run the function module. all the smartform will be there with the code.

4. put the breakpoint where required in the code.

5. run the smartform using the transaction, it will enter the debuggging mode.

Cheers!!

Read only

Former Member
0 Likes
842

Hi,

1.place SFTRACE inplace where we enter T_CODE andpress ENTER.

after that press F8.

2./H

3/SH

4.afyter generatingthe function module there is a button DEBUGGING..

in these ways u can do debugging..

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.

Also:

Place a code page in the smartform and hardcode breakpoint at a location from where you want to debug or place a breakpoint on the function module of the smart orm present in the driver program.

Reward points if found helpful……

Cheers,

Chandra Sekhar.