Ansicht
Dokumentation
EXIT_SAPFPBEN_003 -
Vendor Master (General Section) Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.

Customer-specific assignment of employee status
In the standard SAP system, an employee's employee status is determined by the feature BSTAT. As an alternative to this, there is the function exit EXIT_SAPFPBEN_003 contained in the function group XPBE. This function exit is described below.
The function exit allows you to integrate your own assignment logic intothe 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
- _BEGDA start of validity period
- _ENDDA end of validity period
- _BAREA benefit area
You then specify the output parameters:
- _BSTAT employee status
In addition to this, you can also define two exceptions to the standard coding:
- EVALUATE_FEATURE if the feature BSTAT is to be evaluated
- CUSTOMER_ERROR if an error message is to be registered
In the following sample coding, the benefit area and the customer infotype 9001 should be evaluated. Infotype 9001 can be a modified copy of the infotype 0001 (Organizational Assignment).
The evaluation should be carried out in all clients. The feature BSTAT should only be accessed in the standard client 000.
INFOTYPES: P9001.
CASE SY-MANDT.
WHEN 0.
RAISE EVALUATE_FEATURE.
WHEN OTHERS.
RP_READ_INFOTYPE(SAPFP50P)
USING _PERNR '9001' SPACE SPACE SPACE
_BEGDA _ENDDA '0' 'NOP' P9001.
IF SY-SUBRC NE 0.
RAISE CUSTOMER_ERROR.
ENDIF.
CASE _BAREA.
WHEN '10'.
CASE P9001-PERSG.
WHEN OTHERS.
CASE P9001-PERSK.
WHEN OTHERS.
_BENGR = 'FULL'.
ENDCASE.
ENDCASE.
WHEN OTHERS.
CASE P9001-PERSG.
WHEN OTHERS.
CASE P9001-PERSK.
WHEN OTHERS.
_BENGR = 'FULL'.
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 documentation on the transaction Project Management of SAP Enhancements.
Addresses (Business Address Services) ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 2875 Date: 20230922 Time: 155208 sap01-206 ( 40 ms )