SAP ABAP IMG Activity PORT_MAN_OADP_110 (BAdI: OADP: Exclude Managers)
Hierarchy
SAP_HRGXX (Software Component) Sub component SAP_HRGXX of SAP_HR
   EP-PCT-MGR-HR (Application Component) Business Package for Manager Self-Service (HR)
     PWPC_MAN_TEAMOVERVIEW (Package) PWPC_MAN_TEAMOVERVIEW
IMG Activity
ID PORT_MAN_OADP_110 BAdI: OADP: Exclude Managers  
Transaction Code S_AXC_91000010   (empty) 
Created on 20050223    
Customizing Attributes PORT_MAN_OADP_BADI   BAdI Attribute OADP-IMG 
Customizing Activity PORT_MAN_OADP_110   BAdI: OADP: Exclude Managers 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name HRWPC_EXCL_MANAGERS    

Use

This Business Add-In (BAdI) is used in the Object and Data Provider. This BAdI enables you to remove objects from the results for an object selection rule.

Requirements

In the IMG activity Define Rules for Object Selection, you have set the indicator Exclude Managers for the relevant object selection rule.

Standard settings

If you do not create an implementation of your own, the system runs the default implementation that uses the function module HRWPC_OADP_EXCLUDE_MANAGER.

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

A line manager is permitted to perform activities such as salary planning for his or her employees. However, the line manager does not have authorization to peform such activities for him or herself or for other line managers responsible for the same level or a higher level in the hierarchy. If you use an object selection rule for the Manager role in the SAP Enterprise Portal, you should, therefore, delete all users who are logged on (that is, line managers) and all managers on the same or higher level in the hierarchy from the results of the selection rule. This example is included in the default implementation.

See also

Methods

EXCLUDE_MANAGER (Excludes Managers)

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
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  20050223 
SAP Release Created in 600