http://www.kodyaz.com/articles/sap-how-to-debug-smartforms-debugging-smartform-sap-abap.aspx
Debugging SmartForms using Function Module
If you want to debug Smartform document in non-modifiable client, then you can try debugging Smartforms Function Module using soft break point.
First you need to find the function module name of the target SmartForm for debugging.
If you do not know how to get the function module name of the SAP Smart Form, please read the Smart Form tutorial titled How to Find SAP SmartForms Function Module Name.
Without knowing the function module name, we can not debug SmartForms in non-modifiable clients.
After you find the function module name, we can now display the ABAP source codes of the SSF FM (Function Module) using the SAP Transaction SE37.
Within the ABAP codes of Smartform FM you can put a soft break-point any where suitable for your debugging Smartforms purposes.
It is better to copy the node name or some parts of the ABAP code in the SAP Smartform and search the text within the SE37 displayed source code of the Smartforms function module (FM).
