Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Function Module In Update Task

Hi,

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

Thanks in advance,

Sunanda.

Tags:
Former Member
Former Member replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question