02-01-2006 9:30 PM
Hi Friends,
I need help with the follwoing:
I have a portal link. I go to a transactioin within this link(menu path not Tcode I do not have any option here to find tcode) and enter some data. What I know is I need to debug a function module that gets called when I try to post this document. I had a breakpoint in the function module but it never stops me there.. Is there someother method to debug such functioin modules.(RFC enalbled).
Sorry friends if it is such a silly question..
Any help greatly appreciated.
02-01-2006 9:33 PM
02-01-2006 9:37 PM
Hi Phani,
It has to be a hard BREAK-POINT inside the function module.. If it is a std function module, you cannot debug it.. You have to execute it in R/3 & get inot debug mode..
Regards,
Suresh Datti
02-01-2006 10:38 PM
Hi Rich and suresh,
Rich I'm trying to simulate the process by testing the fm in se37.
And suresh... I had a hard break point in the code but it did not stop me in the fm. However I know for sure that this function module did get triggered.
02-01-2006 11:03 PM
02-01-2006 11:12 PM
It is not a standard function module... and When i try to post from the portal interface it gives me messages that are generated from the function module.. that way I know that this fm got triggered.
02-01-2006 11:18 PM
> I had a hard break point in the code
Is it a z function? Then you can make a break-point by writing something like this into your function module:
data: exitloop.
if <some_user_parameter is set>.
while exitloop = space.
endwhile.
endif.
This will trigger an endless loop if you have set the user parameter. You can then go to SM50 and debug the process (program/mode->program->debug) and set the variable exitloop = 'X' in the debugger to get out of the loop.
If it is not a z-function, it is a little bit harder.
02-01-2006 11:34 PM
Hi Phani,
Is it an RFC call? then you may be out of luck.. you say, you are getting back the messages from the function call.. where do you see them? in the portal? In that case, the method suggested by Robert may be the only way..
Regards,
Suresh Datti
02-01-2006 11:37 PM