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

Function Module not getting called

Former Member
0 Likes
1,991

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,569

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

Read only

0 Likes
1,569

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...

Read only

0 Likes
1,569

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.

Read only

Former Member
0 Likes
1,569

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

Read only

Former Member
0 Likes
1,569

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

Read only

0 Likes
1,569

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.

Read only

0 Likes
1,569

What is the dump analysis ?