
Abstract
There are a number of so-called ‘transient’ fields in EC Compensation; this means values as “Pay Component Group (PCG) Sums” like e.g. “Annual Totals” are not stored on the database but are (re‑) calculated whenever the employee profile is displayed. Further examples of transient fields are the 'Compa Ratio' and the 'Range Penetration'. To allow a proper reporting, it is required to use the same calculation logic in the reporting tools. The blogpost describes the challenges to persist these numbers and how reporting is dealing with the recalculation of these transient fields.
Introduction
To get an initial impression of the calculated figures, see Figure 1 with the respective numbers for employee “Steffie Sieglinde Abel”; which shows as an example (1) the “Pay Component Group Sum” which are often labelled as “Annualized Totals”, “Total Target Salary” or something similar (indicated in red), (2) “Compa Ratio” and (3) “Range Penetration” (both indicated in yellow).
First, it is explained in detail by which attributes and configurations these calculated figures are influenced and how these figures are calculated. That is the prerequisite to understand how the query in reporting is built and how to do the identical calculation in reporting.
Figure 1 Example of a PCG sum, Compa Ratio and Range Penetration
Figure 2 Pay Component Group “Annual Salary” with assigned pay components
Figure 3 Pay Component “AccidentInsurance_DE” with respective attributes
Figure 4 Frequency with field “Annualization Factor”
Figure 5 Pay Range configuration. Note that the Pay Range depends by default from Pay Grade, Geo Zone and Legal Entity
Why the PCG sums, Compa Ratio and Range Penetration are ‘transient’ fields?
Based on the presented example it became clear that storing the PCG sums as well as 'Compa Ratio' and 'Range Penetration' on the database is challenging, in particular because the “ingredients” are time dependent. Let’s again summarize these time dependent “ingredients”; these were (3rd point of only relevant for 'Compa Ratio' and 'Range Penetration')
One important consequence of all of that is that the history of the PCG Sums, 'Compa Ratio' and 'Range Penetration' need to consider the effective dated time slices of all “ingredients” mentioned above. To store the history of the PCG Sums, 'Compa Ratio' and 'Range Penetration' with the goal to have all amounts and values always 100% precise, the effective dated time slices would need to be very fine granular. So-to-say the time slices of PCG Sums, 'Compa Ratio' and 'Range Penetration' would be a kind of superset of time slices of all the ingredients. Finally, changes of the configuration (such as e.g. adding/removing 'Pay Components' to historic time slices of the PCGs, changes of the historic FTE, etc.) lead also to changes of the history of the PCG Sums, 'Compa Ratio' and 'Range Penetration'.
One aspect which was up to now not yet addressed is the currency conversion. However, it is a common use case that the recurring payment items are paid in different currencies (e.g. base salary in EUR and particular allowances or annual bonus in USD). Furthermore, it might be possible that the Pay Range amounts (Maximum/Minimum Pay, Mid-Point) are maintained in different currencies compared to the compensation amounts. Of course, the currency conversion rate is – under circumstances even highly – time dependent. In extreme cases, e.g. if the currency exchange rates are updated on a weekly or monthly basis, then also the PCG Sums, 'Compa Ratio' and 'Range Penetration' change on a weekly or monthly basis (of course, only slightly; however, the amounts and values are not 100% precise if currency conversion aspects are ignored).
This makes clear that storing the PCG Sums, 'Compa Ratio' and 'Range Penetration' together with its history is a challenge. Nevertheless, it’s currently under discussion how such amounts can be persisted, e.g. which values should be persisted in which currencies and if some configuration possibilities are needed for this. However, it’s currently too early to provide any concrete timelines for this.
Consequences for Query Design
The complexity of the determination of the PCG Sums, 'Compa Ratio' and 'Range Penetration' reflects also in the query design; Figure 6 shows the query design.
Figure 6 Query design for the story report “Compa Ratio and Range Penetration”
Some explanations:
Filter 7 shows the filter to avoid unwanted duplicates:
Figure 7 Filter to remove unwanted records due to the Cartesian product
This is already sufficient to calculate the PCG Sums. However, to derive the 'Compa Ratio' and 'Range Penetration' it is required to determine the 'Pay Range'. As already explained in the chapter "Introduction", the 'Pay Range' is determined by a set of parameters and is not stored on the database for each employee. In the SAP default configuration, the 'Pay Range' depends on (1) 'Pay Grade', (2) 'Geo Zone' and (3) 'Legal Entity'. The solution which is used in People Analytics is (1) to join the ‘Pay Range’ just by one of the 3 parameters and (2) to apply additional filters. This ‘trick’ is so-to-say a possibility to join the ‘Pay Range’ by 3 different fields (what is currently not possible in People Analytics; it’s only possible to use one join field).
In the presented query the ‘Pay Range’ is joined to the employee via the ‘Pay Gade’. Due to the additional dependency of the ‘Pay Range’ from ‘Geo Zone’ and ‘Legal Entity’, this would cause many duplicates. To get rid of them a filter of type ‘field comparison’ is applied as indicated in green in Figure 7:
Furthermore, only those PCGs are required that are used for the Compa Ratio- and Range Penetration-calculation. Therefore, the filter as indicated in blue in Figure 7 is applied (note that this filter is not mandatory for the compa ratio- and range penetration logic but helps to reduce the records in the created query result).
Consequences for Report Story Design
We are now ready to use the PCG Sums in the story, so far so good. However, one important aspect needs to be considered for the final 'Compa Ratio'- and 'Range Penetration'-calculation. The 'Compa Ratio'-calculation is an aggregation of multiple proportions contributed by various query records. This is illustrated by the sample employee “Steffie Sieglinde Abel” which is discussed during this blogpost (see e.g. Figure 1; note that 64800€ is the mid-point of the 'Pay Range' and 0.88 is the FTE for the sample employee):
This calculation must happen in a 2-step-approach. Figure 8 and 9 show the two story calculations to derive the 'Compa Ratio'.
Figure 8 Calculated Measure for a ‘pre-step’ to calculate the Compa Ratio
Figure 9 Story Calculation of type “Aggregation” to finally calculate the Compa Ratio
See the calculated measure in Figure 8 and note that the 'Compa Ratio' is not simply calculated by “Annual Amount” divided by the mid-point of the 'Pay Range' and the FTE but needs to be multiplied with the “Count” even twice (indicated in red in Figure 8). This is required due to the calculation logic in SAC; for the sample employee “Steffie Sieglinde Abel” this means in the internal calculation process the system calculates for each of the 6 records:
0.029331 = [ 2580 / (64800 x 6) /0.88 + 560 / (64800 x 6) /0.88 + ….. + 51600 / (64800 x 6) /0.88) ] / 6
Therefore, this value needs to be multiplied with 6 x 6 to get the 'Compa Ratio' of 1.0559 (= 36 x 029331).
The 'Range Penetration' is derived as [ “Annual Amount”/FTE minus “Minimum Pay” ] divided by [ “Maximum Pay” minus “Minimum Pay” ]. E.g. if the employee annual salary is exactly equal to the “Minimum Pay”, then the Range Penetration is 0% (if it’s equal to the “Maximum Pay”, then the Range Penetration is 100%). The calculation of the 'Range Penetration' happens in a very similar manner as already explained for the 'Compa Ratio', see Figure 10 and 11. Also in this case the calculated measure “Range Penetration - helper” needs to use the “Annual Amount” multiplied by 2 times with “Count”.
Figure 10 Calculated Measure for a ‘pre-step’ to calculate the Range Penetration
Figure 11 Story Calculation of type “Aggregation” to finally calculate the Range Penetration
Conclusion
The story report “Compa Ratio and Range Penetration” which is presented in this blogpost is the one which is described in Compa Ratio and Range Penetration | SAP Help Portal and which is available from the content store. In this portal page you can also see additional analyses which can be done based on the 'Compa Ratio' of individual employees, e.g. such as comparisons of the (average or median) 'Compa Ratio' (and 'Range Penetration') between employees of different gender, between different organizational units, comparisons of parttime versus fulltime employees, and many more.
It is possible to enhance the level of complexity of the story by including currency conversions. It might be a bit of an academic use case; however, it is possible that e.g. one employee has 'Pay Components' in Euros and US dollars. Further it could be possible that the currency of PCG relevant for the 'Compa Ratio'-calculation is a 3rd currency (e.g. Chinese Renminbi, CN¥) and that the 'Pay Range'-amounts (Minimum Pay, Mid-Point, Maximum Pay) are maintained in a 4th currency (e.g. Swiss Francs, CHF). The 'Compa Ratio'- and 'Range Penetration'-calculation for the values shown on the employee profile can handle even such complex configurations. However, since the currency conversion for Story Reporting is available from b2505 onwards, it is also possible to enhance the pre-delivered story template accordingly. However, due to the complexity such enhancements should only done by experienced report developers; last but not least also under performance considerations such enhancements need to be done with care.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 |