Symptom
- Business need is to default Payment Information values, but this is not achievable using UI rules or via an onInit business rule on the Payment Information Object
- How to create rule on Payment Information Object which defaults values in Payment Information records?
- How to create rule on Payment Information Object which defaults values in Payment Information records during Add New Employee?
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 - Payment Information
Reproducing the Issue
- A UI rule has been created to default Payment Information values such as below:
- This rule is then set to trigger via onInit on the Payment Information UI:
However, the UI rule does not default Payment Information values via Add or Edit as desired. Nor does a business rule that is configured to do similar which is set on onInit on Payment Information Object.
Cause
We cannot set values/default values in Payment Information values using UI rules (Manage Configuration UI rules) on the Payment Information UI or using an onInit business rule on Payment Information Object.
Resolution
To default fields based on jobCountry value follow below steps to create a rule to be added on Payment Information Object Definition.
In this example the business need is to default -
1. Pay Type = Main Payment Method
2. Payment Method = Bank Transfer
3. Currency = USD
4. Bank Country = Job Country
To do this the business rule needs to use base Object Payment Information as it allows a rule to be created that will be able check if the fields are null before defaulting the value. This rule is then set to trigger on the jobCountry field that is maintained on the Payment Information Object. This field is chosen due to the fact that you need Job Information to be able to maintain Payment Information in Employee Central.
Assigning Business Rules to the Payment Information Object
- Go to Admin Center Configure Object Definitions.
- Under Search, select Object Definition.
- In the second dropdown menu, enter Payment Information.
- Select Take Action and choose Make Correction.
- Go to details of the jobCountry field and under Rules add the rule setMainBank_PaymentInfo so that the rule is applied onChange of this field.
Correct Rule Configuration:
- Go to Admin Center Configure Business Rules, and choose + (Create New Rule).
You can also call up the Create Rule screen in Configure Object Definitions when you edit an object definition.
- Expand Metadata Framework scenario and select the option Rules for Metadata of MDF Objects.
- Base Object: Payment Information
- Purpose: Evaluate
Important Notes:
1. If the rules' THEN conditions contain any reference to Bank Country or Job Country the rule cannot be set as always true
2. Prior to 1811 the rule could contain an elaboration of the IF Statement to "Select Payment Information.Details where Pay Type is equal to Null" - this can no longer be included as it will result in the null check in IF Statement being ignored which will cause data loss during editing existing records or inserting new records. Please compare the above rule image to the below:
3. The rules cannot be always true. It must have an if statement
The rule now defaults the values when the Pay Type, Payment Method, Currency and Bank Country fields are empty.
Notes:
1. To default Payment Information values during Add New Hire Wizard a separate rule (example below) is needed and it to be set on 'Initialise Rules' on Payment Information Details Object
2. This rule cannot be "Always True"
3. Bank Country value cannot be set to be equal to Job Country value at this stage as this would lead to undesired behavior when editing existing users Payment Information data.
FAQ - Additional Information
Q) Where can I get information on this from the Guide?
A) Guide: Payment Information
Chapter: Assigning Business Rules to the Payment Information Object
Chapter: Assigning Business Rules to Payment Information Detail Object
Chapter: Settings of the Configuration UI
Chapter: Replicating Payment Information in Employee Central Payroll
See Also
- 2318830 - Employee Central - Payment Information
-
3744863 - How to Default Payment Details Fields : Main Payment Type, Payment Method, Bank Country/Region, Currency
- 2440812 - Defaulting Payment Information using Business Rules
- 2553102 - Employee Central - Manage Configuration UI (MDF object UI)
- 2273344 - How to Configure Object Definition in MDF?
- 2749706 Payment Information portlet visible during Hire/Rehire
- 3484259 - Raise a MDF Alert Message if there is No Payment Information maintained after X month from Hire Date or Rehire
- 2305817 - Payment Information - field values are set to null upon edit or the portlet is continuously loading
- 2925224 - Payment Information RBP limitations
- 2305691 - Configuration for Country Specific Field in Payment Information UI
- 2860722 - Payment Information Entered During New Hire or Rehire Disappears
- 2770301 - Payment Information - Fields not initialized when clicked to edit a user with no data
- 2748143 - Payment Information - Fields Clearing on Edit & Insert or Default Values Rule No Longer Working
Keywords
Payment Information, Employee Central Payment Information, Defaulting Payment Information, UI, Rules, Rule, delete, bank, details, payment, info, portlet, details, delete, ECT-91729, values, paymeninfo, add new hire, jobCountry, worker, externalCode, currency, payment method, pay type, null, clear, bank country, job country, default values in payment information,rule to default payment info , KBA , LOD-SF-EC-PAY , Payment Information (Bank Information) , LOD-SF-EC , Employee Central , LOD-SF-EC-HIR , Hire & Rehire Wizards , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , How To
SAP Knowledge Base Article - Public