‎2009 Sep 15 8:14 AM
Hi
I am using web based SRM.From here i am using an Contract that has to output a smartform.There is something wrong with my smartform and i would like to debug it.Could you please tell me how to do that?
thanks a lot.
‎2009 Sep 15 8:18 AM
Hi,
To debug a smartform follow steps:-
1. Goto transaction SMARTFORMS.
2. Give your smartform name and press F8.
3. You will be taken to a screen which shows a Function Module name.
4. Press display for that FM.
5. At the bottom of the code, there is a sub-routine PERFORM %GLOBAL_INIT.
6. Goto this sub-routine and check for the code in smartform programs lines.
7. Put a debug point.
8. Now display the smartform output for the contract using the t-code from R/3 .
You can now debug the code.
Hope this helps you.
Regards,
Tarun
Edited by: Tarun Gambhir on Sep 15, 2009 12:49 PM
‎2009 Sep 15 8:18 AM
Hi,
To debug a smartform follow steps:-
1. Goto transaction SMARTFORMS.
2. Give your smartform name and press F8.
3. You will be taken to a screen which shows a Function Module name.
4. Press display for that FM.
5. At the bottom of the code, there is a sub-routine PERFORM %GLOBAL_INIT.
6. Goto this sub-routine and check for the code in smartform programs lines.
7. Put a debug point.
8. Now display the smartform output for the contract using the t-code from R/3 .
You can now debug the code.
Hope this helps you.
Regards,
Tarun
Edited by: Tarun Gambhir on Sep 15, 2009 12:49 PM
‎2009 Sep 15 8:35 AM
‎2009 Sep 15 8:39 AM