SAP ABAP IMG Activity ECM_UNDO (BAdI: Undo Changes)
Hierarchy
SAP_ABA (Software Component) Cross-Application Component
   CA-GTF-ECM (Application Component) Engineering Change Management
     CC (Package) Engineering Change Management
IMG Activity
ID ECM_UNDO BAdI: Undo Changes  
Transaction Code S_S7B_68000002   (empty) 
Created on 20050315    
Customizing Attributes ECM_UNDO   BAdI: Undo Changes 
Customizing Activity ECM_UNDO   BAdI: Undo Changes 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name ECM_UNDO_1    

Use

This Business Add-In (BAdI) is used in component Engineering Change Management (LO-ECH) to undo changes to objects that have been saved with reference to a selected change number.

  • Before you actually undo the object changes, you can simulate the original state before the change with the selected change number.
  • When you execute the Undo, the original data that was saved before the change with the selected change number is valid.

The standard system contains several implementations for this BAdI, with which you can undo changes to data for different object types (such as classes, characteristics, and bills of material). Do not change any implementation of the standard system.

In the following cases, it can be useful to create new, company-specific implementations:

  • You want to undo object changes for objects that have no implementation in the standard system.
  • You want to use groupings or additional checks to influence the undoing of changes. For example, you can restrict the objects for which the Undo is executed.

Requirements

Standard settings

In the standard system, this BAdI is active.

Activities

When you call the IMG activity, you see a list of the implementations in the standard system. Do not change any implementation of the standard system.

After you call the IMG activity, the system displays a dialog box where you enter a name for the implementation.

If implementations of this Business Add-In have already been created, the system displays them in a dialog box. You then choose one of them by choosing Create, and continue as follows:

  1. In the dialog box, enter a name for the implementation of the Add-In and choose Create.
    The system displays the initial screen for creating Business Add-In implementations.
  2. On this screen, enter a short description for your implementation in the Implementation Short Text field.
  3. If you choose the Interface tab, you will notice that the system has populated the Name of the Implementing Class field automatically, by assigning a class name based on the name of your implementation.
  4. Save your entries and assign the Add-In to a package.
  5. To edit a method, double-click its name.
  6. Enter your implementation code between the method <Interface Name>~<Name of Method>. and endmethod. statements.
  7. Save and activate your code. Navigate back to the Change Implementation screen.
    Note: You can also create an implementation for an Add-In and not activate it until later. If you want to do this, do not perform the following step:
  8. Choose Activate.
    When the application program is executed, the code you created is run through.

Example

Business Attributes
ASAP Roadmap ID 203   Establish Master Data 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050321 
SAP Release Created in 700