We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
In the standard SAP system, the employer's contribution to the savings plan is determined by the subroutine GET_ER_CONTRIBUTION. As an alternative to this, there is the function exit EXIT_SAPFPBEN_014 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 GET_ER_CONTRIBUTION. If, for example, you have created customer-specific infotypes and database tables, you can use their contents to calculate the employer's contribution.
The system explicitly defines the input parameters:
You then specify the output parameter:
In addition to this, you can define two exceptions to the standard coding:
In the following sample coding, the employer's contribution is read from a customer-specific database table ZCAMT. The employer's contribution is determined by ZCAMT in all clients. GET_ER_CONTRIBUTION should only be accessed in the standard client 000.
SELECT * FROM ZCAMT WHERE BAREA EQ _BAREA
AND BPLAN EQ _BPLAN
AND ENDDA GE _ENDDA
AND BEGDA LE _ENDDA.
IF SY-SUBRC NE 0.
_ERCST = ZCAMT-ERCST.
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.