Symptom
When change data in Compensation section (Compensation information/One-Time Payments), how to add Warning/Error message when the data changed is invalid.
**Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental**
Environment
- SAP SuccessFactors Compensation
- SAP SuccessFactors Variable Pay
Resolution
- Create Warning Message
1.1 Go to Manage Data->Create New->Choose Message definition
1.2 Input your custom warning message in TEXT field. And input your customized External Code and Name. - Create EC validate rule:
2.1 Go to Configure Business Rule->Create New rule
2.2 Select "Employee Central Core"->Select "Validate HRIS Elements"->choose base object as "One-Time Payments Model" or "Compensation Information Model"(Depends on the section where you want to add validation rule)
2.3 Under "If" condition, add your filter condition -> Under "Then" condition, choose "Raise Message" in Select output type box and add your custom warning Message in message field. - Apply the rule to EC:
3.1 Go to Manage Business Configuration->Click "payComponentNonRecurring"(If you choose base object as "One-Time Payments Model" in previous step) or "compInfo" (If you choose base object as "Compensation Information Model" in previous step)->Click Take Action->Click Make Correction
3.2 Under Trigger Rules
a. If you click "payComponentNonRecurring" in previous step.
Choose "Spot Bonus Model" on Base Object field->Choose "On Save" on Event type field->Choose your EC validate rule on Rule field->And click save.
b. If you click "compInfo" in previous step.
Choose "Compensation Information Model" on Base Object field->Choose "On Save" on Event type field->Choose your EC validate rule on Rule field->And click save.
After above step, the rule will apply to Compensation Section in Employee Profile to validate.
Keywords
Compensation, Employee Profile, Validate Rule, Info, Warning, Error, Warning Message, Error Message, Info Message, Eligible, Eligible rule, Hard Limit, Data validation, validation, Record Validation, Data change validation , KBA , LOD-SF-CMP-EC , EC data, EC mappings, configuration & settings , How To