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 Smartform?

Former Member
0 Likes
6,138

Dear All,

How to Debug a Smartform?

Regards,

Dharmesh

15 REPLIES 15
Read only

Former Member
0 Likes
2,201

Hi Dharmesh,

When editing the smartform, you can get the function module name (which is generated by the smartform definition) by Environment > Function Module Name from the menu.

In the function module, you can search for the relevant code you are trying to debug. It is helpful to search for names of variables etc.

Cheers,

Martin

Read only

Former Member
0 Likes
2,201

chk this thread

Read only

Former Member
0 Likes
2,201

hi Dharmesh,

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

if this is useful don't forget to reward the point

Regards,

naveen

Read only

Former Member
0 Likes
2,201

hi

check this thread

thanks,

priya

Read only

Former Member
0 Likes
2,201

u can set a break point in smartform code window.

U HAVE SET LIKE THIS

BREAK-POINT

I think this will work..

Thanks

Vikranth Khimavath

Read only

0 Likes
2,201

You have to hard code BREAK-POINT externally in the code where you want to Debug in the Smart forms.

Read only

former_member404244
Active Contributor
0 Likes
2,201

Hi,

u can also debug the smartform like this.

When u generate the smartform it will giv ethe smartformname.

Now go to se38 and give sapl(smartform name), u will get all the includes.

Please reward ponits if u fine helpful.

Regards,

Nagaraj

Read only

Former Member
0 Likes
2,201

hi,

in the program lines place the break point on the cpde you write there or if you have any form routines written then you can use what nagraj have said and go into the includes and place the break point over there

Read only

Former Member
0 Likes
2,201

Inside the "Programming Line" of smartform, write hard-coded break point (Break User_name or Break-Point). it will stop there.

Regds

Sandip

Read only

Former Member
0 Likes
2,201

Hi

good

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

Break Point.

thanks

mrutyun

Read only

0 Likes
2,201

And what if you want to debug on the Production server?! You can't hard-code a break point.

Read only

2,201

HI Dharmesh,

u can also debug smartforms by :

1. apply 'BREAK-POINT' in driver program

2. apply the breakpoint in genrated funtion module

3. hard code the breakpoint in smartform itself while

writing codes.

4. But in production u cant

write break point in smartform. So overcome this , see

below method.

Tcode > smartforms > F8>

u will get a FM exp : /1BCDWB/SF00000138

Now go to SE38 and add 'L' before S and add 'F01' and the

end. So this will become /1BCDWB/LSF00000138F01

now add break point where ever u want.

BEst Regards,

Raja

Read only

Former Member
0 Likes
2,201

Hi ,

You can debug the Smartform by putting the break point on the GLOBAL INIT in the Function Module of the form.

Hope it will help you,

Jatender

Read only

toshitjawale
Explorer
0 Likes
2,201

This message was moderated.

Read only

Former Member
0 Likes
2,201

Hi,

please follow the below procedure.

Tcode (Smartforms) ->enter smartform name and execute->function module generated->in the menu goto -> main program -> find ->search for the statement where you want to put the break point and execute the smartform . it will go to debugging mode.

thanks and regards,

Nomitha