Skip to Content
avatar image
Former Member

CCUNDO Function module/ BAPI ?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

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

    Add comment
    10|10000 characters needed characters exceeded