‎2016 Nov 24 4:22 PM
hi,
CCUNDO allows to undo changes, e.g on BOMs or Materials. Does anyone know a way to automatically undo this changes by (abap) calling a BAPI or Function module? While looking at the code of transaction CCUNDO, I could not find a way.
Thanks for any hint or idea.
‎2016 Nov 28 10:08 AM
Got it; look at the badi_ecm_undo usage in transaction CCUNDO. This badi is used by SAP for the implementation of the undo itself. The two methods could be called from a custom abap report/class after identifying the change numbers (AENNR) used for a certain object (in my case: a BOM). All "undo" need to take place in the reverse order they have been done (hint: AEOI datuv and aedif).
‎2016 Nov 28 10:08 AM
Got it; look at the badi_ecm_undo usage in transaction CCUNDO. This badi is used by SAP for the implementation of the undo itself. The two methods could be called from a custom abap report/class after identifying the change numbers (AENNR) used for a certain object (in my case: a BOM). All "undo" need to take place in the reverse order they have been done (hint: AEOI datuv and aedif).