Symptom
You want to default the 'Position Type' field on the Position object, however after adding a default value for this field in the field properties, an error message occurs upon Saving 'Default value should not be provided for field type'
How can you default the Position Type when creating Positions?
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental
Environment
- Employee Central
- Position Management
- Business Rules
Reproducing the Issue
- In Admin Centre, navigate to Configure Object Definitions > Select 'Position'
- Take Action > Make Correction > On the 'Position Type' field, select 'Details'
- Set a value in the 'Default Value' property > Save
- Error 'Default value should not be provided for field type' occurs
Cause
There are hardcoded validations built into the system to prevent defaulting the Position Type field using the 'Default Value' property.
Resolution
You can use a Business Rule to default the Position Type when creating Positions;
- In Admin Centre, navigate to 'Configure Business Rules' > Create new Rule > Basic Rule
- Give the rule a sensible name > Set the Base Object as 'Position'
- Set the 'IF' condition to 'Always True'
- For the 'THEN' condition, set the 'Position Type' field to your required value
- Save
See sample Rule below;
6. Set the Rule on the Position object under 'Initialise Rules' if you want the value to default when you open the Create Position Page, or else set it under 'Save Rules' if you want the value to default when you save the new Position.
Keywords
Default, Position, Position Type, Default value should not be provided for field type, Default Rule, Regular Position, Shared Position, RP, SP , KBA , LOD-SF-EC-POS , Position Management , LOD-SF-EC-RUL , DO NOT USE - Business Rules & Event Derivation , Problem