Ansicht
Dokumentation

OHADOE594 - BAdI: Check for Definitive Changes in Remuneration (BV/MUSCHG)

OHADOE594 - BAdI: Check for Definitive Changes in Remuneration (BV/MUSCHG)

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

The business add-in (BAdl) HRPAYDE_MUSCHG_BV_WECHSEL allows you to check a change of the employment relationship during prohibited activities or a maternity protection period. The system checks whether, as a result of this change of employment relationship, remuneration changes occurred such that the applicable period for the calculation of the remuneration during prohibited activities or the maternity protection period cannot serve as a correct basis for this calculation.

Three methods are available for this using the interface IF_HRPAYDE_MUSCHG_BV_WECHSEL:

  • PRUEFEN_GRUNDLAGE_BV(Check Definitive Changes of Basis for Adjustment Amount)
This method is used to check whether changes in the employment relationship lead to significant changes in the basis for the adjustment amount during the prohibited activities.
For a change of pay scale type, the system outputs the warning message A change of pay scale type during the prohibited activities was specified (HRPAYDEMUSCHG_BV044) in the previous calculations of the average earnings (fictitious run MBV1) and the adjustment amount, which is taken into account in the basis for the supplement to maternity pay (fictitious run MBV4).
In the implementation of this method, the system transfers this warning to the method SEND_MESSAGE_044 of the fallback class CL_HRPAYDE_MUSCHG_BV_WECHSEL. If you want to see an error message or no message instead of a warning in the payroll program, you can override these individually by creating a customer-specific BAdl implementation, whereby the class of the implementation inherits from the fallback class CL_HRPAYDE_MUSCHG_BV_WECHSEL. In this customer-specific class, you can redefine the method SEND_MESSAGE_044 and depict the logic according to your requirements.
  • PRUEFEN_GRUNDLAGE_BV(Check Definitive Changes of Basis for Maternity Pay Supplemt)
This method is used to check whether changes in the employment relationship lead to significant changes in the basis for the supplement for maternity pay during the maternity protection period. The system checks the relevant changes that are available in a period between the months used as a basis for the calculation of a maternity pay supplement (3 months before the start of the maternity protection period) and the payment of the maternity pay supplement.
In the standard system, the system displays one of the following warnings:

If you want to see an error message or no message instead of a warning in the payroll program, you can override these individually by creating a customer-specific BAdl implementation, whereby the class of the implementation inherits from the fallback class CL_HRPAYDE_MUSCHG_BV_WECHSEL. In this customer-specific class, you can then redefine the following methods and depict the logic according to your requirements:
  • SEND_MESSAGE_073

  • SEND_MESSAGE_056

  • SEND_MESSAGE_074

  • PRUEFEN_IM_MONAT_ZUMUSCHG (Check Definitive Mid-Month Changes for Maternity Pay Suppl.)
This method is used to check whether mid-month changes within a month of the maternity protection period lead to definitive changes in the calculation of the supplement to maternity pay.
If a mid-month change to the basic pay (infotype 0008) is made in a month within the maternity protection period, the system checks in the implementation of this method whether a change to the Pay Scale Indicator, Pay Scale Type, Pay Scale Area, Pay Scale Group, Pay Scale Level, Capacity Utilization Level, Numerator/Denominator fields occurs within this month. Additionally, the system compares the wage types from a previous data record and a subsequent data record. The system does not perform an evaluation of wage types.
In the standard system, the system displays one of the following warnings:

  • Change of wage type key exists during maternity protection period (HRPAYDEMUSCHG_BV071)

If you want to see an error message or no message instead of a warning in the payroll program, you can override these individually by creating a customer-specific BAdl implementation, whereby the class of the implementation inherits from the fallback class CL_HRPAYDE_MUSCHG_BV_WECHSEL. In this customer-specific class, you can then redefine the following methods and depict the logic according to your requirements:
  • SEND_MESSAGE_070

  • SEND_MESSAGE_071

  • SEND_MESSAGE_072

