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

Smartforms

former_member386202
Active Contributor
0 Likes
446

Hi friends,

How can we debug the smartform on live system ?

Thanks,

Prashant

4 REPLIES 4
Read only

Former Member
0 Likes
425

Hi,

SMARTFORMS DEBUGGING

For smartforms debugging you can do this.

1. Execute the smartform (execute button in SMARTFORMS transaction)

2. Take the generated function module and display it in SE80.

3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.

Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis

Tcode - SFTRACE

Regards,

Priyanka.

Read only

Former Member
0 Likes
425

hi,

U type a statement called <b>BREAK-POINT</b> before the first occurance of field or table u want to check. Then save and activate the form. When u use it in VF03, select the output type of the billing document and click tick mark or press enter in the dialog box. It will take u to the debugging screen. There u can check the values of field and tables. Mostly, debugging the smartform is not advisable. Bcoz., it won't give u the print screen of the smartform. Instead it takes to debugging screen. Endusers may not know to come out of the debugging screen.

Place a break-point in the code and check.

Try and reward if useful.

Read only

Former Member
0 Likes
425

Hi ,

I think you will not have authorization to debug on live systems. If you have authorization then following are the ways of debugging

1) If you want to debug only the smartform ( I mean if you are not executing the smartform with any other transaction) then you can debug the smartfrom using genereated function module. When you execute the smartform first it will take you to the funcation module and execute this function module there you will have execuiton button and debugging button just select the debugging button it will take you to the debugging screen.(OR)go to Display function module and put break point where ever you need.

2) If you are executing using some transaction then you cant see function module display. In that case before executing the transaction, first execute the smartform and see the funcation module name and go to that funcation module and put break points where ever you need.

3) if you can change the code, Then go to programme line where ever you need and put user specific break points ( Like BREAK USER) and activate. I think since you are saying live systems you cant change the code.

Thanks,

Nageswar

Read only

Former Member
0 Likes
425

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.

____________________________________

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.

______________________________________

1)goto tcode SFTRACE --> click "trace on"

2) Get the function module name and set break points in function module name.

______________________________________

There is a transaction 'SMARTFORMS_TRACE' (or was it 'SMARTFORMS_TRACE') which will give you quite helpful information.

______________________________________

In SAPSCRIPTS, you can 'Activate the debugger' in SE71 to start the debugging of script.

In SMARTFORMS, you can use BREAK-POINT (coded in any code window node) to initiate debugging of SF.

______________________________________

SFTRACE can be used for debugging SMARTFORMS.

regards,

srinivas