Hierarchy

⤷

⤷

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