Application Development 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: 

rolllback work

Former Member
0 Kudos

Rollback work closes a logical processing unit by reversing all database changes made since the last COMMIT.

Is there any way through ABAP coding, to create a save point in the code and to perform a rollback till that particular point, so that the rollback statement when executed, reverses the database changes made after that particular save point and not the changes made after the last commit statement, so that the database changes made before the save point in the code is not cleared.

4 REPLIES 4

Former Member
0 Kudos

Hi renu,

1. I don't there is checkpoint concept,

which we can use in abap.

2. We can only control using last COMMIT

which we can mention in our program.

regards,

amit m.

former_member186741
Active Contributor
0 Kudos

please clarify. What do you mean? Why can't you put your own commits in to create such a 'save point'?

Former Member
0 Kudos

Hi Renu. Why don't you try making a COMMIT WORK everytime you want this 'save point', and that way the rollback will only cancel the data not saved by the commit.

Hope it helps.

Jesus

abdul_hakim
Active Contributor
0 Kudos

hi

welcome to sdn.

if ROLLBACK is followed by COMMIT then it will undo the changes made in COMMIT.

Cheers,

Abdul

Mark all useful answers..