Application Development 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: 

Debug Smartforms

Former Member
0 Kudos

Hi Experts,

I have a SF containing some windows.

Suppose one window is not fit for the page and i got an error at run time.

No problem at activation.

When i am running the SF, after inputting the values i didnt get layout .. got an error window does not fit for page.

How to find out the which window is not fit for page through debugging...

How to debug SF (w/o program lines)...

thanks ..

sekhar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi chandra sekar,

Use Tcode SMARTFORM_TRACE to debug a smartform.

Just Press the Switch On button before testing the smartform and you can view the log after running the smartform.

The log will point out the exact place/window/node that is causing the problem.

Once done with the debugging switch off the trace.

Also have a look at the following SAP help Documentation;

[ Smart Form Trace|http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/content.htm]

Regards

Karthik D

6 REPLIES 6

Former Member
0 Kudos

After Creating Smart form ,you have to activate SF.

at the time of activation it Gives Function Module name.

Go to SE37 and give the function module name, Click on Display...Go to source Code

put Break point in that code.

Now go to your smart form and excute it will takes to that break point.

Hope this help full

Former Member
0 Kudos

former_member242255
Active Contributor
0 Kudos

in the FM tht is generated from the smartforms,find for SELECT and put a break point ther and then u can start debugging.

Former Member
0 Kudos
Option 1: Open the Function Module for the Smartform and set Break-point in the function Module and debug.
Option 2: In Smartform Creat a Program line at the start of the first windows and write *Break-Point* 
              in the program Line when you run you program it will take you to Debugging and check for
              which window the error has occurred.
Option 3: Check the Height and width of your page and check height and width of all windows.

Option 4: Adjust the Page and Window height through Graphical painter.

Regards,

Gurpreet

Former Member
0 Kudos

Hi chandra sekar,

Use Tcode SMARTFORM_TRACE to debug a smartform.

Just Press the Switch On button before testing the smartform and you can view the log after running the smartform.

The log will point out the exact place/window/node that is causing the problem.

Once done with the debugging switch off the trace.

Also have a look at the following SAP help Documentation;

[ Smart Form Trace|http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/content.htm]

Regards

Karthik D

Former Member
0 Kudos

Hi Sekhar,

If the window does not fit activation will happen anyway.But once execute the smartform it will give FORMATTING ERROR .

1.You can check it by clicking CHECK(ctrl+F4) before the activation.

OR

2.You can check it from FORM PAINTER there you can able to see the window size whether it exceeds the page or not.

For the second Question.

1.You can Debug Smart form by putting BREAK-POINT in the program lines node in the smartform itself.

OR

2. Once you excute the Smart form it will generate the Function Module on the MENU options the

path you should follow is as below.

GOTO->MAIN PROGRAM->this will lead to function Pool .

There you can find the includes.

Double click on User-defined Include-files and put a BREAK POINT where ever you want.

I hope this will help you.

Regards

Raj