Ansicht
Dokumentation

EXIT_SAPFPBEN_006 -

EXIT_SAPFPBEN_006 -

Vendor Master (General Section)   Fill RESBD Structure from EBP Component Structure  
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.






rdisp/max_wprun_time - Maximum work process run time   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 3014 Date: 20240425 Time: 012211     sap01-206 ( 36 ms )