SAP Knowledge Base Article - Public

3210141 - Need to click Anywhere Outside the field, to Trigger onChange rule - Employee Central

Symptom

  • Need to click anywhere outside the field, to trigger onChange rule
  • The system requests twice clicks over save button when one the fields has assigned OnChange rules

"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 Employee Central

Reproducing the Issue

  1. Have Field 1 with onChange rule configured
  2. Create a rule trace : 2257064 - Employee Central - Business Rule Execution Log
  3. Go to Employee Profile
  4. Go to target Hris Element block and edit
  5. Update data for Field 1
  6. Click: Save
  7. result : No change and check Business Rule Execution Log result
  8. Save second time
  9. result: Save
  10. check: Trace Business Rule Execution Log

Cause

Expected behaviour

Resolution

This is a system expected behavior, you need to click anywhere outside the field, to trigger the onChange business rule.

  • So, if clicking directly on the Save button, you will need to twice click, as the first time the browser is just triggering the onChange action, not hitting Save button, and second time you are in fact clicking in the Save button.

For: Trigger onChange Rules for HRIS Elements

  • Trigger onChange Rules for HRIS Elements : You can use this scenario to create rules that trigger changes to HRIS Elements. In Manage Business Configuration, rules created using this scenario can be registered only for the onChange event type.

FAQ - Additional Information

Q) Where can I get information on this from the Guide?

A) Guide:Implementing Business Rules in SAP SuccessFactors

    Chapter:Creating Business Rule Execution Logs

    Guide: Implementing Employee Central Core   Chapter: Rule Scenarios for Employee Central Core

See Also

  • 2257064 - Employee Central - Business Rule Execution Log
  • 2484070 - Rule execution failed - rule trace is empty
  • 2277956 - How to create a Business Rule
  • 2293654 - Unable to click Save when creating/editing a Business Rule
  • 2163077 - Base Objects in Business Rules Do Not Support All Rule Types in Employee Central
  • 2621890 - Troubleshooting Business Rules in Employee Central
  • 2331851 - Employee Central Implementation - Business Rules FAQ
  • 2437420 - Which Portlets Support Cross Portlet Business Rules
  • 3468733 - Diagnostic Tool for Employee Central save transactions and workflows
  • 2080138 - How to Propagate fields using Business Rules
  • 2562069 - Scenario based business rules for MDF objects. Parameters and other related information.
  • 2324639 - How to populate object information from Employee Central to Custom Portlet or Objects via Business Rule?

Keywords

onChange, Save, Submit, Business Rule, Twice, Trigger onChange Rules for HRIS Elements, click anywhere outside the field , KBA , LOD-SF-EC-JOB , Job Information , LOD-SF-EC-CMP , Compensation Information & One-Time Bonus , LOD-SF-EC-PER , Person Data (All Person Data Types) , LOD-SF-EC-TER , Termination Details , LOD-SF-EC-EMP , Employment Information (Employment Details) , LOD-SF-EC-BCI , Manage Business Configuration (BCUI) & Data Models (XML) , How To

Product

SAP SuccessFactors Employee Central all versions