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

INTERVIEW QUESTION

Former Member
0 Likes
1,058

question: how to debug a smartform

...........debug of smartform...is that mean that the code we enter in form design.....?

8 REPLIES 8
Read only

Former Member
0 Likes
938

Hi,

) DEBUG Smartform:

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.

For script Debugging: Execute RSTXDUBG program to activate the debugger or you can activate the debugger from SE71 utilities -> Activate Debugger

For Smartforms: You can put a breakpoint in the code or you can write explicity BREAK-POINT keyword to debug the smartform

Set the break point in initialization(Global Definitions--> Initialization) of smartform as :

BREAK <USERNAME>. --Works for particular user.

Please don't use BREAK-POINT this will apply all the users who are testing the smartform.

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.

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
938

Hi,

Refer to the link

Regards

Bala

Read only

Former Member
0 Likes
938

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,

Priyanka.

Read only

Former Member
0 Likes
938

hi,

use can use statement BREAK-POINT in coding of smart forn for debugging.

if useful reward some points.

with regards,

suresh.

Read only

Former Member
0 Likes
938

hi abhijeet,

u ca debugg the smatforms in 2 ways...

1) the code lines which u want to debugg...before that just write

BREAK <username>.

thats all..so when u run the transaction the cursor will stop at this breakpoint..

2) second way to debugg is execute the smartform....u will be getting a function module --> click on display button > search for the node in whcich u want to debugg...> after that click on breakpoint...

hope this will help u out..

please reward points in case usefull...

rewards,

prashant

Read only

Former Member
0 Likes
938

Tcode : <b>SFTACE</b> for Debugging the SMARTFORMS ....

go to the transcation code <b>trace active -> swith on.</b>

then goto your smartfrom end execute so that it will take you in debug mode ...

Girish

Read only

Former Member
0 Likes
938

Hi

Use the BREAK_POINT in the coding node of the smartform for debugging purposes.

Thanks

Swarna

Read only

0 Likes
938

I mean break-point in the code node of the smartform