2007 Dec 30 4:41 AM
Hi friends,
Tell me the answers for below issues
1) How to debug the smartform?
2) I have the transaction code va01. For va01 tcode I have two user exits.If user is equal to first user first user exit wil execute.If user is equal to second user second user exit have to execute.How I wil achive this requirement.Where I have to write the code.
3) is it any direct method to debug the script?
Regards
kish
2007 Dec 30 4:55 AM
Hi Kishore,
1.
Check this matter.
For debugging -
1. Write BREAK POINT in the code window.
2. Put a break point on the call function in the driver program
3. Put a break point in the generated Function module.
OR
1) DEBUG Smartform:
1) One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be,
insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Hope this resolves your query.
Plzz Reward if it is useful,
Mahi.
2007 Dec 30 4:55 AM
Hi Kishore,
1.
Check this matter.
For debugging -
1. Write BREAK POINT in the code window.
2. Put a break point on the call function in the driver program
3. Put a break point in the generated Function module.
OR
1) DEBUG Smartform:
1) One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be,
insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Hope this resolves your query.
Plzz Reward if it is useful,
Mahi.
2007 Dec 30 6:13 AM
Hi kishore,
Thanq for giving points to me at last time questions.
1.We can debug the smartform in function module.
by using the static and dynamic breakpoints.
we have write the code in global definition level . we can debug there also by using /h.
2.i think we have 4 user exits for this tcode. we cant find which user to access the exit particularly, we can write the code in zinclude.
3.we can debug the script by going to the menu bar utiliteis in script->active bebug.
by using this we can debug.
please check it once.
please reward points, if it is useful.
regards,
satish.