Skip to Content
0

CCUNDO Function module/ BAPI ?

Nov 24, 2016 at 04:22 PM

92

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Nov 28, 2016 at 10:08 AM
-1

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).

Share
10 |10000 characters needed characters left characters exceeded