cancel
Showing results for 
Search instead for 
Did you mean: 

how to debugg smart forms

Former Member
0 Kudos

plz tell me how to debugg smart forms

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I searched the Form printing forum with the terms 'debug smartforms' and found loads of answers to this question.

You may want to do the same.

Regards,

Nick

Former Member
0 Kudos

hello nick young yes i need same one plz send it to me

Former Member
0 Kudos

Hi,

1) You can write the code in smartform in program lines or in subrotines right . there you can hard code break point

break-point. or break username.

2) Let that after activating smartform your FM is /1BCDWB/SF00000109 go to se 37 and put break points in the function module.

Regards

Sandipan

Answers (3)

Answers (3)

Former Member
0 Kudos

hI,

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

REWARD POINTS IF USEFULL

REGARDS

FAREEADS

Former Member
0 Kudos

Hi Kalyan,

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,

KK

Former Member
0 Kudos

Hi

There are two ways to debug smartforms.

if you are in the devlopment client you can type 'break-point' inside the sorce code of smartform.

otherwise you have to execute the smartform and you get a functional module

click display and you will get into the coding of the FM. there you can set a break point. it will take effect while the program is executing.

Simple way of doing is like create a program Line and inside that give a statement like "BREAK UNAME".

Here UNAME is nothing but the username with which you are login inside the SAP.

So when you run the smartform for sure the control will stop at the point where you have given the BREAK statement.

<REMOVED BY MODERATOR>

chandu

Edited by: Alvaro Tejada Galindo on Apr 23, 2008 5:53 PM