Application Development and Automation 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: 
Read only

Debug SRM & Smartform

Former Member
0 Likes
590

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.

1 ACCEPTED SOLUTION
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
485

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

3 REPLIES 3
Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
486

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

Read only

Former Member
0 Likes
485

Thanks a lot ,it solved my problem.

Read only

Former Member
0 Likes
485

For smartforms debugging

1. goto SE80 0r SE37 and use genarated function module name,

2.Set break points at smartforms Elements (text elements, windows, code lines, loops)

or

Use Tcode - SFTRACE

Check this Thread ..

[;

Regards,

Ansari.