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

debugging

Former Member
0 Likes
645

how to debugg a smartform .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
625

Different ways we can debug smart forms.

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

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

regards,

venkat

5 REPLIES 5
Read only

Former Member
0 Likes
626

Different ways we can debug smart forms.

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

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

regards,

venkat

Read only

0 Likes
625

my fav way is to obtain the Smartform FM name - go into your Smartform, click on Environment -> Func Module to get the name of the generated FM

NOTE: since the FM is generated by SAP, it will be different in your DEV/QA/PRD servers

when you have the FM, go to SE37 and perform a FIND for whatever code you are looking for - you need to click on "In Main Program" though, to find the code.

Read only

Former Member
0 Likes
625

hi,

Activate the Smart Form.

Go to Environment -> Function Module Name and get the automatically generated function module for the Smart Form.

Go to SE37 and display Attributes of the function module. Get the program name under general data tab.

Go to SE38 and display the program. In the last include ( INCLUDE /1BCDWB/LSFxxxxxxxxF01) contains the coding inside the Smart Form.

Set a break point in the program and DEBUG.

pls reward if helpful.

Read only

Former Member
0 Likes
625

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 only

Former Member
0 Likes
625

Gto transaction 'SMARTFORM_TRACE'