SAP ABAP IMG Activity DIWPS_PMPS (BAdI: Order Assignment to Project)
Hierarchy
ECC-DIMP (Software Component) DIMP
   IS-AD-MEB (Application Component) Line Maintenance Planning (MEB Enhancements)
     DIWPS_AD (Package) DI: Work Packaging and Sequencing (A&D)
IMG Activity
ID DIWPS_PMPS BAdI: Order Assignment to Project  
Transaction Code S_KA5_12001405   SAPLS_CUS_IMG_ACTIVITY 
Created on 20030109    
Customizing Attributes DIWPS_PMPS   BAdI: Order Assignment to Project 
Customizing Activity DIWPS_PMPS   BAdI: Order Assignment to Project 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name DIWPS_PMPS    

Use

You use this Business Add-In (BAdI) to implement customer-specific logic for assigning an order to a project structure. In the standard system, the PM/PS reference elements from the order header and project element (network activity or WBS element) are compared.

Requirements

The following prerequisites must be fulfilled before orders can be assigned to a project structure automatically:

  • You have created a PM/PS reference element.
  • You have assigned a PM/PS element to the task list that is linked to the notification. The PM/PS reference element refers to the order that is created from this notification.
  • You have assigned a PM/PS reference element to the network activity or work breakdown structure element (WBS element). The PM/PS reference element now refers to the network activity or WBS element.

Standard settings

This BAdI is not designed for multiple use.

The BAdI is not filter-dependent, and therefore cannot be used more than once.

In the standard logic, all activities that belong to the project structure are grouped together. Only the activity with a PM/PS reference element that matches the PM/PS reference element of the order is selected. The order is then assigned to the selected activity.

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:

  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

Further notes

Implementation of the method PROJECT_ASSIGN in the class CL_NOTI_ORDER_WPS

Documentation on BAdI Method PM_PS_FIELD_COMP_ACTIVATE

Documentation on BAdI Method PM_PS_FIELD_COMP

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-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 DIWPS_PMPS 0 PLN0000022 Revision Planning 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20030703 
SAP Release Created in 471