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

FM in Update task

Former Member
0 Likes
533

Hi,

I am trying to update few fields in FM in update task.

But it is not working can some onehelp out in this.

Regards,

Aruna.

3 REPLIES 3
Read only

Former Member
0 Likes
481

Hello Aruna,

You can set up an break point in your FM that is called in Update Task (Option in old Debugger - Update Debugging). The run the program. Your program will stop at the berak-point. Now you can debug and find out why the desired functionality is not working.

Best Regards,

Ram.

Read only

Former Member
0 Likes
481

hi:

An update function module is a function module, for which in the Function Builder the property update module is marked. The registration of an update function module is an essential part of the update task.

The function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored.

If the statement SET UPDATE TASK LOCAL is executed before registration of an update function module in the current SAP LUW, registration takes place in the ABAP memory rather than on the database, and for the current work process.

The actual execution is triggered by the statement COMMIT WORK. The formal parameters of the function module receive the values of the actual parameters from table VBLOG. A function module that is registered several times will also be excuted several times with the respective parameter values.If a COMMIT WORK statement is not executed after registration of a function module during execution of the current program, the function module is not executed and is deleted from table VBLOG at the end of the program.

[Link|http://help.sap.com/abapdocu/en/ABAPCALL_FUNCTION_UPDATE.htm]

Regards

Shashi

Read only

Former Member
0 Likes
481

Add COMMIT WORK statement after your function module