Symptom
This article explains how to configure a Country Specific set of fields for Country which does not have a pre-delivered configuration for the Payment Information feature.
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 HXM Suite
- SAP SuccessFactors Employee Central - Payment Information
Resolution
The configuration is made several steps. Our example scenario is for adding country specific fields for China (where there is no pre-delivered Country Specific object for Payment Information for China), but this could be for any country where a Country Specific configuration is not pre-delivered.
Please note that for adding fields to pre-delivered Country Specific objects for Payment Information, please follow this article instead - 2305691 - Configuration for Country Specific Field in Payment Information UI
Configuration Steps
- Create a new Country Specific Composite Child object
- Add an Association on the Payment Information Detail V3 object to the new Country Specific Child object created in step 1, as a Composite association
- Grant permissions to the new Child object
- Add the fields to the Payment Information Configuration UI
- Create UI rules to show/hide the fields based on Bank Country
- Assign the UI rules to triggers
- Test the configuration works
Create a new Country Specific Composite Child object
- Navigate to Admin Center > Configure Object Definitions
- Select "Create New" > Object Definition
- Configure the Object as such -:
- Code = define this as PaymentInformationDetailV3XYZ (XYZ = 3-letter ISO code for the Country) - in our example we used - PaymentInformationDetailV3CHN
- Effective Dating = From Parent
- API Visibility = Editable
- MDF Version History = Complete History
- ToDo Category = Generic Object Change Requests
- Set the field "externalCode" to be type "Auto Number"
- Add the custom fields you wish to have for the country
- Security > Set to "Secured" = Yes, and set "Permission Category" = Miscellaneous Permissions
- Save the object
Add an Association on the Payment Information Detail V3 object
- Navigate to Admin Center > Configure Object Definitions
- Search for "Object Definition" > PaymentInformationDetailV3
- Take Action > Make Correction
- Scroll to the Associations section and add a new association with the name "toPaymentInformationDetailV3CHN"
- Note - to keep names the same we go with toPaymentInformationDetailV3CHN (for China) but you can give it any name, this part is not important but for simplicity we try to conform to the current naming structure
- Set the "Type" to Composite
- Save the object
Grant permissions to the new Child object
- Navigate to Admin Center > Manage Permission Roles
- Select the Role you wish to grant permissions
- Navigate to Miscellaneous Permissions > PaymentInformationDetailV3CHN
- Grant all permissions to View, Create, Correct, Insert, Delete (so you can test)
- Save the Role
Add the fields to the Payment Information Configuration UI
- Navigate to Admin Center > Manage Configuration UI
- Locate the Payment Information UI you are currently using in your configuration
- Mouse-over the Payment Information Details section, and click "Add Field"
- Scroll down and find the field, and then move it to where you want it to display in the Payment Information Details section
- Then click the Pencil icon to the right of the new field (will appear when you mouse-over the field)
- Set "Value Type" to Resolver
- Set "
- Set "Label Override" to the fields Label
- Click OK
- Click Save
Create UI rules to show/hide the fields based on Bank Country
- Navigate to Admin Center > Manage Configuration UI
- Locate the Payment Information UI you are currently using in your configuration
- Mouse over the portlet label (which is in the top left of the portlet layout) - Payment Information
- Click "Manage UI Rules"
- Click "Add New Rule"
- Rule Name = use the Country name (China in this example)
- The rule should be configured with an IF, THEN and ELSE IF conditions.
- In the first IF/THEN we tell the rule to show the fields if the Bank Country is equal to China
- In the ELSE IF we tell the rule to hide the fields if the Bank Country is not equal to China
- Save the rule
Assign the UI rules to triggers
- Once the rules have been created in the Configuration UI, you need to add triggers so they will trigger.
- First, find the Bank Country field in the UI, and click the Pencil icon next to it. Then in the "onChange UI Rules" section, select the new rule you created > click OK
- Then mouse over the UI title (Payment Information" and click "Edit Properties" and add the rule to the following -:
- onInitUI Rules
- onInsertUI Rules
- Click OK
- Click "Save" to save the configuration
Test the configuration works
- Navigate to My Employee Files > Personal Information > Payment Information and validate the new fields only display when the Bank Country is China:
See Also
2305691 - Configuration for Country Specific Field in Payment Information UI
Keywords
CSF, country-specific, new object , KBA , LOD-SF-EC-PAY , Payment Information (Bank Information) , How To