cancel
Showing results for 
Search instead for 
Did you mean: 

debugging of smartform

Former Member
0 Kudos

hi

i want to no debugging procedure for smartforms. if any body help me by provind any with screenshots.

Thanks&Regards

sekhar rao

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

can any body provide debugging of smartforms with screenshots.

Former Member
0 Kudos

hi,

The the best way to debug the form is to put a breakpoint in the function module generated by the smartform.

steps:

Open the smartform we want to debug.

Goto Environment -> Function module name.

Open the function module in SE37. From the menu GOTO -> main program. Open the last include.

This incude contains the entire code ie the code we have written in initalization + form routines + program lines + sap generated code.

Even we can search for the text nodes, folders, templates, tables, graphics, address nodes etc with their names.

Put a breakpoint at any point you want.

If we issue any doc which triggers this form, when the control reaches the break point it will stop.

We can use SFTRACE transaction to know the sequence of the control flow.

If you want to break at each and every text that is printed on the output form put the break points in the forms.

1. %write_text to break at text element.

2. %WRITE_TEXT_MODULE to break at text module.

3. %WRITE_INCLUDE_TEXT to break at include text.

Please put a break point at the first sy-subrc check.

If the control reaches this point, you can find the name of the element in the varible NAME and the content in the text node in %TEXT.

rewards points ifuseful

regards

sandhya

Former Member
0 Kudos

Hi

Use SFTRACE to debug smartform

Former Member
0 Kudos

Hi,

1.1.One way to debug smartform is to debug the Function Module of that smartforms.

2. If you want to debug particular smartform node that the solution is, insert a "Program Line" just above the node you want to debug and this program line write a normal abap break-point.So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.

3) SFTRACE can be used for debugging SMARTFORMS.

Read More about SFTRACE here.

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

4.Generate the function module and display the function module place the break point where u need.

5.In the program lines you can put break-point or break username.

Regards,

Shiva(Reward if helpful).

Edited by: shiva kumar on Apr 18, 2008 6:54 AM