Ansicht
Dokumentation

EXIT_SAPFPBEN_005 -

EXIT_SAPFPBEN_005 -

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Customer-specific assignment of credit group

In the standard SAP system, an employee's credit group is determined by the feature CRDV1. As an alternative to this, there is the function exit EXIT_SAPFPBEN_005 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:

  • _FLXGR credit group

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

  • EVALUATE_FEATURE if the feature CRDV1 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 CRDV1 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.
_FLXGR = 'CRE1'.
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.






CPI1466 during Backup   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 2365 Date: 20240419 Time: 103753     sap01-206 ( 34 ms )