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

smart forms debugging

Former Member
0 Likes
1,003

Hi experts,

Any body pls explain how to debug smartforms ?

Is it necessary to write print program for smart forms ?

9 REPLIES 9
Read only

Former Member
0 Likes
950

Hi,

You can place a static breakpoint.Put the statement BREAK_POINT or BREAK <USER NAME> in one of the text elements.It is necessary for a smartform to have a driver program.Even if it is a std smartform there is a way to relate driver program and smartform.

Read only

GauthamV
Active Contributor
0 Likes
950

hi,

u can use SFTRACE transaction to debug smartforms.

reward points if hlpful.

Read only

former_member195383
Active Contributor
0 Likes
950

HI..

Insert a codeline in smartform. Write Break-point there.

Directly execute the smartform..U will be taken to the break point ...there u can debugg..

If u wanna see the values u pass to the smartform from the print progarmm , then put a break point in the print program and ecxecute.U can see the values that are passed in to the smartform..

Reward points if the above ans is useful

Rudra

Read only

Former Member
0 Likes
950

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

Thanks

Nayan

Read only

Former Member
0 Likes
950

Hiiii...

u can wither use SFTRACE else u can staticly put a break point using

break <username> in program line code .

however it would be simple to navigate using static break point personnaly i feel ....

reagrds \

chandu reddy

Read only

Former Member
0 Likes
950

Hi kaladhar,

u can put break point in program lines.

BREAK-POINT .

but this is static brakpoint

so u can also put break point in function module which is generated when smart form is activated

and also look into this transaction - SFTRACE

Regards,

Murali

Read only

Former Member
0 Likes
950

Hi,

Just copy the node name.

Find that node name in FM of smartform (giving radiobutton in main program while finding).

Put a brkpt .

And run the driver program which triggers the smartform.

Reward pts. if usefull.

Regards,

Dhan

Read only

Former Member
0 Likes
950

Hi,

You can debusg smart form by putting hard coded break point BREAK-POINT or BREAK- <SAP user ID>. but it is better to use BREAK- <SAP user ID>. as in this case for your user ID smartform will open in debug mode where as in the other case for every one in the system smartform will open in debug mode.

Hope this will be of some help!!!

Regards,

Lalit Kabra

Read only

Former Member
0 Likes
950

Hi,

You can use SFTRACE transaction code or you can hard code as BREAK-POINT ( BREAK USERNAME) or even you can put the SOFT BREAK POINT.

To place the soft break point execute the smartform (press F8 on smartform), now the generated function module will be displayed then go to the source code of this function module (press on Display button) then here in the displayed code you can put the break point in the selected line of code by pressing set/delete breakpoint button.

Reward points if it is helpful.