Human Capital Management Blog Posts by Members
Explore blogs from customers or SAP partners to gain best practices and fresh insights to succeed.
cancel
Showing results for 
Search instead for 
Did you mean: 
HemanthSidd
Participant
319

I learnt Comp implementation(Not VP) mostly by going through the Implementation Guide & SAP Community Blogs. While learning, I began playing around with the demo instance, making up scenarios and solving them. When I started working on my first implementation, I initially thought it would be a cakewalk as I was well trained & worked on multiple support projects.
For my first implementation, I had gone through the full client requirements & started the config. After completing the initial setup, I moved into the Design Worksheet part where I began writing the logics(Formula). That's when I started facing issues simple in hindsight, but at that time they caused panic because the deadline was close. So this blog is the collection for those Formula issues I faced during my first implementation.

1.  In Nested IF statements forgetting to add the "False" result.

A very common mistake is forgetting to add the false result in nested IF formulas.

Basic structure:
if(condition,true,false)

While adding "false" for simple conditions is not an issue, things get messy in multi-layer IFs. Many times, the false part is left out. The formula gets saved even if there is no "False" value but it may behave erratically.

Points to remember:

  • Both trueValue and falseValue must use the same data type.

  • If data types differ, the backend evaluation can fail.

  • Dependent fields might show wrong or inconsistent results.

2. Lookup Tables with Hyphens (“-”)

This issue occurs when lookup tables are filled with hyphens to represent blank values. For example:

Grade Merit 
GD-15%
GD-2
GD-3
GD-42%

There will be no issue if you are just displaying the values in a column but the problem arises when the values flowing from the lookup are used in a formula for calculation, like if you are using the value and performing a mathematical operation on them, the system often returns N/A, because the hyphen can’t be converted into a number even with toNumber().

Checks :

  • Keep lookup column data types consistent.

  • Hyphens are fine for display-only fields.

  • For calculations, don’t use hyphens use 0 or keep them blank.

3. Blank Column Check

When checking for empty strings, always compare with ''.
Space inside the quotes ' ' is not empty and the condition will not work.

Incorrect example:
if(Country='INDIA' && Merit=' ','Error','')

Since ' ' contains a space, the check won’t work.

Solution:

  • Always use '' when checking for empty text.

4. dateDiff Returning “N/A”

dateDiff fails when the date formats between cust fields and EC fields don’t match.
Even the formulas like below may still show N/A.:

  • dateDiff(startDate,C_end_date)

  • dateDiff(toDate(startDate,"MM/dd/yyyy"),toDate(C_end_date,"MM/dd/yyyy"))

Solution:

  1. Convert both dates in different columns use the same date format in both columns (Use toDate).

  2. Apply dateDiff() only after ensuring consistent formatting.

5. Troubleshooting Nested IFs and Lookups

For formulas having multiple IF conditions & lookup table references

  • Make sure that both outputs (true/false) have matching data types.

  • Use toNumber() for lookup values when used inside a calculation.

If the formula is still not behaving correctly then:

  • Break the formula into smaller condition.

  • Test each condition one by one.

  • Rather than looking for a issue in a lengthy formula, Its more efficient to break the formula and to test it condition by condition. "Don't look for the needle in the haystack"

6. Column Designer - Working Method

A process that works well during template configuration:

  1. Create reference Excel sheet  based on the client file with all column names and formulas to be configured.

  2. Set up each column based on this reference file.

  3. After testing the logics(Launching the worksheets).

  4. Tweak the column types first.

  5. Make changes in the formula as per the requirements.

  6. Create a validation sheet with Column Name, Column ID, Column Type, Formula(Data Source) and remarks.

  7. If you are comfortable with template XML then, just export the XML and validate it.

7. Debugging Mindset:

Sometimes the issues are right in front of us, but we overlook them. The methods that helped me are,

  • Step away for few minutes.

  • Shift to another configuration or column.

  • Come back with a clear mind.

This small reset often helps in catching mistakes quicker.

Conclusion:

These are the issues related to formula logic that I faced during my first comp implementation. The funny part is that the complex client requirements didn't bother me as much as these issues did. In hindsight, if I had known these beforehand I would have handled them more efficiently. Through these issues, I learnt that problem solving requires patience & focus. I have also faced issues related to budgets, eligibility rules & reward statements. I will be writing about them in the future blogs.

If you've faced similar issues or have better solutions, please share them, I'm always open to learn.

SAP SuccessFactors Compensation 

1 Comment