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

EXIT_SAPFPBEN_006 -

EXIT_SAPFPBEN_006 -

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

Customer-specific assignment of eligibility group

In the standard SAP system, an employee's eligibility group is determined by the feature ELIGR. As an alternative to this, there is the function exit EXIT_SAPFPBEN_006 contained in the function group XPBE. This function exit is described below.

The function exit allows you to integrate your own assignment logic into the standard SAP system. If, for example, you have created customer-specific infotypes and database tables, you can use their contents to determine the employee benefit group.

The system explicitly defines the input parameters:

  • _PERNR personnel number
  • _BEGDA start of validity period
  • _ENDDA end of validity period
  • _BAREA benefit area
  • _BPLAN benefit plan
  • _PLTYP benefit plan type
  • _BENGR employee benefit group
  • _BSTAT employee status

You then specify the output parameters:

  • _ELIGR cost group

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

  • EVALUATE_FEATURE if the feature ELIGR is to be evaluated
  • CUSTOMER_ERROR if an error message is to be registered

In the following sample coding, the input parameters of the function exit are to be evaluated. The evaluation should be carried out in all clients. The feature ELIGR should only be accessed in the standard client 000.

CASE SY_MANDT.
WHEN 0.
RAISE EVALUATE_FEATURE.
WHEN OTHERS.
CASE _BAREA.
WHEN SPACE.
RAISE CUSTOMER_ERROR.
WHEN '10'.
CASE _BPLAN.
WHEN OTHERS.
CASE _BENGR.
WHEN OTHERS.
CASE _BSTAT.
WHEN OTHERS.
_ELIGR = 'EGR1'.
ENDCASE.
ENDCASE.
ENDCASE.
WHEN OTHERS .
CASE _BPLAN.
WHEN OTHERS.
CASE _BENGR.
WHEN OTHERS.
CASE _BSTAT.
WHEN OTHERS.
_ELIGR = 'EGR1'.
ENDCASE.
ENDCASE.
ENDCASE.
ENDCASE.
ENDCASE.

For information on how to store your own coding and data declarations in a function exit, please refer to the online docuemntation on the transaction Project Management of SAP Enhancements.






ABAP Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 3014 Date: 20200919 Time: 005546     sap01-206 ( 47 ms )