cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug Smartforms?

Former Member
0 Kudos

Hi,

How to debug Smartforms?

Thanks

Sekhar

Accepted Solutions (0)

Answers (10)

Answers (10)

Former Member
0 Kudos

Hi,

Check this info.

Debug SF:

For Preview :

SMARTFORM-> execute->execute->pass values if require to import & table parameters ->execute-> on the pop up window give Printer name as LP01 and press print preview.

For debugging -

1. Write BREAK POINT in the code window.

2. Put a break point on the call function in the driver program

3. Put a break point in the generated Function module.

OR

1) DEBUG Smartform:

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.

Read More here.

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

OR

Four ways you can debugging.....

1.place SFTRACE inplace where we enter T_CODE and press ENTER.

after that press F8.

2 ./H

3 /SH

4.after generating the function module there is a button DEBUGGING

<b>Reward points</b>

Regards

former_member196280
Active Contributor
0 Kudos

Best and easiest way to debug smart form is by setting break-point in function module.

For getting function module name, in smartforms ..(menu)Environment --> function module name.

Regards,

SaiRam

Former Member
0 Kudos

Hi

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

or

Follow these steps.

1. Execute the smartform.It will open a FM in se37 screen.

2. Press Display.

3. Press find(CTRL+F).

4. Enter command here at which you want to put the break point.

5. Select the radio button 'in main program'.It will open the point at which you want to put the breakpoint.

6. Put the breakpoint here and execute the smartform again.It will stop at the point where you put the breakpoint.

Use SMARTFORM_TRACE to trace smart forms

Reward all helpfull answers

Regards

Pavan

Former Member
0 Kudos

Hi Sekhar,

For Debugging smartform we can use folloing step.

1. Execute the smartform and it will generate a function Module display the FM.

2. Take the node name from the smartform where you want to put the debug point.

3. Search the Node name in FM and put the session breakpoin.

4. Now execute the smartform it will stop at that point.

so here without making any modification( putting hardcoded breakpoints ) you can debug the smartforms.

Please let me for any more clarification.

Valuable answer should be rewarded.

Best Regards,

Rajesh Kumar

Former Member
0 Kudos

hi ,

In the Smartform, within the Code Node you can hardcode a normal abap Break Point ..

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

See the Below thread for how to debug the Smartforms

regards

reena

mohammed_moqeeth
Active Participant
0 Kudos

Hi chandra,

<u><b>Smart debugging:</b></u>--> Execute the smartform.It will open a FM in se37 screen.

--> Press Display.

--> Press find(CTRL+F).

--> Enter command here at which you want to put the break point.

--> Select the radio button 'in main program'.It will open the point at which you want to put the breakpoint.

--> Put the breakpoint here and execute the smartform again.It will stop at the point where you put the breakpoint.

On activating smartform it will generate one function moudle, take that name and go to SE37 , Put your generated FM name and display.. check the code where you want debug.. place the break point there .. come back and then execute your dirver program .. it will stop you at your break point.

<u><b>You can use SMARTFORM_TRACE to trace smart forms.</b></u>

Reward points for useful answers.

Cheers !

Moqeeth.

Former Member
0 Kudos

Hi,

There are two ways.

1. Debug the FM created by the form. go inside set the break-point there.

2. in your program lines, set hard coded break-point or break user. These should be removed manually once it is done

Regards

Shiva

Former Member
0 Kudos

A smartform generates a Function Module. Hence when you are in the smartform, click the execute button and it takes you to a function module(se37) transaction. Insert a breakpoint in the function module and go ahead and debug it without putting in a soft breakpoint in the code.

Former Member
0 Kudos

1.create a program lines node and use the statement BREAK sy-uname, now the control stops at this particular node in the runtime.

2.u can also place a soft break point in the generated function module of the smart form to debug

3. u can use the transactions <b>SFTRACE</b> and <b>SMARTFORM_TRACE</b>

check this link

http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/content.htm

Former Member
0 Kudos

hi Chandra,

Refer to these related threads

Regards,

Santosh

former_member150733
Contributor
0 Kudos

Insert a program line with break-point in it & execute the driver program.