04-05-2006 1:42 PM
04-05-2006 1:46 PM
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
04-05-2006 1:50 PM
04-05-2006 1:53 PM
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
04-05-2006 1:55 PM
04-05-2006 2:43 PM
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
05-17-2006 10:36 AM
You have to hard code BREAK-POINT externally in the code where you want to Debug in the Smart forms.
05-17-2006 11:23 AM
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
05-17-2006 11:52 AM
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
05-17-2006 11:54 AM
Inside the "Programming Line" of smartform, write hard-coded break point (Break User_name or Break-Point). it will stop there.
Regds
Sandip
08-02-2006 1:10 PM
Hi
good
In the Smartform, create a Code Node and within the Code Node you can hardcode a normal abap
Break Point.
thanks
mrutyun
01-19-2007 12:03 PM
And what if you want to debug on the Production server?! You can't hard-code a break point.
03-15-2010 4:53 AM
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
03-15-2010 4:57 AM
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
08-14-2013 2:53 PM
10-10-2019 11:14 AM
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