06-11-2009 8:24 AM
Hi Experts,
I am calling a Z function module created by me like this:
When I do F5 while debugging, the debugger does not enter the FM at all.
CALL FUNCTION 'ZZBAPI_BUPA_ROLE_ADD' IN UPDATE TASK
EXPORTING
businesspartner = ls_but000-partner
businesspartnerrole = 'BUP002' . "Prospective Customer/Prospect
It is working in sandbox system but is not working in development system.
I have put the same attribute in processing type as update module and start immediately in the attribute section of the FM. I have also activated it but it is not working in development system.
Can anybody tell me the fix for this problem?
Regards,
Sangeeta.
06-11-2009 8:40 AM
Hi Sangeeta,
Execute your Function Module from se37 and then see if it really works or not.
If its working in se37 then use sy-subrc = 0 when calling this FM.
if subrc NE 0 while debugging, check the last statement before calling the FM.
Hope it helps.
Regards,
Ibrar
06-11-2009 8:42 AM
Hi,
If you have used the xtension With update task it will not go inside the function module... To debug it first you have to remove the UPdate task extension , debug and test it adn then puit it back again...
06-11-2009 1:55 PM
Is anybody having the answer as I have not been able to figure out.
In sandbox system, the FM is working fine but in development system the FM is not getting invoked for CRM Web UI only.
I tried to debug it by saving update debugger but it is not working.
06-11-2009 2:05 PM
Hi,
Here is what you can do, put a break point in the first line of the function. And make sure there is a commit work implicit or explicit after the function call.
Because only a commit work will only tigger the call to the function when you use the 'IN UPDATE TASK' addition.
regards,
Advait
06-11-2009 2:10 PM
Hi,
This is happening for the simple reason that you have called the FM in update task.
It will go to this FM oonly in update task.
Turn on Update debugging in your debugger and you will see that it goes to this FM.
Regards,
Ankur Parab
06-11-2009 2:43 PM
Hi Ankur,
I have explictely specified commit work after the FM in update task call but it is throwing dump.
This particular code which I have mentioned above is working in sandbox but not in development.
Also, since I am doing from Web UI, so I have put external debugging. When I am trying to save the particular update setting in debugging which you need to debug this kind of FMs, it is not working.
Regards,
Sangeeta.
06-16-2009 10:26 PM