Creating and applying business rules to automate Position Data Entry

Objective

After completing this lesson, you will be able to create, manage and assign business rules to automate position data entry.

Propagate Data from Job Classification to Position

Data propagation for job related fields is possible during Position creation and during Position Change. This is achieved through business rule assigned to the Job Code field in Position Object. When Job Code is updated on a position, other related fields like Job Level, Pay grade, will be auto-filled with the information from the Job Code (Job Classification) record.

  • Create a Propagation Rule under Rules for MDF Based Objects Scenario, selecting Position as the Base Object and Evaluate as the purpose.
  • Assign the Rule at the jobCode field in Configure Object DefinitionPositionTake ActionMake CorrectionjobCodeDetailsRules, and select the rule from the drop down option under External Code

Exercise - Create a Propagation Rule from Job Classification to Position

In this exercise, you will create a business rule to auto-fill data from the Job Classification when creating and managing positions based on the Job Classification data

Steps

  1. Create a new business rule to propagate data from the Job Classification into the Position

    1. Navigate to Configure Business Rules using Action Search.

    2. Select the + to Create New Rule

    3. In the rule scenario category list, expand Metadata Framework and click on Rules for MDF Based Objects rule scenario

    4. In the Rule Name, type Propagate_Job_Classification_to_Position and leave the Rule ID with the same name.

    5. Leave Start Date as 01/01/1900

    6. Select Position, as the Base Object.

    7. Select Evaluate, as the Purpose.

    8. Select Continue.

  2. Add the conditions (IF) and statements (THEN) that will include the business rule. Use the image below to replicate the rule in your instance. Choose Save when finished

  3. Assign the Business Rule

    1. Select the "Dot" symbol that appears beside the Rule Name and reads "The rule is not assigned" when hovering over, as shown in the image.

    2. Choose Assign Rule.

    3. Select the first option "This rule can be assigned at the field level for object "Position". You will be redirected to the Position Object Definition.

    4. Select Take ActionMake Correction.

      Note

      Alternatively to steps 4a - 4d, you can navigate directly to Configure Object DefinitionObject DefinitionPositionTake ActionMake Correction .
    5. Scroll down to the jobCode field and click on Details

    6. Select the rule Propagate_Job_Classification_to_Position under Rules section

    7. Select Done.

    8. Scroll down and click Save to save changes in the Position Object definition.

  4. Test the rule

    1. Navigate to Manage Positions using Action Search.

    2. Navigate to Create NewPosition

    3. Select any Job Code and verify the fields included in the Business Rule are auto-filled.

    4. Select Cancel and Don't Save.

Default Values when Creating a New Position

Previously you learned about Data Propagation which will help on auto-filling the Job Classification details into the equivalent fields on the Position object, based on the job code. This rule will trigger when the job code field value changes from "null" or from a different value (rule event type is onChange).

For those fields that are common among positions in the organization, such as FTE, To Be Hired, Mass Position, Position Controlled or Change Reason, and will not propagate from the Job Classification, you can set up a business rule to default values when a new position is being created. This will help on more data efficiency.

Create a Business Rule to Default Values on Position Creation

Steps

  1. Navigate to Configure Business Rules using action search, and select + to Create New Rule.

  2. Select Rules for MDF Based Objects scenario under Metadata Framework.

  3. Create the business rule logic (IF - Always True / THEN)

  4. Assign the Business Rule in the Position object Configure Object DefinitionPositionTake ActionMake CorrectionRules section and locate the rule in Initialize Rules drop down.

  5. Save changes to confirm the rule assignment under Initialize Rules in the Position object.

Result

Once the rule is assigned, new positions created will be displayed with default values for some common fields (as an example, if most of the positions should be created under the same Legal Entity or Division, Position standard hours is always the same, or many of the positions have a specific Incentive Plan).

Note

An alternative to creating this type of rule would be to use the Default Value option in the MDF Object Definition for every field that we intend to have a default value, so it initializes the new page with the given value, which can be overwritten. However, only the values of fields of Data Types String, Number, Date, Boolean can be assigned as default values using this option.

This rule example is different from the Default Position Attributes in Position Organization Chart rule scenario, which is related to creating Lower-Level Positions from Position Org Chart, or creating Same-Level Positions from the Position Org Chart, My Team Positions page or Joule AI Assistant.

Default Position Attributes in Position Organization Chart

When Creating Lower-Level or Same-Level Positions from the Position Org Chart, you can default values to copy from the Source Position into the New Position being created, to help on the data entry

Caution

This Business Rule works for Create Same-Level Position and Create Lower-Level Position, but it does not work for the Copy Position function.

The field Parent Position should NEVER be included on the business rule, since it will be derived automatically by the system when creating a New Position, based on the position hierarchy.

Additionally, the rule to Default Position Attributes will also work in the following cases:

  • Create Same-Level Position (Copy Rule) from My Team Positions.
  • Create Same-Level Position (Copy Rule) from the SAP Business AI Assistant (Joule).

