Ansicht
Dokumentation

EXIT_SAPFPBEN_014 -

EXIT_SAPFPBEN_014 -

BAL_S_LOG - Application Log: Log header data   General Data in Customer Master  
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.






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

Length: 2736 Date: 20240419 Time: 091839     sap01-206 ( 37 ms )