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

update task

Former Member
0 Likes
571

Hi

1.what is call fm update task ?

2. what is starting new task?

thanks,

sap-abap.

5 REPLIES 5
Read only

andreas_mann3
Active Contributor
0 Likes
533

1) call a update module:

CALL FUNCTION 'Z_TRANS_01' IN UPDATE TASK

2)CALL FUNCTION func ...STARTING NEW TASK taskname.

Starts the function module func asynchronously in a new session

Message was edited by: Andreas Mann

Read only

0 Likes
533

A function called in update task will not execute until a commit work is encountered.

A function called with 'STARTING NEW TASK' will be triggered immediately, but will run asynchronously with respect to your current program.

Read only

0 Likes
533

Hi

what about the update task is it run on same session or separate session? and how and where to write a commit work in a program?

thanks,

sap-abap.

Read only

0 Likes
533

You will write a commit at the end of your process logic. In my example earlier, after the 4th step you will write a commit.

hith

Sunil Achyut

Read only

Former Member
0 Likes
533

SAP uses LUW (logical unit of work) concept, with this it basically does a sequence of steps and if all of them were successful it commits all the data to the database. During this process it keeps all the data in temporary memory. So lets say in your process you have 4 steps that complete the process, so you want to commit only when all the 4 steps are successful, in this case you will use CALL FM in UPDATE TASK for all the 4 of them, once the 4th FM is successful you use the statement COMMIT WORK to commit all the changes to the database.

hith

Sunil Achyut