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

Calling FM in update task

Former Member
0 Likes
496

Hi,

I read SAP document saying that if we call an update function module like

CALL FUNCTION <FM_NAME> IN UPDATE TASK.......

we can have a log of parameters passed to the function module in VBLOG table.

I Created an update FM and I am passing parameters and inside that I am updating a customized table.

But, When I debug control never goes into that FM source code and the table is not updated.

What may be the reason.

Thanks and regards,

venkat

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
454

Did you understand the concept of update function modules at all ?

The call to the update FM is logged in the table VBLOG along with the actual parameters.

The actual processing starts after the COMMIT WORK statement. Read the SAP documentation thoroughly, it is explained in a very simple manner there. [http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_UPDATE.htm]

BR,

Suhas

2 REPLIES 2
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
455

Did you understand the concept of update function modules at all ?

The call to the update FM is logged in the table VBLOG along with the actual parameters.

The actual processing starts after the COMMIT WORK statement. Read the SAP documentation thoroughly, it is explained in a very simple manner there. [http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_UPDATE.htm]

BR,

Suhas

Read only

JerryWang
Product and Topic Expert
Product and Topic Expert
0 Likes
454

Hello venkat,

The update function module is executed in a different work process other than your current program.You can write a COMMIT WORK in your current report to trigger it. If you want to debug the update function module, enable the check box " update debugging", after that you can reach the breakpoint you set in the function module.

Best Regards,

Jerry