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

CCUNDO Function module/ BAPI ?

Former Member
0 Likes
1,637

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,196

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

1 REPLY 1
Read only

Former Member
0 Likes
1,197

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