Ansicht
Dokumentation

HRMSS_B_SUBSTITUTION - BAdI: Determine Substitution Rules and Application for User

HRMSS_B_SUBSTITUTION - BAdI: Determine Substitution Rules and Application for User

General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BADI) is used in the component Manager Self-Service (WDA) (CA-MSS-HCM) to determine the following;

  • The active substitutions that are assigned to a manager.
  • A list of applications that are substituted by a manager.
  • The objects that are retrieved into a manager's Work Overview Inboxin case of non-workflow items.
  • The overview content in the Substitution UIBB on the Home Page.

The BAdI has three methods:

  • GET_SUBSTITUTING_USERS:
This method is called in the Substitution Overview application and the POWL queries of a manager's Work Overview iIbox. It is used to retrieve a list of the managers for whom the logged in user is acting as a substitute, in the Substitution Overview application.
The POWL queries retrieve the objects that belong to the managers for whom the logged in user is acting as a substitute.
The AppCC (Application Component Configuration) of the Substitution Overview application and business logic function module of POWL queries call this method of the BAdI to determine all of the relevant active substitutions.
In the case of POWL, the method accepts an application ID and returns a table of managers for whom the logged in user is acting as a substitute. These are managers who have assigned the logged in user as a substitute and have a Substitute Profile that corresponds to the application ID that is passed.
If a particular non-workflow based POWL query is to be included in the list that a manager can substitute, you can create and assign a task classification (which has the same POWL application ID) to the substitution profile. This is done in the Customizing activities Maintain task Classes and Assign substitute Profile. The application ID's for the standard POWL queries, which are passed when this method is called, are as follows;
  • Leave Approval - SAPARQ

  • Time Recording Approval - SAPTR

  • Clock-In/Clock-Out Approval - SAPCICO

  • Task Monitoring - SAPROD

  • Birthday and Anniversaries - SAPBDAY

The method has the following parameters:
Importing Parameters
  • IV_APPLID - Application id

  • ET_SUBSTITUTING_USERS - Table of substituting users

  • GET_APPL_SUBSTITUTING_USER
This method is called in the Substitution Overview application. The Substitution Overview application displays a list of employees, positions, and organization specific applications that have been substituted in the Team Viewer. Additionally there is a section for team specific applications substituted by the manager. This method is used to filter the list of applications that is displayed to the substitute based on the substitution rule created by the manager, on whose behalf the substitute is acting.
The method has the following parameters:
Importing Parameters
  • IV_APPLICATION_ALIAS - Application alias

  • IV_USER - User Name

  • IT_APPLICATION_PARAMS - Application parameters

Change Parameters
  • CV_TEXT - Text of the application link

  • CV_DESCRIPTION - Description of application link

  • CV_ISVISIBLE -Visibility of link

  • CV_ISDISABLED - Link enabled

  • CV_ISEMPHASIZED - Link emphasized

  • CV_ISQUICKLINK - Link quick-link

  • GET_SUBSTITUTIONS
This method is called in the Substitution UIBB block in the Home Page and Substitution Overview application. It returns the details of the substitution rules created by the logged in user. It also returns a list of substitution rules where the logged in user is acting as a substitute.
The method has the following parameters:
Exporting parameters
  • ET_OTH_ACT_SUBST - Other users active substitutions

  • ET_OTH_SUBST - Other users substitutions

  • ET_MY_SUBST - Own substitutions

For more information about the standard settings (filters, single or multiple uses), see the

Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

You can find example implementations in the BAdI Builder on the Enhancement Spot Elementtab in the Implementation Example Classes section.

The following example implementation is available:

  • HRMSS_SUBSTITUTION_EX_IMPL.






General Data in Customer Master   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 7683 Date: 20240523 Time: 221213     sap01-206 ( 145 ms )