cancel
Showing results for 
Search instead for 
Did you mean: 

smartform debgging

Former Member
0 Kudos

how to do debuggin in smartfroms?

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

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.

SFTRACE : SFTRACE can be used for debugging SMARTFORMS

SFTRACE information link:

http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm.

pls reward if helpful.

Former Member
0 Kudos

Hello,

Two options,

1st option

Put the sample code in the program lines

if sy-uname = 'XYVVV'.

break-point.

endif.

2 option.

i) Activate the form.

ii) It generates the funcation module name.

iii) Click diplay on the function module and then place the function module as you place in the funaction module.

Former Member
0 Kudos

Hi,

Varsha,

u hv two ways debug smartform

1) keep a break point in program lines.

i.e. Create Program Lines

---> in that Break-point.

2) Execute u r smart form

stop at function module screen

---> Click on Display

-


> Goto -


> Main Program

-


> Double click on last include

-


> There u will find the parameters those u hv declared in the smart form..

Keep the break point which u r required Position.

one more method is there SFTRACE..

it will work

with Regards,

Kiran.G

Former Member
0 Kudos

Hi,

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 Smart form:

1) One way to debug smart form is to debug the Function Module of that smart forms.

If you want to debug particular smart form 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 smart forms, 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

Regards

Kiran Sure

Former Member
0 Kudos

Can any one explain about the SFTRACE??

Arun Joseph

Former Member
0 Kudos

hi,

Place the break-point in program lines or in function module of the smartform or SFTRACE.

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

Regards,

Shiva.

Former Member
0 Kudos

Hi,

Activate the smartform ,Then a function module is generated.

go to se37 provide that FM and display it.here you can set the break points and debug it.

One more way is in the smartfrorms

go to program lines and keep the BREAK-POINT OR

BREAK ID .

The other way is

1. Execute the smartform (execute button in SMARTFORMS transaction)

2. Take the generated function module and display it in SE80.

3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.

Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis

Tcode - SFTRACE

Regards,

Raj.