Ansicht
Dokumentation
HR_BRPBS_VP_EMAIL - Envio da mensagem de e-mail
PERFORM Short Reference SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
Functionality
The purpose of this function module is to send the employee an e-mail informing about the vacation/bonus leave planning status, when the workflow functionality is not active.
It reads the information stored in Personal Data (IT0002) and Vacation and Bonus Leave Planning (IT0932) infotypes and:
- If the planning status is "In approval" :
- It checks the personnel number of the employee's direct supervisor to search for the e-mail address (using the evaluation path: BOSSORG)
- If no e-mail address is found for this personnel number, it searches again using the evaluation path to find the next direct supervisor (it repeats this procedure until a valid e-mail address is found in the Communication infotype - IT0105).
- Once a manager with a valid e-mail address is found, it checks the values of the Form of address and Name fields in the Personal Data infotype (IT0002) for the manager 's personnel number.
- If no valid e-mail address is found, it finishes the processing and presents the warning message "No e-mail address found. The notification will not be sent".
- ,,If the planning status is "Rejected", "Open" or "Approved"
- The e-mail address for sending messages will be the value of ID/Number in the E-mail subtype (0010) of the Communication infotype (IT0105) for the supervisor's personnel number that was found.
- If no valid e-mail address is found, the function module closes the processing and presents the warning message "No e-mail address found. The notification will not be sent".
,,
Example
Notes
Further information
Parameters
I_BEGDAI_ENDDA
I_LEBEG
I_LEEND
I_OPTXB
I_PBDAY
I_PERNR
I_STATP
Exceptions
DOCUMENT_NOT_SENTDOCUMENT_TYPE_NOT_EXIST
ENQUEUE_ERROR
E_HRPAYBRPBS0_062
OPERATION_NO_AUTHORIZATION
PARAMETER_ERROR
TOO_MANY_RECEIVERS
X_ERROR
Function Group
HRPAYBRPBS01BAL Application Log Documentation CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 2673 Date: 20240523 Time: 095134 sap01-206 ( 53 ms )