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

How to debug a smart form ?

Former Member
0 Likes
1,430

Hi experts ,

Can any of you please explain how to debug the code inside a smart form?

Thanks in advance

regards,

Ashwin.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,402

hi

hard code ' break-point' inside the SF code & excute the driver program

this will help u...

if ...

reward..

reg

veera

Hi experts ,

Can any of you please explain how to debug the code inside a smart form?

Thanks in advance

regards,

Ashwin.

11 REPLIES 11
Read only

Former Member
0 Likes
1,402

Hi Ashwin,

You must create a Program lines element at the location where you want to start the debugging and create a hard break-point.

break <your user name..

Regards,

Ravi

Read only

Former Member
0 Likes
1,402

hi dude,

put a break-point in the program lines of a particular node or in the routines of the layout wherever it is required.

Regards,

alson.

Read only

Former Member
0 Likes
1,403

hi

hard code ' break-point' inside the SF code & excute the driver program

this will help u...

if ...

reward..

reg

veera

Read only

0 Likes
1,402

Hi,

Can you please elaborate on hard coding break point,I am not able to get it ?

Thanks in advance

regards

ashwin.

Read only

0 Likes
1,402

Another way is to execute the smartform.It will go to FM screen.Go to display.Search here the line on which you want to put the breakpoint.Put the break point and execute your program

Read only

0 Likes
1,402

hi ..

did u have codding in smart form ....

then simple ' write ' BREAK-POINT' where u want to debug....

excute ...

regards

veera

Read only

Former Member
0 Likes
1,402

Hi Ashwin,

Create a Program Lines. Insert BREAK-POINT there and activate the smartform.

After activation run the driver program and it will halt the the point where you have inserted the break point.

Thanks and Regards,

Kunjal

Read only

Former Member
0 Likes
1,402

Hi Ashwin,

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

Read only

Former Member
0 Likes
1,402

u can use sftrace transaction

Message was edited by:

venkata k

Read only

Former Member
0 Likes
1,402
Read only

Former Member
0 Likes
1,402

Hi Aswin,

U just simple write 'Break-point' in ur smart form code where ever u needed and run the driver program.