10-08-2008 2:44 PM
Hello!
I have this case:
Program are calling a function for transfer data from R/3 to SRM this way:
LOOP AT itab.
COMMIT WORK AND WAIT.
CALL FUNCTION 'Z_TRANSF_DATA' STARTING NEW TASK 'Z_TRANS_DATA'....
WAIT UP TO 10 SECONDS.
CLEAR itab.
ENDLOOP.
Question: need i COMMIT WORK with CALL FUNCTION STARTING NEW TASK ?? This function execute somes database changes. Or commit isn´t necessary??
Tank´s a lot!
10-08-2008 3:54 PM
Hi,
The starting new task addition performs an asynchronous call of the function module, an explicit commit work is not required for this.
The commit work command ends the logical unit of work and opens a new one. This will commit any database updates and start any function calls in the update or background tasks.
Regards,
Darren