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 In Update Task

Former Member
0 Likes
2,673

Hi,

While calling a Function Module In Update Task, do we need to perform Commit Work?

Thanks in advance,

Sunanda.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,428

Yes you need to perform commit work. whether that should be synchronous or asynchronous will depend upon the way commit statement is used.

Function modules that run in the update task can run synchronously or asynchronously. You determine this by the form of the COMMITstatement you use:

· COMMIT WORK

This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.

· COMMIT WORK AND WAIT

This form specifies synchronous processing. The COMMITstatement waits for the end of processing. Control returns to your program after all high priority (V1) function modules have run successfully.

The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.

Please have a look at belwo link:

Calling Update Functions

I hope it helps.

Thanks,

Vibha

Please mark all the useful answers

6 REPLIES 6
Read only

Former Member
0 Likes
1,428

Better If U call a commit work ...

Read only

Former Member
0 Likes
1,428

Hi,

The actual execution is triggered by the statement COMMIT WORK.

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.

Pls reward if found helpful.

Read only

Former Member
0 Likes
1,429

Yes you need to perform commit work. whether that should be synchronous or asynchronous will depend upon the way commit statement is used.

Function modules that run in the update task can run synchronously or asynchronously. You determine this by the form of the COMMITstatement you use:

· COMMIT WORK

This is the standard form, which specifies asynchronous processing. Your program does not wait for the requested functions to finish processing.

· COMMIT WORK AND WAIT

This form specifies synchronous processing. The COMMITstatement waits for the end of processing. Control returns to your program after all high priority (V1) function modules have run successfully.

The AND WAIT form is convenient for switching old programs to synchronous processing without having to re-write the code. Functionally, using AND WAIT for update-task updates is just the same as dialog-task updates with PERFORM ON COMMIT.

Please have a look at belwo link:

Calling Update Functions

I hope it helps.

Thanks,

Vibha

Please mark all the useful answers

Read only

0 Likes
1,428

Hi ,

I am having the same issue and used commit work after calling fm .... in update task. This not updating the tables. Its working when I commet the in update task. Your help is appreciated.

Thank you,

Surya.

Read only

Read only

0 Likes
1,428

Hi a®s,

Thanks for your link. Your link helped me solving the issue.

Thank you,

Surya