Tuesday, July 15, 2008

How to Debug Smartforms

Yesterday Kak Mus came to me. She said something wrong with invoice form. User cannot print and preview it. The problem is she cannot simulate the same problem in DEV. So that means I had to debug in QAS. Woo..very tough because the easiest way to debug is to add break line with your user ID in the coding.

add 'break user_id' in your coding

I have no authorization to change the program in QAS, so I used function module to debug it. Kak Herma taught me about this. Thanks Kak Herma. It was really useful.

click Environment > Function Module Name


a pop-up window will appear with function module name...copy it..


go to tcode SE37 and display the function module and break anywhere in the coding...

I found the error message in the function module. Even though the message is not specific, but at least I got a clue what and where the error came from.

Sometimes smartforms are ‘crazy’.Haha.Very difficult to debug it rather than sapscript. So above tips may help who are working with ABAP to debug smartforms.hehe.

Is this article helpful? Please leave comment... :)

2 comments:

abaperscafe said...

very helpful. Thanks

Anonymous said...

wow,thank you that was very helpful!