‎2011 Jan 18 8:02 AM
Hi,
I have a requiremnt in which i have to commit work in single SAP LUW.
I use Call function in update task to execute on commit work.
If code in my Call function in update task gives error, i should rollback the entire process.
I tried using rollback in call function in update task leading in dump because rollback cannot be used in update task.
How do i rollback..
Thanks,
Phani
‎2011 Jan 18 8:31 AM
‎2011 Jan 18 8:56 AM
‎2011 Jan 18 9:24 AM
How do i rollback the sap luw if error occurs in call function in update task?
Thanks,
Phani
‎2011 Jan 18 10:39 AM
‎2011 Jan 18 11:02 AM
‎2011 Jan 18 11:16 AM
I would like to capture the error?please advice me how this can be achieved..
‎2011 Jan 18 11:39 AM
Hello Phani,
You don't need to handle the ROLLBACK explicitly. If any error occurs during the UPDATE TASK an implicit ROLLBACK occurs. The error details are logged into the table VBLOG.
Also remember in an update FM you can't use any statements which trigger a database commit e.g., ROLLBACK WORK, COMMIT WORK etc.
Further read on the F1 help for 'IN UPDATE TASK'.
BR,
Suhas