Note

The use case Create Same-Level Position (Copy All Fields) does not apply this business rule, but instead will copy all the fields over. More information can be found in the Implementation guide: Use Cases for Employee Central Quick Actions for Positions

Exercise - Create a Business Rule to Default Position attributes

Your customer would like to streamline the creation of Lower-Level and Same-Level Positions by creating and assigning a business rule to default position attributes

Steps

  1. Create a Business Rule to Default Position Attributes

    1. Navigate to Configure Business Rules from the Action Search.

    2. Select + to Create New Rule

    3. Expand the Position Management category, to show all the available scenarios.

    4. Select Default Position Attributes in Position Organization Chart scenario, by choosing the radio button. Add the following details:

      • Rule Name: Default_Position_Attributes
      • Rule ID: Default_Position_Attributes
      • Start Date: 01/01/1900
      • Description: Rule to default values if a new position is created via Create Lower-Level or Create Same-Level Position
    5. Select Continue

  2. Define the business rule logic based on the image below

    1. IF (conditions) - Select the Always True checkbox.

    2. THEN (statements) - Select Add Expression after each statement to add the following one.

      • Set New Position.Company to be equal to Source Position.Company
      • Set New Position.Business Unit to be equal to Source Position.Business Unit
      • Set New Position.Division to be equal to Source Position.Division
      • Set New Position.Department to be equal to Source Position.Department
      • Set New Position.Cost Center to be equal to Source Position.Cost Center
      • Set New Position.Employee Class to be equal to Source Position.Employee Class
      • Set New Position.Job Code to be equal to Source Position.Job Code
      • Set New Position.Job Level to be equal to Source Position.Job Level
      • Set New Position.Location to be equal to Source Position.Location
      • Set New Position.Pay Grade to be equal to Source Position.Pay Grade
      • Set New Position.Regular/Temporary to be equal to Source Position.Regular/Temporary
      • Set New Position.FTE to be equal to Source Position.FTE
      • Set New Position.Incentive Plan to be equal to Source Position.Incentive Plan
    3. Choose Save, but do not navigate away from Configure Business Rules.

  3. Assign the Business Rule in Position Management SettingsUI CustomizingRule for Defining Copy-Relevant Position Fields.

    1. Select the "Dot" symbol beside the Default_Position_Attributes rule name, that reads "The rule is not assigned" when hovering over. A Rule Assignment wizard will open.

    2. Choose Assign Rule.

    3. On the next step, there is an Open Assignment Page selectable arrow to navigate to Position Management Settings from the wizard. A new tab will be opened.

    4. In Position Management Settings, choose the UI Customizing tab.

    5. Under Rule for Defining Copy-Relevant Position Fields, select the Default_Position_Attributes rule that displays.

    6. Choose Save.

    7. Close this tab and verify the rule is now assigned in the Configure Business Rules page.

Exercise - Create a Same-Level Position from the Position Org Chart

In this exercise, you will Create a Same-Level Position from the Position Org Chart to test the business rule that you created previously.

Note

As you learned previously in this course, the creation of a Same-Level Position could be also completed using My Team Positions page, or via SAP Business AI Assistant (Joule). However, the total number of fields that can be edited using Quick Actions cannot be more than 8. For more information, review Unit 3 of this course or check the Implementation guide: Employee Central Quick Actions for Positions

Your customer is expanding their Sales Operations globally, and they need to create a new Position: Sales Director, Europe, based in Germany, and will have the same position attributes as the Sales Director, NE – Marcus Hoff, except for the company, location, job and position title, and TBH.

Steps

  1. Create Same-Level Position from the Position Org Chart

    1. Navigate to Position Org Chart from HomeCompany Info

    2. Leave the first dropdown option to Search By: Positions and Search for Sales Director, NE on the second dropdown option.

    3. Select the position DIR_SALESNE to open the Position Key Information.

    4. Locate the Actions menu, and select Create Same-Level Position from the available options.

    5. Add the following details (leave other field values not included in this table as-is):

      FieldValue
      Position CodeDIR_SALESEU
      Position TitleSales Director, Europe
      StatusActive
      Start DateSet to today's date
      To Be HiredYes
      Standard Weekly Hours38
      Incentive PlanIndividual
      Onsite / RemoteOnsite Position
      Job TitleSales Director, Europe
      CompanyAce Germany (ACE_DEU)
      LocationFrankfurt, Germany (GER_FRA)
    6. Can you see the fields included in the Business Rule auto-populated? The Default Position Attributes rule should trigger when creating the position and before saving changes.

    7. Verify how the Parent Position is automatically assigned based on the new position's hierarchy.

    8. Save changes and close the Position record to go back to the Position Org Chart.

    9. The new position is displayed.

Log in to track your progress & complete quizzes