05-20-2009 5:58 AM
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
05-20-2009 6:24 AM
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
05-20-2009 6:05 AM
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
05-20-2009 6:06 AM
Hi,
check out this wiki, this explains how to debug:
Thanks,
Krishna
05-20-2009 6:06 AM
in the FM tht is generated from the smartforms,find for SELECT and put a break point ther and then u can start debugging.
05-20-2009 6:12 AM
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
05-20-2009 6:24 AM
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
05-20-2009 6:54 AM
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