cancel
Showing results for 
Search instead for 
Did you mean: 

How to to Debug the Samrtform ?

Former Member
0 Kudos

Hi All ,

I wanted to debug a smart form where coding is done to know varibale values to fix one my issue . Can any body advise how can we in smart forms as we do in SAP Scripts .

Thanks ,

Dharma .

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

HI ,

U can put a break-point in

1. Program lines

2. Function module for that smartform

3. Initialization section of the smartform

Regards

former_member196280
Active Contributor
0 Kudos

Set break-point in your program line if you have any in your smartform, or goto SE37 and open the smartform function module and set break-point in source code and execute your SF

OR use Tcode SMARTFORM_TRACE.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

Check this info.

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

Test smartform:

1.after creating FM direct press F8 or Excute(button) then select print preview.

Hope this resolves your query.

Reward all the helpful answers.

Regards,

Omkar.

Former Member
0 Kudos

Hi Omkar,

I used the Tcode SFTARCE to debug the form. A trace has been created , but when I Try to display it , it is saying error " Trace could not be read from the database." . How can I see the Trace results . Since it is not online debugging as like in scripts ,How to use the Trace effectively to know values it fetching in runtime environment .

Q2) Can we use the SE72 styles in Scripts ? How ?

Thanks in advance ,

Dharma .

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

in code within program lines, write break user or brek-point.

this will trigge the break point.

but dont forget to remove before code reeview or release

Thanks

Shiva