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: 

How to Debug Smartform?

former_member502730
Participant
0 Kudos

Dear All,

How to Debug a Smartform?

Regards,

Dharmesh

15 REPLIES 15

Former Member
0 Kudos

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

Former Member
0 Kudos

chk this thread

Former Member
0 Kudos

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

Former Member
0 Kudos

hi

check this thread

thanks,

priya

Former Member
0 Kudos

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

0 Kudos

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

former_member404244
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Regds

Sandip

Former Member
0 Kudos

Hi

good

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

Break Point.

thanks

mrutyun

0 Kudos

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

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

Former Member
0 Kudos

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

toshitjawale
Explorer
0 Kudos

This message was moderated.

0 Kudos

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