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

Smart forms

Former Member
0 Likes
1,238

hi,

could u please send me the details,how can we debugg the smartforms, is it possible to bebug the each and every window

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,180

Hai Srinu

SAP Script:

YOu Can debug a SAP Script by activating debugger in two ways 1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.

2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.

Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.

1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.

2.You can debug the function module which generates the smartform.

Thanks & regards

Sreeni

8 REPLIES 8
Read only

Former Member
0 Likes
1,180

Refer the following links:

Regards,

ravi

Read only

Former Member
0 Likes
1,180

Hi

The smartform generates a function, so you can debug it in the same way for an abap program.

U can go to function builder (trx SE37) and see the code generated from sf.

Now you should search a certain point by using the name of the node, here set a break-point and then run your print.

Max

Read only

Former Member
0 Likes
1,181

Hai Srinu

SAP Script:

YOu Can debug a SAP Script by activating debugger in two ways 1.In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.

2. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.

Smartform:I am afraid , we dont have any direct commands or direct procedure to debug a script. But in indirect ways we can do it.

1.Put a command line before where you want check the value of smartform and write the code "BREAK-POINT"->hardcoded debugging.

2.You can debug the function module which generates the smartform.

Thanks & regards

Sreeni

Read only

Former Member
0 Likes
1,180

Hi srinu,

Yes its possible to debug each and every window of the smartform but the name of the window will not appear in the same way that you have written in the smartforms.

Procedure to debug the smartform

1.Execute the smartform.FM will be generated.Press display.

2.Now search on any internal table or field of the window at which you want to debug this will take you directly to the same window.You can put the debugger here.Execute the smartforms and start debugging it.

3.If you have to debug on the process line of the window then you can write break.It will debug in that window.

If you face any problem reply this thread.

Regards,

Mukesh Kumar

Read only

Former Member
0 Likes
1,180

Hi Srinu,

Once u have activated your smartform, goto the Environment->Function Module name in the Menu bar. Copy the function module name and goto SE37 transaction where you can display the function module. Select the global search icon and enter the name of the internal table or the variable you have entered and select the icon in the "MAIN Program". Now the search will show all the places where that particular variable is used. Select any particular location in the code and set the break point. Now execute the smartform and the control will stop there at that particular break point.

Hope this solves ur issue.

Regards,

Tushar

Read only

Former Member
0 Likes
1,180

HI Srinu,

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

Plz reward if it helps,

Laxmi.

Read only

Former Member
0 Likes
1,180

hi srinu,

by putting the break point in the code of smartform code window u can debug the smartform

or

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.

another way is SFTRACE can be used for debugging SMARTFORMS

for details refer this link:

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

if u r problem is solved please close the thread

Regards,

naveen