Hierarchy

⤷

⤷

IMG Activity
ID | BADI_MPD_MP_GENER | BAdI: Maintenance Plan Creation/Update |
Transaction Code | S_ALI_97000005 | (empty) |
Created on | 20040202 | |
Customizing Attributes | BADI_MPD_MP_GENER | BAdI: Maintenance Plan Creation/Update |
Customizing Activity | BADI_MPD_MP_GENER | Maintenance Plan Creation/Update |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_MPD_MP_GENER |
Use
This Business Add-In (BAdI) is used in the component Maintenance Program Definition (IS-AD-MPD).
This BAdI enables you to generate and update maintenance plans. The BAdI is called when you create an instance and then call the required method. The MPD Workbench calls the methods for this BAdI after you have run compliance reporting (consistency reporting for maintenance plan creation, and change implementation reporting for maintenance plan update) and have selected the documents for which maintenance plans will be created or updated. This is required for carrying out all relevant checks necessary to ensure maintenance plan creation or update is successful.
Requirements
If you want to create your own BAdI implementation you have to copy the existing (default) code into your implementation, then modify it according to the requirements of the process. However, you are restricted to using the existing method interfaces.
If you want to use the default implementation, you do not have to do anything. The default interface will automatically be used and set as the active one if no other is created.
Standard settings
- The Business Add-In is active in the standard system.
- The Business Add-In is not filter-dependent.
- The Business Add-In is not reusable.
- The default code is executed when there is no active customer implementation.
- Note: You have to make sure that all the data consistency checks have been carried out before calling the methods for this BAdI. In the MPD Workbench, the BAdI methods are called after all checks have been carried out by the compliance reporting BAdI.
Activities
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:
- 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. - On this screen, enter a short description for your implementation in the Implementation Short Text field.
- 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.
- Save your entries and assign the Add-In to a package.
- To edit a method, double-click its name.
- Enter your implementation code between the
method <Interface Name>~<Name of Method>.
andendmethod.
statements. - 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: - Choose Activate.
When the application program is executed, the code you created is run through.
See also:
Methods
Add Additional Data for Maintenance Plan Update
Add Additional Data for Maintenance Plan Creation
Example
For example implementation please see the default implementation using the application menu: 'Goto -> Default Implementation'.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | BADI_MPD_MP_GENER | 0 | KA50002401 | Preventive Maintenance |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20080730 |
SAP Release Created in | 500 |