Documentation View

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

EXIT_SAPFPBEN_007 -

EXIT_SAPFPBEN_007 -

BAL_S_LOG - Application Log: Log header data   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Customer-specific assignment of termination type

In the standard SAP system, the termination type for an employee's benefits is determined by the feature TRMTY. As an alternative to this, there is the function exit EXIT_SAPFPBEN_007 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 or database tables, you can use their contents to determine the employee benefit group.

The system explicitly defines the input parameters:

  • _PERNR personnel number
  • _BAREA benefit area
  • _EVTYP termination event type (COBRA event type)
  • _BPLAN benefit plan
  • _BENGR employee benefit group
  • _BSTAT employee status
  • _BEGDA validity begin date
  • _ENDDA validity end date

You then specify the output parameters:

  • _TRMGR termination type

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

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

In the following sample coding only the benefit area is to be evaluated. The evaluation is to be carried out in all clients. The feature TRMTY 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 OTHERS.
_TRMGR = 'TGR1'.
ENDCASE.
ENDCASE.

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






General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2429 Date: 20211208 Time: 011737     sap01-206 ( 35 ms )