SAP Knowledge Base Article - Public

2072163 - Manage Templates - Lock the category field with control-category-element - Goal Management

Symptom

  • How to lock the Category field on a goal plan so that only certain roles are able to change the Category.

Environment

  • Goal Management

Resolution

First, define the category field like this. (The label will not show in the UI, it is just to be able to assign permissions to the field.)

  <field-definition id="control-category-element" type="text" required="true" detail="false" viewdefault="on" showlabel="false" field-show-coaching-advisor="false" cascade-update="push-down">
    <field-label lang="en_US">control-category-element</field-label>
    <field-description>control-category-element</field-description>
  </field-definition>
 

Then permission this field as you need, for example:

  <field-permission type="read">
    <description><![CDATA[Everyone can read the category]]></description>
    <role-name><![CDATA[*]]></role-name>
    <field refid="control-category-element"/>
  </field-permission>
  <field-permission type="write">
    <description><![CDATA[HR can write to the category]]></description>
    <role-name><![CDATA[EH]]></role-name>
    <field refid="control-category-element"/>
  </field-permission>

 

Keywords

KBA , LOD-SF-GM-TMP , GM Template Management , How To

Product

SAP SuccessFactors HCM Core all versions