SAP Knowledge Base Article - Public

2802233 - How to Default the 'Position Type' Field When Creating Positions

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'
Default_Value_Error.png

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

  1. In Admin Centre, navigate to Configure Object Definitions > Select 'Position'
  2. Take Action > Make Correction > On the 'Position Type' field, select 'Details'
  3. Set a value in the 'Default Value' property > Save
  4. 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;

  1. In Admin Centre, navigate to 'Configure Business Rules' > Create new Rule > Basic Rule
  2. Give the rule a sensible name > Set the Base Object as 'Position'
  3. Set the 'IF' condition to 'Always True' 
  4. For the 'THEN' condition, set the 'Position Type' field to your required value
  5. Save

See sample Rule below;

Default Position Type.png

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.
Initialise_Rule.png

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

Product

SAP SuccessFactors Employee Central 1611 ; SAP SuccessFactors Employee Central 1702 ; SAP SuccessFactors Employee Central 1705 ; SAP SuccessFactors Employee Central 1708 ; SAP SuccessFactors Employee Central 1711 ; SAP SuccessFactors Employee Central 1802 ; SAP SuccessFactors Employee Central 1805 ; SAP SuccessFactors Employee Central 1808 ; SAP SuccessFactors Employee Central 1811 ; SAP SuccessFactors Employee Central 1902 ; SAP SuccessFactors Employee Central 1905 ; SAP SuccessFactors Employee Central 1908