If you do not activate a customer-specific implementation, the system calls the methods of the fallback class CL_HRPAYDE_MUSCHG_BV_WECHSEL, which perform the standard checks described above.

Create a customer-specific implementation if the specifications provided in the standard SAP system do not meet your requirements.

For information about the implementation of BAdls within the framework of the enhancement concept, see SAP Library for SAP NetWeaver under BAdls Embedded in the Enhancement Framework.

The methods for the interface IF_HRPAYDE_MUSCHG_BV_WECHSEL contain the following parameters:

Method PRUEFEN_GRUNDLAGE_BV(Check Definitive Changes of Basis for Adjustment Amount)

  • IV_PERNR: Personnel Number
  • IV_DATE: The start date of the current average period is used as the key date for the fictitious run MBV1. The start date of the current evaluation period for the maternity pay supplement is used as the key date for the fictitious run MBV4.
  • IS_WPBP: The WPBP data of the current payroll period
  • IS_P0001_BEW: The Organizational Assignment infotype (0001) valid on the key date.
  • IS_P0008_BEW: The Basic Pay infotype (0008) valid on the key date.
  • IO_MSG_HANDLER: Instance of the message handler.
  • EV_IS_OK: Export Parameter. Indicates whether the method was executed without an error. If this parameter is initial, the system terminates further processing and displays the error messages of the message handler.

Method PRUEFEN_GRUNDLAGE_ZUMUSCHG(Check Definitive Changes of Basis for Maternity Pay Supplemt):

  • IV_PERNR: Personnel Number
  • IV_BEW_DATE: The end date of the maternity protection period in the current payroll month with maternity protection.
  • IV_AUSBT: Only Accept Changes to Amount of Maternity Pay Allowance (T5D84-AUSBT).
  • IS_WPBP: The WPBP data of the current payroll period
  • IS_P0008: The Basic Pay infotype (0008) valid on the key date.
  • IT_P0001: Organizational Assignment infotype (0001).
  • IT_P0012: Fiscal Data D infotype (0012).
  • IT_P0013: Social Insurance D infotype (0013)
  • IO_MSG_HANDLER: Instance of the message handler
  • EV_IS_OK: Export Parameter. Indicates whether the method was executed without an error. If this parameter is initial, the system terminates further processing and displays the error messages of the message handler.

Method PRUEFEN_IM_MONAT_ZUMUSCHG (Check Definitive Mid-Month Changes for Maternity Pay Suppl.)

  • IS_P0001_VORHER: The valid Organizational Assignment infotype (0001) on the day of the change.
  • IS_P0001_NACHHER: The valid Organizational Assignment infotype (0001) on the day of the change.
  • IS_P0008_VORHER: The valid Basic Pay infotype (0008) on the day of the change.
  • IS_P0008_NACHHER:The valid Basic Pay infotype (0008) on the day of the change.
  • IS_P0230_VORHER:The valid Supplement to P0008 PSG secondary infotype (0230) on the day of the change.
  • IS_P0230_NACHHER:The valid Supplement to P0008 PSG secondary infotype (0230) on the day of the change.
  • IO_MSG_HANDLER: Instance of the message handler
  • EV_IS_OK: Export Parameter. Indicates whether the method was executed without an error. If this parameter is initial, the system terminates further processing and displays the error messages of the message handler.

Following methods of the fallback class CL_HRPAYDE_MUSCHG_BV_WECHSEL are available to output warnings, error messages or no messages:

  • SEND_MESSAGE_044
  • SEND_MESSAGE_073
  • SEND_MESSAGE_056
  • SEND_MESSAGE_074
  • SEND_MESSAGE_070
  • SEND_MESSAGE_071
  • SEND_MESSAGE_072

For example, to create an error message instead of a warning for a mid-month change of the basic pay (infotype 0008) in a month within the maternity protection period, you can use the coding of the sample class CL_HRPAYDE_MUSCHG_BV_WECHSEL_B (Sample Class for Individual Control of Message 072) as a template.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Material Data  
This documentation is copyright by SAP AG.

Length: 13463 Date: 20240607 Time: 232740     sap01-206 ( 202 ms )