Ansicht
Dokumentation

PY_NPO_ESS_GEN3 - BAdI: Restrict Editing of Records for Pers.Info and RS Applications

PY_NPO_ESS_GEN3 - BAdI: Restrict Editing of Records for Pers.Info and RS Applications

RFUMSV00 - Advance Return for Tax on Sales/Purchases   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

You use this Business Add-In (BAdI) in the Payroll Non-Profit Organizations (PY-NPO) component. You can use this BAdI for the following:

  • To restrict the user from editing the records of the previous year Rental Subsidy and Pers. Info ESS applications (i.e. Personal Data, Address, Bank Data and Dependents).

This BAdI uses the IF_EX_HRESSUN_RESTRICT_EDIT interface to do the same.

This BAdI has the method, CHECK_EDIT_ALLOW, which is used to check whether a user is permitted to edit records from the previous year, for Rental Subsidy and Pers. Info applications.

The BAdI has the following parameters:

Changing parameters:

  • EV_RESTRICT_EDIT - This parameter holds the flag which determines whether a user can edit a record. If the flag is set to 'X', in the BAdI implementation, the user is not permitted to edit records for the previous year.

Import parameters:

  • IV_PERNR - This parameter holds the personnel number, for which the application is processed.

  • IV_INFOTYPE - This parameter holds the infotype number of the relevant record for which the application is processed.

  • I_INFTYDATA- This parameter holds the data available on the application screen.

  • To check whether a new record overlaps with existing records. This BAdI uses the IF_EX_HRESSUN_RESTRICT_EDIT interface to do the same.

This BAdI has the method, CHECK_OVERLAP_REC_RS, to check whether a new record overlaps with existing records. In case of an overlapping record, the BAdI generates an error message.

The BAdI has the following parameters:

Changing parameters:

  • C_INFTYDATA- This parameter holds the data available on the application screen.

Import parameters:

  • IV_PERNR - This parameter holds the personnel number, for which the application is processed.

  • IV_INFOTYPE - This parameter holds the infotype number of the relevant record for which the application is processed.

Export parameters:

  • EV_RESTRICT_CREATE - This parameter holds the flag which determines whether a user can create a record. If the flag is set to 'X', in the BAdI implementation, the user is not permitted to create records for the specified period in the current record.

  • EV_ERROR - This parameter indicates whether there is an error after validation. If this flag is set to ‘X’ in the BAdI implementation, it means that the returning value has an error.

  • EV_ERR_MSG- Denotes the internal table to which the error log can be appended and is displayed on the screen.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).






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

Length: 4031 Date: 20240523 Time: 201522     sap01-206 ( 89 ms )