‎2006 Sep 05 3:20 PM
Hi
1.what is call fm update task ?
2. what is starting new task?
thanks,
sap-abap.
‎2006 Sep 05 3:26 PM
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
‎2006 Sep 05 3:29 PM
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.
‎2006 Sep 05 3:36 PM
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.
‎2006 Sep 05 3:37 PM
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
‎2006 Sep 05 3:31 PM
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