We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

EXIT_SAPFPBEN_014 -

EXIT_SAPFPBEN_014 -

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Customer-specific determination of employer's contribution to the savings plan.

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:

  • _PERNR personnel number
  • _BAREA benefit area
  • _BPLAN benefit plan
  • _BEGDA start of validity period
  • _ENDDA end of validity period
  • _SALRY benefit salary
  • _EECST employee's contribution

You then specify the output parameter:

  • _ERCST employer's contribution

In addition to this, you can define two exceptions to the standard coding:

  • STANDARD_CALCULATION if CALC_TERM_DATE is to be executed
  • CUSTOMER_ERROR if an error message is to be registered

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.

TABLES: ZCAMT.

CASE SY-MANDT.
WHEN 0.
RAISE STANDARD_CALCULATION.
WHEN OTHERS.
SELECT * FROM ZCAMT WHERE BAREA EQ _BAREA
AND BPLAN EQ _BPLAN
AND ENDDA GE _ENDDA
AND BEGDA LE _ENDDA.
EXIT.
ENDSELECT.
IF SY-SUBRC NE 0.
RAISE CUSTOMER_ERROR.
ENDIF.
_ERCST = ZCAMT-ERCST.
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.






BAL_S_LOG - Application Log: Log header data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2736 Date: 20200922 Time: 101328     sap01-206 ( 36 ms )