Ansicht
Dokumentation
EXIT_SAPFPBEN_012 -
Addresses (Business Address Services) General Material DataThis documentation is copyright by SAP AG.
Customer-specific calculation of eligibility date
In the standard SAP system, the eligibility date for an employee's benefits is calculated by the subroutine CALC_ELIG_DATE. As an alternative to this, there is the function exit EXIT_SAPFPBEN_012 contained in the function group XPBE. This function exit is described below.
The function exit allows you to integrate your own logic into the standard SAP system instead of that suggested by CALC_ELIG_DATE. If, forexample, you have created customer-specific infotypes or database tables, you can use their components to calculate the eligibility date.
The system explicitly defines the input parameters:
- _PERNR personnel number
- _BAREA benefit area
- _BELIG eligibility rule
- _ELIGR eligibility group
- _EDATE cutoff date
You then specify the output parameter:
- _ELIDT eligibility date
In addition to this, you can define two exceptions to the standard coding:
- STANDARD_CALCULATION if CALC_ELIG_DATE is to be executed
- CUSTOMER_ERROR if an error message is to be registered
In the following sample coding, the employee's entry date should always be used as the eligibility date. CALC_ELIG_DATE should only be access in the standard clients 000.
DATA: HIRED TYPE D,
RETCD LIKE SY-SUBRC.
CASE SY-MANDT.
WHEN 0.
RAISE STANDARD_CALCULATION.
WHEN OTHERS.
PERFORM GET_START_DATE(SAPFPBEN)
USING _PERNR _EDATE SPACE HIRED RETCD.
IF RETCD NE 0.
RAISE CUSTOMER_ERROR.
ENDIF.
_ELIDT = HIRED.
ENDCASE.
For information on how to store your own coding and data declarations in a function exit, please refer to the online documentation on the transaction Project Management of SAP Enhancements.
CL_GUI_FRONTEND_SERVICES - Frontend Services BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 2340 Date: 20240420 Time: 160401 sap01-206 ( 31 ms )