Ansicht
Dokumentation

HRBAS_POS_UNOCCUPIED - Calculation of Unoccupied Percentage of Position

HRBAS_POS_UNOCCUPIED - Calculation of Unoccupied Percentage of Position

PERFORM Short Reference   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this BAdI to override the standard formula for calculating the unoccupied percentage of a position:

The standard formula is defined as follows:

A. Effective staffing percentage of an assigned employee

P0007-WOSTD * P1001-PROZT / 100

where P0007-WOSTD represents the planned working time for an employee

as maintained in IT0007 (hours per week for

weekly working time), and

P1001-PROZT represents the staffing percentage of the position (defined in

IT1001 (Relationships), relationship A008).

B. Planned working time of the position

where P1011 - WKAVG is the planned working time of the position, as

maintained in infotype 1011 (Working Time).

C. Effective staffing percentage of the position

(P0007-WOSTD * P1001-PROZT / 100)/( P1011 - WKAVG)*100

D. Unoccupied percentage

100 - Effective staffing percentage of the position

The switch WORKT/PERCK is used for daily, monthly, weekly, or

annual working times.

The T77S0 switch PPVAC PERCT is activated.

This BAdI uses the interface IF_HRBAS_POS_UNOCCUPIED_PERC. This contains the following two methods:

  • GET_EMPLOYEE_WORKTIME

This method determines the planned working time for the employee who is assigned to the position. In the standard formula, this is read from infotype 0007 (Planned Working Time) for the employee. The T77S0 switch WORKT-PERCK (type of working hours check) is taken into account.

  • GET_PLANNED_WORKTIME

This method determines the planned working time for the position. In the standard formula, this is read from infotype 1011 (Working Time) for the position. The T77S0 switch WORKT-PERCK (type of working hours check) is taken into account.

For this BAdI, the inactive implementation HRBAS_POS_UNOCCUPIED_PERC_0008 is provided.

In this implementation, the two methods are implemented as follows:

  • GET_EMPLOYEE_WORKTIME

The planned working time of the assigned employees is calculated as a percentage:

P0008-BSGRD * P1001-PROZT / 100

P0008-BSGRD is the employee's capacity utilization level from infotype 0008

P1001-PROZT is the staffing percentage from infotype 1001, relationship A008

  • GET_PLANNED_WORKTIME

The planned working time of the position is calculated as a percentage:

  • No infotype record 1011 exists for the position

,,,,Planned working time = 100%

  • Infotype record 1011 exists for the position

,,,,Planned working time = P1011-WKAVG / general working time * 100

,,,,P1011-WKAVG is the planned working time from infotype 1011. The T77S0 switch ,,,,,,,,WORKT PERCK (type of working hours check) is taken into account.

,,,,The general working time is determined as follows:

,,,,,,No infotype record 1013 exists for the position. The general working time is the next working time ,,,,,,indicated as "general" for a higher-level organizational unit. If there is no ,,,,,,corresponding infotype record, the working time defined in Customizing is used.

,,,,,,The position is assigned to a combination of employee group and employee subgroup ,,,,,,,,,,,,via infotype 1013, however, this combination does not belong to a working time group (table ,,,,,,,,,,T77WT): The general working time, where available, is the working time of the subtype ALL or ,,,,,,,,the working time indicated as "general" for the direct higher-level ,,,,,,,,,,,,,,organizational unit. If neither exist there, the general working time is the working time for ,,,,,,,,the next higher-level organizational unit. If none of these working times are contained in ,,,,,,,,,,the entire organizational structure, the working time defined in Customizing is used.

,,,,,,The position is assigned to a combination of employee group and employee subgroup ,,,,,,,,,,,,via infotype 1013, which belongs to a working time group (table ,,,,,,,,,,,,,,T77WT): The general working time, where available, is the working time of the relevant subtype ,,,,,,,,(working time group) or the working time indicated as "general" for the direct higher-level ,,,,,,,,,,organizational unit. If neither exist there, the general working time is the working ,,,,,,,,time for the next higher-level organizational unit. If none of these working ,,,,,,,,,,,,times are contained in the entire organizational structure, the working time defined in Customizing ,,,,,,is used.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.






General Material Data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 6481 Date: 20240523 Time: 215631     sap01-206 ( 147 ms )