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

Data-rollback with CDPOS

Former Member
0 Likes
676

Does there an ABAP, a function, or a method exist whch with the help of tables CDHDR and CDPOS allows to do a total data-rollback concerning an object as 'VERKBELEG' or 'EINKBELEG'?

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
603

Not 100% possible, in my opinion. For inserts and deletion only the table key is stored, but not the actual field contents. E.g. if you are inserting a line item and then delete it again later, there is no way to retrospectively find out the exact state inbetween.

So I don't think something like this exists in the standard.

Thomas

3 REPLIES 3
Read only

ThomasZloch
Active Contributor
0 Likes
604

Not 100% possible, in my opinion. For inserts and deletion only the table key is stored, but not the actual field contents. E.g. if you are inserting a line item and then delete it again later, there is no way to retrospectively find out the exact state inbetween.

So I don't think something like this exists in the standard.

Thomas

Read only

0 Likes
603

You are probably right, Thomas, but I want only to use it for changes done on a sales order or on a purchase order, but not for new inserts. Additionally to delete physically an item of a sales order or a purchase order is not possible, so this problem is for me not so relevant. Ich will mich aber noch bei Dir bedanken für Deine schnelle Antwort.

Read only

0 Likes
603

OK, for just changes it would be possible. I remember programming something like this for sales order schedule lines many years ago (these can actually appear/disappear completely based on availability checks etc.), rather complex task.

Maybe somebody else has better information for us.

Thomas

P.S. please use only English as forum language, so everybody can follow the discussion.